diff options
author | Soft Works <softworkz@hotmail.com> | 2021-08-07 05:02:11 +0000 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-11-13 19:22:57 +0100 |
commit | fba4d6f72b27b0dce1774e8e1eee2245cad9ffd2 (patch) | |
tree | 35485b441cef79b738346a257c452fa800cc9b8b | |
parent | b664df3ff47ab23a59bc5232249251f66f7115f9 (diff) | |
download | ffmpeg-fba4d6f72b27b0dce1774e8e1eee2245cad9ffd2.tar.gz |
avutil/hwcontext_dxva2: add ARGB format
Required for uploading frames with alpha for qsv_overlay
(v2: remove tab indent)
Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavutil/hwcontext_dxva2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c index f3e578fc10..53d00fa815 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); |