[FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel format

Hendrik Leppkes h.leppkes at gmail.com
Fri Jun 19 10:21:12 EEST 2020


On Fri, Jun 19, 2020 at 3:53 AM Fei Wang <fei.w.wang at intel.com> wrote:
>
> P012 is 12bit planner format which is similar to NV12. It using two
> bytes to store 12bit valid data and 4bit zero in LSB. This format
> will be used for hardware decode/encode in VAAPI and QSV.
>

P012 is not required, you can just use P016. All these P*  formats
have the advantage of being aligned to MSB, which means the bitdepth
does not matter for their layout.
Instead you can use P016 and if you must know, look at a bitdepth
value separately.

- Hendrik


More information about the ffmpeg-devel mailing list