[vlc-commits] core: add VLC_CODEC_D3D11_OPAQUE_BGRA to differentiate from RGBA
Steve Lhomme
git at videolan.org
Wed Feb 21 12:20:45 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 29 17:40:43 2018 +0100| [90616f242f42601803d188f2ee12b535c3203554] | committer: Steve Lhomme
core: add VLC_CODEC_D3D11_OPAQUE_BGRA to differentiate from RGBA
They are not compatible (can't copy directly).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90616f242f42601803d188f2ee12b535c3203554
---
include/vlc_fourcc.h | 1 +
src/misc/fourcc.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index bf4e20d871..60b0969f9a 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -374,6 +374,7 @@
#define VLC_CODEC_D3D11_OPAQUE VLC_FOURCC('D','X','1','1') /* 4:2:0 8 bpc */
#define VLC_CODEC_D3D11_OPAQUE_10B VLC_FOURCC('D','X','1','0') /* 4:2:0 10 bpc */
#define VLC_CODEC_D3D11_OPAQUE_RGBA VLC_FOURCC('D','X','R','G')
+#define VLC_CODEC_D3D11_OPAQUE_BGRA VLC_FOURCC('D','A','G','R')
/* CVPixelBuffer opaque buffer type */
#define VLC_CODEC_CVPX_NV12 VLC_FOURCC('C','V','P','N')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 6f384e760c..49e56196a7 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -749,7 +749,7 @@ static const struct
VLC_CODEC_D3D9_OPAQUE, VLC_CODEC_D3D11_OPAQUE },
FAKE_FMT() },
{ { VLC_CODEC_D3D11_OPAQUE_10B, VLC_CODEC_D3D9_OPAQUE_10B,
- VLC_CODEC_D3D11_OPAQUE_RGBA },
+ VLC_CODEC_D3D11_OPAQUE_RGBA, VLC_CODEC_D3D11_OPAQUE_BGRA },
FAKE_FMT() },
{ { VLC_CODEC_CVPX_NV12, VLC_CODEC_CVPX_UYVY,
More information about the vlc-commits
mailing list