[vlc-commits] avcodec: map VLC_CODEC_RGBA64 to AV_PIX_FMT_RGBA64LE

Steve Lhomme git at videolan.org
Thu Feb 7 09:43:21 CET 2019


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug  3 08:01:01 2018 +0200| [64acb7df485ad264b2381236dd3803b3da2ffaf0] | committer: Steve Lhomme

avcodec: map VLC_CODEC_RGBA64 to AV_PIX_FMT_RGBA64LE

The current mask only handles 32 bits so we only map the format for the CPU endianess.

The values are supported in libav since 2014 but only since 55.0 in ffmpeg.

(cherry picked from commit f5236e6fe05ea861a8f676eb398d9f221e0f454c)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=64acb7df485ad264b2381236dd3803b3da2ffaf0
---

 modules/codec/avcodec/chroma.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index e622e25c7a..10338450b2 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -145,6 +145,14 @@ static const struct
     VLC_RGB( VLC_CODEC_RGB32, AV_PIX_FMT_0BGR32, AV_PIX_FMT_0RGB32, 0x000000ff, 0x0000ff00, 0x00ff0000 )
 #endif
 
+#if (LIBAVUTIL_VERSION_MICRO == 0 || LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 55, 0, 100 ) )
+#ifdef WORDS_BIGENDIAN
+    {VLC_CODEC_RGBA64, AV_PIX_FMT_RGBA64BE, 0, 0, 0 },
+#else /* !WORDS_BIGENDIAN */
+    {VLC_CODEC_RGBA64, AV_PIX_FMT_RGBA64LE, 0, 0, 0 },
+#endif /* !WORDS_BIGENDIAN */
+#endif
+
     {VLC_CODEC_RGBA, AV_PIX_FMT_RGBA, 0, 0, 0 },
     {VLC_CODEC_ARGB, AV_PIX_FMT_ARGB, 0, 0, 0 },
     {VLC_CODEC_BGRA, AV_PIX_FMT_BGRA, 0, 0, 0 },



More information about the vlc-commits mailing list