On Thu, 2024-10-31 at 11:33 -0300, James Almer wrote: > > On 10/31/2024 9:45 AM, fei.w.wang-at-intel....@ffmpeg.org wrote: > > > > From: Fei Wang <fei.w.w...@intel.com> > > > > > > > > Use DXGI 16bit pixel format to compatible with 12bit Y212/XV36 > > > > > > since > > > > there is no 12bit pixel defined in D3D11. > > > > > > > > Fix cmdline on Windows: > > > > > > > > $ ffmpeg.exe -hwaccel qsv -i input_12bit.bin -f null - > > > > > > > > Signed-off-by: Fei Wang <fei.w.w...@intel.com> > > > > --- > > > > libavutil/hwcontext_d3d11va.c | 4 ++++ > > > > 1 file changed, 4 insertions(+) > > > > > > > > diff --git a/libavutil/hwcontext_d3d11va.c > > > > > > b/libavutil/hwcontext_d3d11va.c > > > > index 9d81effe5e..2cde44af8e 100644 > > > > --- a/libavutil/hwcontext_d3d11va.c > > > > +++ b/libavutil/hwcontext_d3d11va.c > > > > @@ -104,6 +104,10 @@ static const struct { > > > > { DXGI_FORMAT_P016, AV_PIX_FMT_P012 }, > > > > { DXGI_FORMAT_Y216, AV_PIX_FMT_Y216 }, > > > > { DXGI_FORMAT_Y416, AV_PIX_FMT_XV48 }, > > > > + // There is no 12bit pixel format defined in D3D11, use > > > > 16bit > > to compatible > > > > + // with 12 bit AV_PIX_FMT* formats. > > > > + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 }, > > > > + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 }, > > > > Should the same be added to dxva2?
Yes, it should be. Added in V2. Thanks Fei > > > > _______________________________________________ > > ffmpeg-devel mailing list > > ffmpeg-devel@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > > > To unsubscribe, visit link above, or email > > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".