[FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel format
Wang, Fei W
fei.w.wang at intel.com
Mon Jun 22 04:38:50 EEST 2020
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Carl
> Eugen Hoyos
> Sent: Saturday, June 20, 2020 12:59 AM
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel
> format
>
> Am Fr., 19. Juni 2020 um 10:27 Uhr schrieb Wang, Fei W
> <fei.w.wang at intel.com>:
> >
> >
> >
> > > -----Original Message-----
> > > From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> > > Hendrik Leppkes
> > > Sent: Friday, June 19, 2020 3:21 PM
> > > To: FFmpeg development discussions and patches
> > > <ffmpeg-devel at ffmpeg.org>
> > > Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012
> > > pixel format
> > >
> > > 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.
> > If using P016 instead of P012 for 12bit clips, that means for 16bit
> > clips we also need to use P016, which will bring the conflict with current
> VAAPI logic.
>
> Then fix the logic, it is easy to detect how many significant bits the data
> contains.
Yes, it is not hard to refine the logic, and before the action I'd like to listen
From Mark Thompson, the maintainer of VAAPI to reach an agreement.
Kindly Ping @Mark Thompson
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email ffmpeg-devel-request at ffmpeg.org
> with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list