fourcc: quicktime yuv2 != YUV2 (refs #16720)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 8 Jan 2020 20:02:13 +0000 (21:02 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 8 Jan 2020 20:49:35 +0000 (21:49 +0100)
include/vlc_fourcc.h
src/misc/es_format.c
src/misc/fourcc.c
src/misc/fourcc_list.h

index 2e0dc43..dc43fcc 100644 (file)
 #define VLC_CODEC_VYUY            VLC_FOURCC('V','Y','U','Y')
 /* Packed YUV 4:2:2, Y:U:Y:V */
 #define VLC_CODEC_YUYV            VLC_FOURCC('Y','U','Y','2')
+/* Packed YUV 4:2:2, Y:U:Y:V, signed */
+#define VLC_CODEC_YUV2            VLC_FOURCC('y','u','v','2')
 /* Packed YUV 4:2:2, Y:V:Y:U */
 #define VLC_CODEC_YVYU            VLC_FOURCC('Y','V','Y','U')
 /* Packed YUV 2:1:1, Y:U:Y:V */
index 9abf773..fa092d5 100644 (file)
@@ -104,6 +104,7 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
     case VLC_CODEC_YUYV:
     case VLC_CODEC_YVYU:
     case VLC_CODEC_UYVY:
+    case VLC_CODEC_YUV2:
     case VLC_CODEC_VYUY:
     case VLC_CODEC_J422:
         p_fmt->i_bits_per_pixel = 16;
index c7855df..9b4ea14 100644 (file)
@@ -788,6 +788,7 @@ static const struct
 
     { { VLC_CODEC_YUYV, VLC_CODEC_YVYU,
         VLC_CODEC_UYVY, VLC_CODEC_VYUY },      PACKED_FMT(2, 16) },
+    { { VLC_CODEC_YUV2 },                      PACKED_FMT(2, 16) },
     { { VLC_CODEC_RGB8, VLC_CODEC_GREY,
         VLC_CODEC_YUVP, VLC_CODEC_RGBP },      PACKED_FMT(1, 8) },
 
index 662ae5b..f942731 100644 (file)
@@ -851,6 +851,11 @@ static const staticentry_t p_list_video[] = {
         A("YUYV"),
         A("YUNV"),
         A("V422"),
+
+    B(VLC_CODEC_YUV2, "Packed YUV 4:2:2, Y:U:Y:V signed"),
+        A("yuv2"),
+        A("yuvu"),
+
     B(VLC_CODEC_YVYU, "Packed YUV 4:2:2, Y:V:Y:U"),
         A("YVYU"),