[vlc-commits] fourcc: add VLC_CODEC_GREY_16{L, B}
Tristan Matthews
git at videolan.org
Tue Jul 17 08:10:53 CEST 2018
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Jul 17 02:03:42 2018 -0400| [1c34053ec020be288d7dc6228f60681607c7adf3] | committer: Tristan Matthews
fourcc: add VLC_CODEC_GREY_16{L, B}
Refs #20814
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c34053ec020be288d7dc6228f60681607c7adf3
---
include/vlc_fourcc.h | 3 +++
src/misc/fourcc.c | 3 +++
src/misc/fourcc_list.h | 6 ++++++
3 files changed, 12 insertions(+)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 1a880c2f0f..ab376ef6a5 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -350,6 +350,9 @@
/* 8 bits grey */
#define VLC_CODEC_GREY VLC_FOURCC('G','R','E','Y')
+/* 16 bits grey */
+#define VLC_CODEC_GREY_16L VLC_FOURCC('G','R','F','L')
+#define VLC_CODEC_GREY_16B VLC_FOURCC('G','R','F','B')
/* VDPAU video surface YCbCr 4:2:0 */
#define VLC_CODEC_VDPAU_VIDEO_420 VLC_FOURCC('V','D','V','0')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index e0c15328d2..fd55e30243 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -744,6 +744,9 @@ static const struct
{ { VLC_CODEC_RGB8, VLC_CODEC_GREY,
VLC_CODEC_YUVP, VLC_CODEC_RGBP }, PACKED_FMT(1, 8) },
+ { { VLC_CODEC_GREY_16L,
+ VLC_CODEC_GREY_16B }, PACKED_FMT(2, 16) },
+
{ { VLC_CODEC_RGB15, 0 }, PACKED_FMT(2, 15) },
{ { VLC_CODEC_RGB12, 0 }, PACKED_FMT(2, 12) },
{ { VLC_CODEC_RGB16, 0 }, PACKED_FMT(2, 16) },
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index ab218ce8ba..7e09dd81e6 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -810,6 +810,12 @@ static const staticentry_t p_list_video[] = {
A("Y800"),
A("Y8 "),
+ B(VLC_CODEC_GREY_16L, "16 bits greyscale"),
+ A("GRFL"),
+
+ B(VLC_CODEC_GREY_16B, "16 bits greyscale"),
+ A("GRFB"),
+
B(VLC_CODEC_UYVY, "Packed YUV 4:2:2, U:Y:V:Y"),
A("UYVY"),
A("UYNV"),
More information about the vlc-commits
mailing list