[vlc-commits] Add NV12/NV21 as YUV formats

Jean-Baptiste Kempf git at videolan.org
Sun Feb 24 23:17:50 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 24 23:12:57 2013 +0100| [a77e8a73cb30bc6f7e5593195f631745f44c4637] | committer: Jean-Baptiste Kempf

Add NV12/NV21 as YUV formats

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

 src/misc/fourcc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index c4c8ed8..57a428f 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1589,6 +1589,9 @@ const char *vlc_fourcc_GetDescription( int i_cat, vlc_fourcc_t i_fourcc )
 #define VLC_CODEC_YUV_PLANAR_420 \
     VLC_CODEC_I420, VLC_CODEC_YV12, VLC_CODEC_J420
 
+#define VLC_CODEC_YUV_SEMIPLANAR_420 \
+    VLC_CODEC_NV12, VLC_CODEC_NV21
+
 #define VLC_CODEC_YUV_PLANAR_420_16 \
     VLC_CODEC_I420_10L, VLC_CODEC_I420_10B, VLC_CODEC_I420_9L, VLC_CODEC_I420_9B
 
@@ -1773,6 +1776,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
 
 static const vlc_fourcc_t p_list_YUV[] = {
     VLC_CODEC_YUV_PLANAR_420,
+    VLC_CODEC_YUV_SEMIPLANAR_420,
     VLC_CODEC_YUV_PLANAR_422,
     VLC_CODEC_YUV_PLANAR_440,
     VLC_CODEC_YUV_PLANAR_444,



More information about the vlc-commits mailing list