Skip to content

Add native one-plane multiplanar V4L2 capture and BGR24 decoding - #1

Merged
Hans5849 merged 5 commits into
masterfrom
feature/rk3588-hdmirx
Nov 4, 2026
Merged

Hans5849 merged 5 commits into
masterfrom
feature/rk3588-hdmirx

Conversation

@Hans5849

@Hans5849 Hans5849 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Native HDMI receivers such as rk_hdmirx expose VIDEO_CAPTURE_MPLANE, while the existing capture path only used VIDEO_CAPTURE. This adds effective device capability detection, pix_mp negotiation, TRY_FMT probes, owned MMAP planes, and index-based worker buffer returns while retaining the single-planar path. A separate top-down BGR24 decoder handles padded stride and limited range without an extra full-frame copy.

Startup failures, buffer errors, source notifications and capture stalls now clean up the stream and retry with a three-second delay. Separate-memory-plane decoder layouts are explicitly rejected. No Rockchip accelerator dependencies are added.

Validation: original and modified native x86_64 Linux builds passed with ENABLE_V4L2=ON; 10 capture test groups, 16 actual BGR24 decoder combinations, 28 existing decoder comparisons, capture address/undefined/leak sanitizers, amd64 Debian packaging and isolated HTTP/JSON-RPC smoke checks passed. The Bookworm ARM64 package attempt stopped before compilation because QEMU/binfmt is unavailable. No HDMI, Orange Pi or WLED hardware testing was performed.

The docs include the architecture audit, RGA feasibility assessment, benchmark plan, installation/rollback procedure and detailed development results. Keep this draft pending ARM64 compilation, real single-planar regression testing, and native HDMI/WLED validation. Target is this fork's master; no upstream PR or merge is requested.

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