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

2022-01-26 Thread Carl Eugen Hoyos
Am Mi., 26. Jan. 2022 um 09:33 Uhr schrieb Xiang, Haihao : > > Did you already explain why you cannot use P016 or in which situation > > it would create a different output? > > $ ffmpeg -hwaccel vaapi -f rawvideo -pix_fmt p016 -s 1920x1080 -i input.yuv > -vf "hwupload,format=vaapi" -c:v hevc_vaapi

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

2022-01-26 Thread Xiang, Haihao
30, 2020 15:34 > > > To: ffmpeg-devel@ffmpeg.org > > > Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel > > > format > > > > > > > Am So., 28. Juni 2020 um 23:01 Uhr schrieb Mark Thompson > > > > : > > > >

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

2022-01-22 Thread Carl Eugen Hoyos
Am Fr., 21. Jan. 2022 um 06:56 Uhr schrieb Xiang, Haihao : > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Xiang, > > Haihao > > Sent: Tuesday, June 30, 2020 15:34 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PAT

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

2022-01-20 Thread Xiang, Haihao
> -Original Message- > From: ffmpeg-devel On Behalf Of Xiang, > Haihao > Sent: Tuesday, June 30, 2020 15:34 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel > format > > > Am So., 28. Juni 2020 um 2

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

2020-06-30 Thread Xiang, Haihao
Agree with Mark. P012 and P016 have different significant bits, we should use different pixfmts, otherwise an extra field in AVFrame is needed for bit depth. BTW there are the YUV420P variants for 10 / 12 / 14 / 16 bit in FFmpeg, it would be better to follow FFmpeg's style to introduce P012 form

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

2020-06-28 Thread Carl Eugen Hoyos
Am So., 28. Juni 2020 um 23:01 Uhr schrieb Mark Thompson : > FFmpeg has always used pixfmt as defining both the memory layout > and which bits are used in that (so, for example, ARGB and 0RGB > are not the same thing) But they have the same bitdepth per component... Carl Eugen __

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

2020-06-28 Thread Mark Thompson
On 19/06/2020 08:21, Hendrik Leppkes wrote: On Fri, Jun 19, 2020 at 3:53 AM Fei Wang 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

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

2020-06-21 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of Carl > Eugen Hoyos > Sent: Saturday, June 20, 2020 12:59 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel > format > > Am Fr.,

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

2020-06-19 Thread Carl Eugen Hoyos
Am Fr., 19. Juni 2020 um 10:27 Uhr schrieb Wang, Fei W : > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Hendrik Leppkes > > Sent: Friday, June 19, 2020 3:21 PM > > To: FFmpeg development discussions and patches > > Su

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

2020-06-19 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Friday, June 19, 2020 3:21 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v1 1/9] lavu/pix_fmt: add P012 pixel > format > > On Fri,

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

2020-06-19 Thread Hendrik Leppkes
On Fri, Jun 19, 2020 at 3:53 AM Fei Wang 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. Al

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

2020-06-18 Thread Fei Wang
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. Signed-off-by: Fei Wang --- libavutil/pixdesc.c | 24 libavutil/pi