[FFmpeg-devel] [PATCH 1/2] avutils/pixfmt: add YUV444/GBRP 10 and 12 bit MSB formats

Timo Rothenpieler timo at rothenpieler.org
Sat Jul 5 01:26:14 EEST 2025


I forgot to include the description of what this is.
cuvid/nvdec/nvenc have for some reason decided to invent a new format 
(at least I have not ever seen this exist anywhere else) for dealing 
with 10 and 12 bit YUV444 input/output.

While nvenc does support ingesting normal formats, nvdec exclusively 
outputs 4:4:4 content as YUV444P10/12, but with the data sitting in the 
MSB, not LSB.
All 4:2:0 and 4:2:2 use P012/P010/P212/P210 respectively, but for 4:4:4 
it does something weird.
The data kept being in the MSB, like with the Pxxx family of formats, 
but it's fully planar.

This patch series adds those MSB formats, and their GBRP counterparts, 
plus support for them to swscale.


More information about the ffmpeg-devel mailing list