Commit 15320bad authored by Laurent Aimar's avatar Laurent Aimar

* rawvideo.c, ffmpeg/chroma.c: added YVU9.

parent 9803dc46
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* chroma.c: chroma conversion using ffmpeg library * chroma.c: chroma conversion using ffmpeg library
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: chroma.c,v 1.6 2003/11/26 22:18:29 gbazin Exp $ * $Id: chroma.c,v 1.7 2004/02/27 14:02:05 fenrir Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -93,6 +93,7 @@ int E_(OpenChroma)( vlc_object_t *p_this ) ...@@ -93,6 +93,7 @@ int E_(OpenChroma)( vlc_object_t *p_this )
break; break;
case VLC_FOURCC('I','4','1','0'): case VLC_FOURCC('I','4','1','0'):
case VLC_FOURCC('Y','V','U','9'):
i_ffmpeg_chroma[i] = PIX_FMT_YUV410P; i_ffmpeg_chroma[i] = PIX_FMT_YUV410P;
break; break;
...@@ -174,13 +175,15 @@ static void ChromaConversion( vout_thread_t *p_vout, ...@@ -174,13 +175,15 @@ static void ChromaConversion( vout_thread_t *p_vout,
} }
/* Special cases */ /* Special cases */
if( p_vout->chroma.p_sys->i_src_vlc_chroma == VLC_FOURCC('Y','V','1','2') ) if( p_vout->chroma.p_sys->i_src_vlc_chroma == VLC_FOURCC('Y','V','1','2') ||
p_vout->chroma.p_sys->i_src_vlc_chroma == VLC_FOURCC('Y','V','U','9') )
{ {
/* Invert U and V */ /* Invert U and V */
src_pic.data[1] = p_src->p[2].p_pixels; src_pic.data[1] = p_src->p[2].p_pixels;
src_pic.data[2] = p_src->p[1].p_pixels; src_pic.data[2] = p_src->p[1].p_pixels;
} }
if( p_vout->chroma.p_sys->i_dst_vlc_chroma == VLC_FOURCC('Y','V','1','2') ) if( p_vout->chroma.p_sys->i_dst_vlc_chroma == VLC_FOURCC('Y','V','1','2') ||
p_vout->chroma.p_sys->i_dst_vlc_chroma == VLC_FOURCC('Y','V','U','9') )
{ {
/* Invert U and V */ /* Invert U and V */
dest_pic.data[1] = p_dest->p[2].p_pixels; dest_pic.data[1] = p_dest->p[2].p_pixels;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* rawvideo.c: Pseudo video decoder/packetizer for raw video data * rawvideo.c: Pseudo video decoder/packetizer for raw video data
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: rawvideo.c,v 1.12 2004/02/22 15:57:41 fenrir Exp $ * $Id: rawvideo.c,v 1.13 2004/02/27 14:02:05 fenrir Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -92,6 +92,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -92,6 +92,7 @@ static int OpenDecoder( vlc_object_t *p_this )
case VLC_FOURCC('I','Y','U','V'): case VLC_FOURCC('I','Y','U','V'):
case VLC_FOURCC('I','4','1','1'): case VLC_FOURCC('I','4','1','1'):
case VLC_FOURCC('I','4','1','0'): case VLC_FOURCC('I','4','1','0'):
case VLC_FOURCC('Y','V','U','9'):
/* Packed YUV */ /* Packed YUV */
case VLC_FOURCC('Y','U','Y','2'): case VLC_FOURCC('Y','U','Y','2'):
......
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