[vlc-commits] avcodec: map 10/12/16 GBRA planar formats
Steve Lhomme
git at videolan.org
Fri Aug 3 09:50:24 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug 3 08:51:29 2018 +0200| [64bf64c145009361a51930f640007d97af7bca2f] | committer: Steve Lhomme
avcodec: map 10/12/16 GBRA planar formats
They can be found in FFv1
Ref #19562
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64bf64c145009361a51930f640007d97af7bca2f
---
modules/codec/avcodec/chroma.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 7c758e592b..e29d7bbf72 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -181,6 +181,19 @@ static const struct
#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 },
+#if (LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 55, 25, 100 ) ) || \
+ (LIBAVUTIL_VERSION_MICRO < 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 56, 1, 0 ) )
+ {VLC_CODEC_GBRA_PLANAR_10L, AV_PIX_FMT_GBRAP10LE, 0, 0, 0 },
+ {VLC_CODEC_GBRA_PLANAR_10B, AV_PIX_FMT_GBRAP10BE, 0, 0, 0 },
+#endif
+#if LIBAVUTIL_VERSION_CHECK(55, 25, 0, 19, 100)
+ {VLC_CODEC_GBRA_PLANAR_12L, AV_PIX_FMT_GBRAP12LE, 0, 0, 0 },
+ {VLC_CODEC_GBRA_PLANAR_12B, AV_PIX_FMT_GBRAP12BE, 0, 0, 0 },
+#endif
+#if LIBAVUTIL_VERSION_CHECK(54, 7, 0, 17, 100)
+ {VLC_CODEC_GBRA_PLANAR_16L, AV_PIX_FMT_GBRAP16LE, 0, 0, 0 },
+ {VLC_CODEC_GBRA_PLANAR_16B, AV_PIX_FMT_GBRAP16BE, 0, 0, 0 },
+#endif
/* XYZ */
#if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100)
More information about the vlc-commits
mailing list