feat(vdecsw): implement queued AVC decoding and picture metadata #1881
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1881"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Albaloola on 2026-10-08T22:44:06Z.
What
Implement the 13 existing Vdecsw exports for queued progressive 8-bit 4:2:0 AVC using the existing FFmpeg dependency. Own padded access-unit copies, provide completion/output queues, enforce memory and output bounds, and support drain/reset/deletion. An original bounded H.264 parser snapshots SPS/PPS/slice/VUI/SEI metadata per input; FFmpeg retains it through B-frame reordering so timestamps and picture information remain attached to the correct frame.
ABI references are pinned SharpProspero/shadPS4 declarations. Parsing follows ITU-T H.264 (08/2021), with exact clauses and limitations in TechnicalDebt. No third-party decoder-wrapper implementation was copied.
Tested
Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, Release. This topic is based on upstream main
ce64d8eb. Runtime results below come from the integrated checkout; the isolated source checks are described separately. The final integrated Release build and library target passed, with 504/506 CTests passing: only the pre-existing shader_clock and vopc_compare_table GPU failures remain. No new failures were observed.guest_avplayer, guest_videodec2, guest_avc_metadata and guest_vdecsw all pass (4/4). Synthetic fixtures check decoded pixel hashes, B-frame ordering, timestamps/crop metadata, input ownership, queue limits, reset under backpressure, lifetime races, structure canaries and malformed metadata. Parser boundary and mutation regressions pass. Full build/libs, conventions, registration and export inspection pass; only 13 guest APIs are exported.
HEVC, VP9, interlace and extended configurations remain explicit errors. Caller memory queries cover HLE objects; FFmpeg dynamic allocations are host-owned. Console queue policies, full profile/level conformance and allocation-size parity remain unverified. No PS5 hardware, retail title or Linux runtime validation was performed.
Isolated publication-source check: all 5 affected production/test compile configurations pass with this branch's own core headers, excluding neighboring local topics. Conventions, diff checks and source/test registration review also pass. Dependency headers and generated configuration come from the existing pinned build; a new full configure/link/runtime run was not performed for this isolation check.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:50:06Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL238docs/dev/TechnicalDebt.mdL238docs/dev/TechnicalDebt.mdL238docs/dev/TechnicalDebt.mdL238docs/dev/TechnicalDebt.mdL238Pull request closed