Repository navigation
decoder: import the decoding layer of oops1/go.264 v1.12.0 - #35
Merged
Merged
Conversation
h264 read headers and derived the reference structure; it did not turn a stream into pixels. This adds a decoder, as decided for go-avkit/decode#10: * decoder/ is the public package (Decoder, Limits, Frame, errors); no hardware back end, no encoder. * internal/{bits,cabac,cavlc,deblock,decoder,frame,level,loopfilter,mc,nal, parallel,pred,simd,syntax,transform,testutil} are go.264's packages of that name at commit 3373a3f (v1.12.0), import path rewritten, nothing else changed. Their tests come with them and pass under -race. * LICENSE-go.264 keeps Valery Chukalin's BSD 2-Clause text; README says what was imported and from which commit. * testdata/conformance (go.264's 35 x264 streams with their ffmpeg output), testdata/jvt (ffmpeg framemd5 manifests of 73 ITU-T H.264.1 streams). Conformance: TestJVTConformance, 67 of 73 streams bit-exact against ffmpeg framemd5 with the local copy of the vectors, 4 pending the MMCO 5 fix of oops1/go.264#2 (the test fails if one starts to pass), 2 not downloaded here; CI downloads all of them with tools/jvtfetch and sets H264_JVT_REQUIRE=1. CI: the 100 % gate applies to the root package as before; the decoder runs under -race on three OSes, on every architecture lane, in a conformance job and in a fuzz job (FuzzDecode, FuzzStream).
* TestJVTConformance took the stream to be NAME/NAME.ext; two archives name it otherwise (cabac_mot_frm0_full.zip holds camp_mot_frm0_full.26l), so CI, which fails on a missing stream, failed on them. It takes the largest file with a bitstream extension, as jvtfetch does. Locally 69 of 73 streams are bit-exact, 4 pending the MMCO 5 fix (oops1/go.264#2). * TestStartCodeStormStaysLinear and TestScannerCostIsLinearInTheInput compared a wall-clock time with a fixed bound, which the riscv64 lane under qemu exceeded (780 ms against 500 ms). They now compare the time for N bytes with the time for 4N: linear is about 4, the quadratic scanner they guard about 16.
The sequential download of the 73 archives took about ten minutes in CI.
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.
decoder: import the decoding layer of oops1/go.264 v1.12.0
h264 read headers and derived the reference structure; it did not turn a
stream into pixels. This adds a decoder, as decided for go-avkit/decode#10:
back end, no encoder.
parallel,pred,simd,syntax,transform,testutil} are go.264's packages of that
name at commit 3373a3f (v1.12.0), import path rewritten, nothing else
changed. Their tests come with them and pass under -race.
imported and from which commit.
testdata/jvt (ffmpeg framemd5 manifests of 73 ITU-T H.264.1 streams).
Conformance: TestJVTConformance, 67 of 73 streams bit-exact against ffmpeg
framemd5 with the local copy of the vectors, 4 pending the MMCO 5 fix of
oops1/go.264#2 (the test fails if one starts to pass), 2 not downloaded here;
CI downloads all of them with tools/jvtfetch and sets H264_JVT_REQUIRE=1.
CI: the 100 % gate applies to the root package as before; the decoder runs
under -race on three OSes, on every architecture lane, in a conformance job and
in a fuzz job (FuzzDecode, FuzzStream).
Refs go-avkit/decode#10
🤖 Generated with Claude Code