Skip to content

Switch VP8/VP9 decode to go-avkit/vpx v0.1.0 (M0 D0c) - #141

Merged
tannevaled merged 2 commits into
mainfrom
m0-d0c-switch
Nov 29, 2026
Merged

tannevaled merged 2 commits into
mainfrom
m0-d0c-switch

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

What

M0 D0c: the VP8/VP9 path of decode uses go-avkit/vpx v0.1.0 instead of govpx. govpx v0.5.3 remains as a test-only oracle for the differential test.

Evidence

  • libvpx vectors, four configurations (threads 0 and 4, with and without Recycle, under -race): 373 match, 3 4:4:0 refused, 0 differ, of 376. TestVPXDifferentialVectors passes.
  • TestVPXPerfFloor, reference host, best of 5, microseconds per frame:
clip t1 t2 t4
VP9 1 tile 7197 4289 3234
VP9 4 tiles 7261 4219 2526
VP8 4931 3494 3465

The M0 floors hold (VP9 t1 <= 7645, VP8 t1 <= 5275).

Known gap

Frame.Corrupt is never produced: the port exposes no error concealment, so a damaged frame is an error. The pass-through is covered by TestVPXPicture; the README states it.

🤖 Generated with Claude Code

tannevaled and others added 2 commits November 29, 2026 08:31
decode now drives go-avkit/vpx's VP8 and VP9 decoders; govpx stays as a
test-only differential oracle. Errors are classified from the port's
avx errors; the size cap is asserted at the port (TestVPXPortSizeCap).

Evidence:
- libvpx test vectors, 4 configurations (0 and 4 threads, with and
  without Recycle, -race): 373 match, 3 4:4:0 refused, 0 differ, of 376;
  TestVPXDifferentialVectors passes against govpx v0.5.3.
- TestVPXPerfFloor on the reference host, best of 5, us per frame:
  VP9 1 tile t1 7197 t2 4289 t4 3234; VP9 4 tiles t1 7261 t2 4219
  t4 2526; VP8 t1 4931 t2 3494 t4 3465. The M0 floors (VP9 t1 <= 7645,
  VP8 t1 <= 5275) hold.

Frame.Corrupt is never produced: the port exposes no error
concealment, so a damaged frame is an error. The README says so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit f83ee8d into main Nov 29, 2026
18 checks passed
@tannevaled
tannevaled deleted the m0-d0c-switch branch November 29, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant