[vlc-devel] [PATCH]win32 color fix

Rafaël Carré rafael.carre at gmail.com
Fri Jun 26 15:49:49 CEST 2009


On Fri, 26 Jun 2009 06:37:19 -0700
"Paul Fernquist" <p.fernquist at comcast.net> wrote:

> My first attempt at patching
>  
> Paul Fernquist

-    /* Choose the chroma we will try first. */
-    switch( p_vout->render.i_chroma )
-    {
-        case VLC_CODEC_YUYV:
-            p_vout->output.i_chroma = VLC_CODEC_YUYV;
-            break;
-        case VLC_CODEC_UYVY:
-            p_vout->output.i_chroma = VLC_CODEC_UYVY;
-            break;
-        case VLC_CODEC_YVYU:
-            p_vout->output.i_chroma = VLC_CODEC_YVYU;
-            break;
-        default:
-            p_vout->output.i_chroma = VLC_CODEC_YV12;
-            break;
-    }
+    /* win32 has used UYVY since Windows 98 It should be safe to use*/
+    p_vout->output.i_chroma = VLC_CODEC_UYVY;

I think the point here is to avoid conversion when possible?

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090626/3d38f268/attachment.sig>


More information about the vlc-devel mailing list