[FFmpeg-devel] [PATCH] libavutil/hwcontext_d3d11va: Support Y212/XV36 pixel format
James Almer
jamrial at gmail.com
Thu Oct 31 16:33:20 EET 2024
On 10/31/2024 9:45 AM, fei.w.wang-at-intel.com at ffmpeg.org wrote:
> From: Fei Wang <fei.w.wang at 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.wang at 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241031/91a6c47d/attachment.sig>
More information about the ffmpeg-devel
mailing list