Repository navigation
Add a test-only differential lane between govpx and go-avkit/vpx (M0 D0b) - #140
Merged
Merged
Conversation
M0 step D0b of docs/design/vpx-decoder.md. The same packets go to govpx v0.5.3 and to github.com/go-avkit/vpx v0.1.0, and every step must agree: whether a picture comes out, the corrupt flag, the picture (size, chroma layout, bit depth, every visible sample) and the class of the error. - TestVPXDifferentialVectors: libvpx's 376 vectors, serial and with 4 threads (LIBVPX_VECTORS_DIR): 376 of 376 identical. - TestVPXDifferentialStreams: the committed streams, in CI. - FuzzVP8Differential, FuzzVP9Differential: arbitrary packets, sent twice; same outcome and no panic. 90 s of each ran clean. - TestVPXDiffCanTell: the digest and the error classes tell a difference. Nothing outside the tests imports go-avkit/vpx yet; D0c switches decode. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
M0 step D0b of docs/design/vpx-decoder.md: a test-only differential lane between govpx v0.5.3 (what decode uses) and go-avkit/vpx v0.1.0 (its port). Nothing outside the tests imports the new module; the shipped decoder is unchanged. D0c switches decode.
Every step is compared: whether a picture is produced, the corrupt flag, the picture itself (size, chroma layout, bit depth and each visible sample, hashed) and the class of the error through
classifyVPX. A panic in either decoder fails.Evidence
LIBVPX_VECTORS_DIR, 217 s).FuzzVP8DifferentialandFuzzVP9Differential(each packet sent twice): 90 s each, no disagreement and no panic; the seeds are the committed streams' first packets plus the two size bombs.TestVPXDiffCanTellshows the comparison can fail: a one-sample, one-chroma-sample, width, chroma-layout or bit-depth change moves the digest, and each port sentinel lands in its govpx twin's class.go.mod gains
github.com/go-avkit/vpx v0.1.0(no dependencies of its own).🤖 Generated with Claude Code