[vlc-devel] [PATCH] avcodec: add mappings for gbrp 9/10-bit LE,BE
Tristan Matthews
tmatth at videolan.org
Sat Jun 20 10:16:39 CEST 2015
Fixes #14909
---
modules/codec/avcodec/chroma.c | 4 ++++
src/misc/fourcc.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 99224e2..efd3153 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -135,6 +135,10 @@ static const struct
{VLC_CODEC_RGBP, PIX_FMT_PAL8, 0, 0, 0},
{VLC_CODEC_GBR_PLANAR, AV_PIX_FMT_GBRP, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_9L, AV_PIX_FMT_GBRP9LE, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_9B, AV_PIX_FMT_GBRP9BE, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_10L, AV_PIX_FMT_GBRP10LE, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_10B, AV_PIX_FMT_GBRP10BE, 0, 0, 0 },
/* XYZ */
#if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100)
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 801146d..00e3609 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -590,6 +590,10 @@ static const struct
{ { VLC_CODEC_YUV422A }, PLANAR_8(4, 2, 1) },
{ { VLC_CODEC_GBR_PLANAR }, PLANAR_8(3, 1, 1) },
+ { { VLC_CODEC_GBR_PLANAR_9L,
+ 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_I420_10L,
VLC_CODEC_I420_10B }, PLANAR_16(3, 2, 2, 10) },
--
2.1.4
More information about the vlc-devel
mailing list