Commit eb7856b7 authored by Antoine Cellerier's avatar Antoine Cellerier

Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core.

parent 39eef2d3
...@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma, ...@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
break; break;
case FOURCC_GREY: case FOURCC_GREY:
case FOURCC_Y800:
case FOURCC_Y8:
p_format->i_bits_per_pixel = 8; p_format->i_bits_per_pixel = 8;
break; break;
...@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic, ...@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break; break;
case FOURCC_GREY: case FOURCC_GREY:
case FOURCC_Y800:
case FOURCC_Y8:
p_pic->p->i_lines = i_height_aligned; p_pic->p->i_lines = i_height_aligned;
p_pic->p->i_visible_lines = i_height; p_pic->p->i_visible_lines = i_height;
p_pic->p->i_pitch = i_width_aligned; 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 ) ...@@ -911,6 +915,20 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
return 0; 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: default:
return 0; return 0;
} }
......
...@@ -102,6 +102,8 @@ ...@@ -102,6 +102,8 @@
/* Planar 8-bit grayscale */ /* Planar 8-bit grayscale */
#define FOURCC_GREY VLC_FOURCC('G','R','E','Y') #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 /* Alignment of critical dynamic data structure
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment