[vlc-devel] [PATCH] modules/codec: support grayscale

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


Handle raw grayscale video output.

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/codec/rawvideo.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index e79e2ed..be49b3f 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -109,6 +109,9 @@ static int OpenDecoder( vlc_object_t *p_this )
         case VLC_FOURCC('U','Y','V','Y'):
         case VLC_FOURCC('H','D','Y','C'):
 
+        /* Grayscale */
+        case VLC_FOURCC('G','R','E','Y'):
+
         /* RGB */
         case VLC_FOURCC('R','V','3','2'):
         case VLC_FOURCC('R','V','2','4'):
-- 
1.6.0.6




More information about the vlc-devel mailing list