Commit c51a81d4 authored by Damien Fouilleul's avatar Damien Fouilleul

- added support for UYVY chroma for directx direct vout render

parent beb4664f
...@@ -1624,6 +1624,7 @@ static int UpdatePictureStruct( vout_thread_t *p_vout, picture_t *p_pic, ...@@ -1624,6 +1624,7 @@ static int UpdatePictureStruct( vout_thread_t *p_vout, picture_t *p_pic,
p_pic->i_planes = 3; p_pic->i_planes = 3;
break; break;
case VLC_FOURCC('U','Y','V','Y'):
case VLC_FOURCC('Y','U','Y','2'): case VLC_FOURCC('Y','U','Y','2'):
p_pic->p->p_pixels = p_pic->p_sys->ddsd.lpSurface; p_pic->p->p_pixels = p_pic->p_sys->ddsd.lpSurface;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_pictures.c : picture management functions * vout_pictures.c : picture management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2004 VideoLAN * Copyright (C) 2000-2004 VideoLAN
* $Id: vout_pictures.c,v 1.47 2004/02/27 14:01:35 fenrir Exp $ * $Id$
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -518,6 +518,7 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma, ...@@ -518,6 +518,7 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
break; break;
case FOURCC_I422: case FOURCC_I422:
case FOURCC_YUY2: case FOURCC_YUY2:
case FOURCC_UYVY:
p_format->i_bits_per_pixel = 16; p_format->i_bits_per_pixel = 16;
p_format->i_bits_per_pixel = 16; p_format->i_bits_per_pixel = 16;
break; break;
...@@ -659,6 +660,7 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic, ...@@ -659,6 +660,7 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
p_pic->i_planes = 1; p_pic->i_planes = 1;
break; break;
case FOURCC_UYVY:
case FOURCC_YUY2: case FOURCC_YUY2:
p_pic->p->i_lines = i_height; p_pic->p->i_lines = i_height;
p_pic->p->i_pitch = i_width * 2; p_pic->p->i_pitch = i_width * 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