[FFmpeg-devel] [PATCH 1/5] avutil: Add YUV444P10_LSB and YUV444P12_LSB pixel formats

Hendrik Leppkes h.leppkes at gmail.com
Mon Oct 8 09:57:41 EEST 2018


On Sun, Oct 7, 2018 at 7:51 PM Philip Langdale <philipl at overt.org> wrote:
>
> Currently, ffmpeg defines a set of YUV444P formats for use where
> the bits-per-pixel are between 8 and 16 bits. In these formats,
> the bits are packed in the MSBs of the 16 bits of available storage.
>
> On the other hand, all the hardware vendors have defined their
> equivalent formats with the bits packed in the LSBs, which has the
> virtue of making the memory layouts compatible with being treated
> as full 16 bit values (which is also why P010 is defined this way).
>

Don't you have that flipped around?
In our default formats, the data is in LSB, padding in MSB. In these
hardware formats, data is in MSB, padding in LSB.

- Hendrik


More information about the ffmpeg-devel mailing list