[vlc-devel] commit: Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core. (Antoine Cellerier )
git version control
git at videolan.org
Wed Jun 4 16:49:36 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sat May 31 17:34:35 2008 +0200| [eb7856b7405bb1ae4472081760d89b6134fad464]
Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb7856b7405bb1ae4472081760d89b6134fad464
---
src/video_output/vout_pictures.c | 18 ++++++++++++++++++
src/video_output/vout_pictures.h | 2 ++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c
index 44ab4c2..6b233df 100644
--- a/src/video_output/vout_pictures.c
+++ b/src/video_output/vout_pictures.c
@@ -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;
}
diff --git a/src/video_output/vout_pictures.h b/src/video_output/vout_pictures.h
index 518e6c5..cdae378 100644
--- a/src/video_output/vout_pictures.h
+++ b/src/video_output/vout_pictures.h
@@ -102,6 +102,8 @@
/* 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
*
More information about the vlc-devel
mailing list