Repository navigation
media: apple: prepare HEVC Main/Main10 with frame ops (Apple payload WIP) - #703
Closed
RyanTheTide wants to merge 3 commits into
Closed
RyanTheTide wants to merge 3 commits into
RyanTheTide wants to merge 3 commits into
Conversation
Build bounded per-frame instruction programs with slot-private scratch storage and snapshot request controls. Normalize whole-NAL and absolute entropy-data slice descriptions before generating instructions. Keep the current single-job path through a core compatibility bridge. Add licensed V3 frame-parameter field maps and the known Borage descriptor fields and validation. Leave unsupported Apple payload fields explicit and reject incomplete commands. Advertise the T6040 HEVC capability with the v5 header. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Require the final absolute entropy range to end at bytesused, so a padded whole-NAL description cannot be mistaken for an absolute data-only layout. Keep the first V3 slice's MV address when later segments are emitted. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
avd-hevc-slices.c returns -EINVAL but did not include linux/errno.h, so the module failed to build with clang on its own. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
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.
HEVC frame preparation currently depends on mutable context scratch state and assumes NAL-relative slice offsets. This draft adds CPU-only
prepare/pack_cmd/retirecallbacks, snapshots request controls, gives each frame slot independent scratch storage, and writes bounded little-endian instruction programs. Whole-NAL GStreamer and absolute entropy-data FFmpeg layouts are normalized before the shared builder. Main/Main10 keep NV12/P010 selection, and T6040 advertises HEVC with its v5 header.The shared
avd-queue.his copied verbatim from the rewrite contract. A small core compatibility bridge retains the existing single-job path whileavd/rewrite-coreis developed; the codec callbacks do not access queues or MMIO.The Apple packer is incomplete and cannot submit Apple payloads. The licensed eiln/avd V3 map covers known header/scaling/reference/first-slice fields. Borage includes its documented common fields, command constants and work validation, but syntax/work assignment, Main10 candidates and packed address masks remain capture TODOs. T8112/T8140 layouts are explicit ledger TODO entries.
pack_cmd()rejects incomplete payloads. This draft does not claim Apple-firmware or queued decode is working.Validation:
git diff --checkpasses; the queue header matches the contract verbatim; Python and C syntax parsing pass. Syntax parsing does not replace compilation or execution.Remaining work before completion: resolve the documented Apple capture fields and per-SoC layouts, integrate the queue/backend program contract, and obtain passing host and arm64 build results.