Repository navigation
Add native one-plane multiplanar V4L2 capture and BGR24 decoding - #1
Merged
Merged
Conversation
Hans5849
marked this pull request as ready for review
November 4, 2026 16:54
This was referenced Nov 15, 2026
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.
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.