diff mbox series

[FFmpeg-devel,v2] DXVA2: Add ARGB format

Message ID MN2PR04MB5981A1D8907E725A597FE48DBAF49@MN2PR04MB5981.namprd04.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel,v2] DXVA2: Add ARGB format
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Soft Works Aug. 7, 2021, 5:02 a.m. UTC
Required for uploading frames with alpha for qsv_overlay
(v2: remove tab indent)

Signed-off-by: softworkz <softworkz@hotmail.com>
---
 libavutil/hwcontext_dxva2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Soft Works Aug. 26, 2021, 7:43 p.m. UTC | #1
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> Soft Works
> Sent: Saturday, 7 August 2021 07:02
> To: ffmpeg-devel@ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH v2] DXVA2: Add ARGB format
> 
> Required for uploading frames with alpha for qsv_overlay
> (v2: remove tab indent)
> 
> Signed-off-by: softworkz <softworkz@hotmail.com>
> ---
>  libavutil/hwcontext_dxva2.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavutil/hwcontext_dxva2.c
> b/libavutil/hwcontext_dxva2.c
> index 63b037da4a..9987cdc578 100644
> --- a/libavutil/hwcontext_dxva2.c
> +++ b/libavutil/hwcontext_dxva2.c
> @@ -83,6 +83,7 @@ static const struct {
>      { MKTAG('N', 'V', '1', '2'), AV_PIX_FMT_NV12 },
>      { MKTAG('P', '0', '1', '0'), AV_PIX_FMT_P010 },
>      { D3DFMT_P8,                 AV_PIX_FMT_PAL8 },
> +    { D3DFMT_A8R8G8B8,           AV_PIX_FMT_BGRA },
>  };
> 
>  DEFINE_GUID(video_decoder_service,   0xfc51a551, 0xd5e7, 0x11d9,
> 0xaf, 0x55, 0x00, 0x05, 0x4e, 0x43, 0xff, 0x02);
> --

Could somebody push this please?

Thanks,
softworkz
diff mbox series

Patch

diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index 63b037da4a..9987cdc578 100644
--- a/libavutil/hwcontext_dxva2.c
+++ b/libavutil/hwcontext_dxva2.c
@@ -83,6 +83,7 @@  static const struct {
     { MKTAG('N', 'V', '1', '2'), AV_PIX_FMT_NV12 },
     { MKTAG('P', '0', '1', '0'), AV_PIX_FMT_P010 },
     { D3DFMT_P8,                 AV_PIX_FMT_PAL8 },
+    { D3DFMT_A8R8G8B8,           AV_PIX_FMT_BGRA },
 };
 
 DEFINE_GUID(video_decoder_service,   0xfc51a551, 0xd5e7, 0x11d9, 0xaf, 0x55, 0x00, 0x05, 0x4e, 0x43, 0xff, 0x02);