[vlc-commits] avcodec: map 12/14 GBR planar formats
Steve Lhomme
git at videolan.org
Fri Aug 3 09:50:22 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug 3 08:41:36 2018 +0200| [919e940870b4f00e0438af6f7905d290af141d23] | committer: Steve Lhomme
avcodec: map 12/14 GBR planar formats
They can be found in FFv1
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=919e940870b4f00e0438af6f7905d290af141d23
---
modules/codec/avcodec/chroma.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 2394b3399a..7c758e592b 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -170,6 +170,15 @@ static const struct
{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 },
+#if (LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 51, 74, 100 ) ) || \
+ (LIBAVUTIL_VERSION_MICRO < 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 55, 24, 0 ) )
+ {VLC_CODEC_GBR_PLANAR_12L, AV_PIX_FMT_GBRP12LE, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_12B, AV_PIX_FMT_GBRP12BE, 0, 0, 0 },
+#endif
+#if (LIBAVUTIL_VERSION_MICRO >= 100)
+ {VLC_CODEC_GBR_PLANAR_14L, AV_PIX_FMT_GBRP14LE, 0, 0, 0 },
+ {VLC_CODEC_GBR_PLANAR_14B, AV_PIX_FMT_GBRP14BE, 0, 0, 0 },
+#endif
{VLC_CODEC_GBR_PLANAR_16L, AV_PIX_FMT_GBRP16LE, 0, 0, 0 },
{VLC_CODEC_GBR_PLANAR_16B, AV_PIX_FMT_GBRP16BE, 0, 0, 0 },
More information about the vlc-commits
mailing list