Skip to content

uref_pic_flow: add nv20le - #1273

Open
kierank wants to merge 2 commits into
Upipe:masterfrom
kierank:nv20le
Open

kierank wants to merge 2 commits into
Upipe:masterfrom
kierank:nv20le

Conversation

@kierank

@kierank kierank commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Add nv20le: 10 bit 4:2:2 with interleaved chroma, the samples in the low bits of little-endian 16 bit words (FFmpeg's AV_PIX_FMT_NV20LE). It is the 10 bit counterpart of nv16.

The planes are y10l and u10v10l, which ubuf_pic_clear() (so upipe_vblk) already handles. upipe_av_pixfmt maps it both ways.

Tested: builds with gcc 15 and no warnings, and upipe_av_pixfmt.h compiles against FFmpeg headers. Nothing runs the new format yet.

y10l and u10v10l planes, the chroma plane subsampled 2x1 with 4 byte
macropixels: 10 bit 4:2:2 with u and v interleaved, the samples in the
low bits of little-endian 16 bit words (AV_PIX_FMT_NV20LE), the 10 bit
counterpart of nv16.
The colors are 8 bit codes: shift them to 10 bits as for the planar
planes.  A u10v10l macropixel is 4 octets per 2 pixels, so the line
offset of a column is 4 * col / hsub octets, not the 2 * col / hsub of
u8v8.
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