Repository navigation
Remove the decoder's own parsers: internal/syntax becomes test fixtures - #45
Merged
Merged
Conversation
…es (step 2d) internal/syntax was go.264's reader of the parameter sets and slice headers. The decoder has read them with the root package since the previous step, so the second reader goes: * ParseSPS, ParsePPS, ParseSliceHeader, the VUI/HRD readers, the scaling list reader and the list resolution, the SEI reader and writer (nothing here uses SEI) and their tests are deleted. * What stays is what tests need to build a stream: the structs and the writers (WriteSPS, WritePPS, WriteSliceHeader), as internal/syntaxfixture, which reads nothing. The stream-building decoder tests keep using it through compat_test.go. * levelreorder_test patches level_idc in place (the third byte of the set) and reads the result with the root. * The root keeps its 100 % gate: corpus_test.go reads every set and slice of the repository's streams (what the removed differential tests did against the old reader, which agreed field by field when it was replaced), and the set bounds of the previous step have tests at their edges. JVT: 69 of 73 bit-exact, unchanged (4 pending oops1/go.264#2). Refs go-avkit/decode#10 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Remove the decoder's own parsers: internal/syntax becomes test fixtures (step 2d)
internal/syntax was go.264's reader of the parameter sets and slice headers. The
decoder has read them with the root package since the previous step, so the second
reader goes:
reader and the list resolution, the SEI reader and writer (nothing here uses
SEI) and their tests are deleted.
(WriteSPS, WritePPS, WriteSliceHeader), as internal/syntaxfixture, which
reads nothing. The stream-building decoder tests keep using it through
compat_test.go.
reads the result with the root.
repository's streams (what the removed differential tests did against the old
reader, which agreed field by field when it was replaced), and the set bounds
of the previous step have tests at their edges.
JVT: 69 of 73 bit-exact, unchanged (4 pending oops1/go.264#2).
Refs go-avkit/decode#10
🤖 Generated with Claude Code