[vlc-devel] [PATCH] modules/video_filter/blend: support grayscale

Mike Frysinger vapier at gentoo.org
Fri Jan 9 11:44:19 CET 2009


Support blending of raw grayscale video.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
this is a forward port of an old patch by a friend:
http://mailman.videolan.org/pipermail/vlc-devel/2006-August/025574.html

 modules/video_filter/blend.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/blend.c b/modules/video_filter/blend.c
index 08fe36f..e5054d3 100644
--- a/modules/video_filter/blend.c
+++ b/modules/video_filter/blend.c
@@ -59,6 +59,7 @@ struct filter_sys_t
 #define FCC_YUVA VLC_FOURCC('Y','U','V','A')
 #define FCC_YUVP VLC_FOURCC('Y','U','V','P')
 #define FCC_RGBA VLC_FOURCC('R','G','B','A')
+#define FCC_GREY VLC_FOURCC('G','R','E','Y')
 
 #define FCC_I420 VLC_FOURCC('I','4','2','0')
 #define FCC_YV12 VLC_FOURCC('Y','V','1','2')
@@ -131,7 +132,7 @@ static int OpenFilter( vlc_object_t *p_this )
     int out_chroma = p_filter->fmt_out.video.i_chroma;
     if( ( in_chroma  != FCC_YUVA && in_chroma  != FCC_I420 &&
           in_chroma  != FCC_YV12 && in_chroma  != FCC_YUVP &&
-          in_chroma  != FCC_RGBA ) ||
+          in_chroma  != FCC_RGBA && in_chroma  != FCC_GREY ) ||
         ( out_chroma != FCC_I420 && out_chroma != FCC_YUY2 &&
           out_chroma != FCC_YV12 && out_chroma != FCC_UYVY &&
           out_chroma != FCC_YVYU && out_chroma != FCC_RV15 &&
-- 
1.6.0.6




More information about the vlc-devel mailing list