[vlc-commits] fourcc: add support for planar GBR 12/14 bits

Steve Lhomme git at videolan.org
Fri Aug 3 09:50:21 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug  3 08:37:18 2018 +0200| [1e4f27f67d54a2e983d2e62c1df692cd994373a8] | committer: Steve Lhomme

fourcc: add support for planar GBR 12/14 bits

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e4f27f67d54a2e983d2e62c1df692cd994373a8
---

 include/vlc_fourcc.h | 4 ++++
 src/misc/fourcc.c    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index f515148532..54a27867fd 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -345,6 +345,10 @@
 #define VLC_CODEC_GBR_PLANAR_9L   VLC_FOURCC('G','B','9','L')
 #define VLC_CODEC_GBR_PLANAR_10B  VLC_FOURCC('G','B','A','B')
 #define VLC_CODEC_GBR_PLANAR_10L  VLC_FOURCC('G','B','A','L')
+#define VLC_CODEC_GBR_PLANAR_12B  VLC_FOURCC('G','B','B','B')
+#define VLC_CODEC_GBR_PLANAR_12L  VLC_FOURCC('G','B','B','L')
+#define VLC_CODEC_GBR_PLANAR_14B  VLC_FOURCC('G','B','D','B')
+#define VLC_CODEC_GBR_PLANAR_14L  VLC_FOURCC('G','B','D','L')
 #define VLC_CODEC_GBR_PLANAR_16L  VLC_FOURCC('G','B','F','L')
 #define VLC_CODEC_GBR_PLANAR_16B  VLC_FOURCC('G','B','F','B')
 
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 808f33c03d..c7cbf782c3 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -711,6 +711,10 @@ static const struct
         VLC_CODEC_GBR_PLANAR_9B },             PLANAR_16(3, 1, 1, 9) },
     { { VLC_CODEC_GBR_PLANAR_10L,
         VLC_CODEC_GBR_PLANAR_10B },            PLANAR_16(3, 1, 1, 10) },
+    { { VLC_CODEC_GBR_PLANAR_12L,
+        VLC_CODEC_GBR_PLANAR_12B },            PLANAR_16(3, 1, 1, 12) },
+    { { VLC_CODEC_GBR_PLANAR_14L,
+        VLC_CODEC_GBR_PLANAR_14B },            PLANAR_16(3, 1, 1, 14) },
     { { VLC_CODEC_GBR_PLANAR_16L,
         VLC_CODEC_GBR_PLANAR_16B },            PLANAR_16(3, 1, 1, 16) },
 



More information about the vlc-commits mailing list