Skip to content

media: apple: ave: HEVC Main 10 from P010 on the Neo - #834

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
codec/hevc10-neo
Nov 2, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
codec/hevc10-neo

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

HEVC Main 10 from P010 on the Neo AVE

Adds the HEVC Main 10 profile with P010 input to the AVE encoder (9003 firmware, J700). Only the Start fields the 10-30 macOS capture showed changing with bit depth are set: the 8-bit flag, bit depth, profile idc, compatibility and max-8-bit constraint bytes, luma/chroma depth, and the QP floor (12 lower). The coded buffer grows by a quarter, as macOS sizes it; reference and tile buffers were already 10-bit aware. Main takes NV12, Main 10 takes P010; other pairings are refused at STREAMON. The counted firmware layout still returns EOPNOTSUPP for 10-bit.

Tested on the Neo

Kernel 7.3.0-aurora-fleet14k-codec1 (this change plus the ProRes series, on aurora-wip ce900d1), boot b973bd14:

  • Main 10, 1920x1080 P010, 60 frames: ffprobe Main 10, yuv420p10le; all 60 decode; PSNR (Y) 39.0 to 48.3 dB at 12 Mb/s VBR against the 10-bit source. Samples come back MSB-aligned as P010 expects.
  • Speed: 153.2 fps at 1080p, 45.1 fps at 4K.
  • No regression: H.264 1080p 163.8 fps, HEVC Main 155.3 fps; AVE v4l2-compliance 48/48; no DART faults.
  • KUnit 19/19 (new ave_9003_hevc_main10: a Main 10 Start differs from Main only in those fields), AVE host tests pass, W=1 clean.

Main 4:2:2 10 is not offered: V4L2 has no profile entry for it and its Start fields are not captured yet.

🤖 Generated with Claude Code

Offer the HEVC Main 10 profile with P010 input on the J700 (9003)
firmware. The Start fields that change with bit depth are the ones the
macOS capture showed: the 8-bit flag, bit depth, profile idc, the
compatibility and max-8-bit constraint bytes, the luma and chroma depths
and the QP floor, which moves 12 down. Reference and tile buffers are
already sized for 10-bit; the coded buffer grows by a quarter, as macOS
sizes it.

The firmware reads 16-bit samples for Main 10, so Main 10 takes P010
and Main takes NV12; other pairings are refused at STREAMON. The
counted firmware layout keeps returning EOPNOTSUPP for 10-bit. KUnit
checks that a Main 10 Start differs from a Main one only in those
fields.

Originally-by: Acelogic <miguelc4600@gmail.com>
Link: aurora-silicon/linux-aurora@3e77f27
Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide merged commit 1a50e14 into aurora-wip Nov 2, 2026
@RyanTheTide
RyanTheTide deleted the codec/hevc10-neo branch November 2, 2026 03:53
notmysegv pushed a commit to notmysegv/linux that referenced this pull request Nov 4, 2026
…tion/aurora

Bring integration/aurora up to aurora-wip e1524e6, the source of
7.3.0-aurora-fleet14l, promoted on all four machines on 2026-11-02.
The range also covers the fleet14i, fleet14j and fleet14k sources
(a8fa302, d67eece, ce900d1). It adds aurora-silicon#822, aurora-silicon#823, aurora-silicon#824, aurora-silicon#827,
aurora-silicon#829, aurora-silicon#834, aurora-silicon#835, aurora-silicon#836, aurora-silicon#838, aurora-silicon#840 and aurora-silicon#839. No conflicts.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant