]> git.sesse.net Git - vlc/commitdiff
Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 31 May 2008 15:34:35 +0000 (17:34 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 4 Jun 2008 13:31:43 +0000 (15:31 +0200)
src/video_output/vout_pictures.c
src/video_output/vout_pictures.h

index 44ab4c2e6ffe6106fef07f215adc807d57ff5910..6b233df012d5433e0f1b154ab819b4305963d793 100644 (file)
@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
             break;
 
         case FOURCC_GREY:
+        case FOURCC_Y800:
+        case FOURCC_Y8:
             p_format->i_bits_per_pixel = 8;
             break;
 
@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
             break;
 
         case FOURCC_GREY:
+        case FOURCC_Y800:
+        case FOURCC_Y8:
             p_pic->p->i_lines = i_height_aligned;
             p_pic->p->i_visible_lines = i_height;
             p_pic->p->i_pitch = i_width_aligned;
@@ -911,6 +915,20 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
                     return 0;
             }
 
+        case FOURCC_GREY:
+        case FOURCC_Y800:
+        case FOURCC_Y8:
+            switch( i_amorhc )
+            {
+                case FOURCC_GREY:
+                case FOURCC_Y800:
+                case FOURCC_Y8:
+                    return 1;
+
+                default:
+                    return 0;
+            }
+
         default:
             return 0;
     }
index 518e6c5cf1fd505508dabff412b26fc656b6311a..cdae378d7e12be562b3d94fc8de98d9dbfdadcf9 100644 (file)
 
 /* Planar 8-bit grayscale */
 #define FOURCC_GREY         VLC_FOURCC('G','R','E','Y')
+#define FOURCC_Y800         VLC_FOURCC('Y','8','0','0')
+#define FOURCC_Y8           VLC_FOURCC('Y','8',' ',' ')
 
 /* Alignment of critical dynamic data structure
  *