Repository navigation
media: apple: ave: keep 6070 H.264 P pictures as references (split from #2375) - #3533
RyanTheTide wants to merge 1 commit into
Conversation
Reapply the standalone H.264 fix from Lucas Goossen's first commit in linux#2375 on main, without the rate-control and VUI changes. A nonzero Process timescale makes P slices non-reference pictures and leaves frame_num at 1. Write zero for H.264 while keeping PTS in AVE_PROC_TIMESCALE. Set the Start motion lambdas for full-pel search and inter/intra decisions to 64, 256 and 64 respectively. These are encoder quality weights, not hardware safety limits. Select the behavior with the command layout's h264_inter capability; HEVC retains its timescale and other command layouts are unchanged. The KUnit case checks both codecs with the capability on and off. Signed-off-by: Lucas Goossen <[email protected]> Signed-off-by: Ryan Murray <[email protected]>
There was a problem hiding this comment.
Verdict: FINISH, then merge at a12ab26b
Blockers:
- Hosted CI at
a12ab26b(20 jobs:apple-build,host-tests,pr-text,readiness, KUnit suites) is currentlyQUEUED; wait for green CI. - Missing exact-head hardware encode+decode row at
a12ab26bon an AVE 6070 Mac (M1 Pro or M2; prior 120/120 bit-exact rows were on#2375's 11-22 base; queued inNot yet:).
Checked: no Apple material, no AI attribution, preserves original author (Lucas Goossen) and human DCO Signed-off-by chain, selects behavior via command-layout capability ave_fw_layout.h264_inter (no chip/board if-gates, no new parameters, no hardcoded safety limits — motion lambdas 64/256/64 are encoder quality weights), HEVC and other command layouts are completely unchanged, ave_6070_h264_inter KUnit covers both H.264 and HEVC with h264_inter on and off (50/50 AVE KUnit PASS, arm64 Clang 16 KiB clean, checkpatch --strict clean), PR body has Tested: and Risk: two-way, branch is MERGEABLE against main.
Evidence
- Inspected full diff (
+123/-1acrossabi.rst,ave-abi-test.c,ave-layout.c,ave-layout.h,ave-sess.c,ave-writer.c,ave.h):ave-layout.c: enables.h264_inter = trueand records Start offsets0xff98/0xffa4/0xffa8onave_layout_6070_11_1.ave-writer.c: writes64,256,64inave_start_config()whenp->h264_interis set (H.264 branch only), and writes0tol->timescaleinave_build_process()whenp->h264_inter && p->codec == AVE_CODEC_H264while keepingAVE_PROC_TIMESCALEfor HEVC and non-h264_interlayouts.ave-abi-test.c:ave_6070_h264_inter()asserts both codecs withon = 0andon = 1, verifying timescale, all three lambda words, and untouchedh264_skip_mode/static_area_mask.
- Code is clean; ready to approve and merge once CI is green and the exact-head M1 Pro / M2 encode+decode row passes at
a12ab26b.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: MERGE at a12ab26b7472
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: no Apple material, no AI attribution, preserves original author (Lucas Goossen) and human DCO Signed-off-by chain, selects behavior via command-layout capability ave_fw_layout.h264_inter (no chip/board if-gates, no new parameters, no hardcoded safety limits — motion lambdas 64/256/64 are encoder quality weights), HEVC and other command layouts are completely unchanged, ave_6070_h264_inter KUnit covers both H.264 and HEVC with h264_inter on and off (50/50 AVE KUnit PASS, arm64 Clang 16 KiB clean, checkpatch --strict clean), PR body has Tested: and Risk: two-way, branch is MERGEABLE against main.
Follow-ups (not blocking): queued CI; AVE 6070 encode+decode row on M1 Pro/M2
What: The H.264 references fix from commit 1 of #2375 (by Lucas Goossen), split into its own PR as the review suggested, without the rate-control and VUI changes. A nonzero Process timescale made AVE 6070 H.264 P slices non-reference pictures and left frame_num stuck at 1. H.264 now writes zero there (PTS stays in AVE_PROC_TIMESCALE), and the Start motion lambdas are set for full-pel search. The behaviour is selected by the command layout's h264_inter capability. HEVC and other layouts are unchanged.
Tested: Build and KUnit at this head: the arm64 Clang build (16 KiB pages) has no warnings, AVE KUnit passes 50/50 including the new ave_6070_h264_inter case, and strict checkpatch is clean. On the 11-22 base, the same commit took v4l2slh264dec decode of our encode from 4/120 to 120/120 frames in order, bit-exact against ffmpeg, on the M1 Pro and M2 (rows posted on #2375).
Risk: two-way · H.264 encode on Macs with the AVE 6070 command layout.
Not yet: a row at this exact head on the M1 Pro or M2 (encode a clip, decode it, check frame order). It goes in the next combined boot.
Details
The lambdas (64/256/64) are encoder quality weights, not hardware safety limits. The KUnit case checks both codecs with the capability on and off.
Evidence
Earlier rows: #2375 comments of 2026-11-22. Source item: REFMACS7.md:11.