Repository navigation
media: apple: ave: encode 6070 H.264 with B pictures - #1484
Merged
Merged
Conversation
The 6070 path only built low-delay H.264: every Process carried the first picture's slice object and a fixed picture type, so a session with B pictures hung on its third picture. Plan each picture from its display order (IDR, then one B between two P pictures, an unpaired last picture closed as P) and build what depends on it: the picture type, the H.264 slice-header fields of the retained slice object (nal_ref_idc, NAL and slice type, frame_num, IDR id, POC lsb, active reference counts, slice QP delta) and the current, list 0 (one or two) and list 1 reconstruction, colocated and low-resolution surfaces. Start for a reordered session uses both motion estimation units, two references and the VUI bitstream restriction (one reordered picture, two buffered). Lay out the compressed reconstruction for 8- and 10-bit depths and add the HEVC Start, RPS and slice fields and the HEVC transcoder surfaces; HEVC stays refused on the 6070 until its stream is qualified. Every firmware field is a named, commented offset; the values come from the H.264/H.265 syntax they carry. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 11, 2026
Merged
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.
Encode H.264 Main and High with B pictures on the 6070 firmware (M1 Pro, M2), on top of #1387 and #1440.
V4L2_CID_MPEG_VIDEO_B_FRAMEScontrol (0 or 3, default 3) for Main/High; Baseline stays IPPP.Tests
apple-ave-*: 30/30. checkpatch --strict: clean.v4l2h264enc, constant QP, 300 frames 1080p / 120 frames 4K):🤖 Generated with Claude Code