# HG changeset patch # User nick # Date 1003504998 0 # Node ID 1d100b2d668c496d61199c39074795315bfcb5cd # Parent d48e1d71458690f71278b8f5ae42a3d77188e9cf Initial YUV (YV12) support diff -r d48e1d714586 -r 1d100b2d668c libvo/vo_vesa.c --- a/libvo/vo_vesa.c Fri Oct 19 15:21:36 2001 +0000 +++ b/libvo/vo_vesa.c Fri Oct 19 15:23:18 2001 +0000 @@ -251,8 +251,8 @@ uint32_t retval; switch(format) { -#if 0 case IMGFMT_YV12: +#if 0 /* Should be tested better */ case IMGFMT_I420: case IMGFMT_IYUV: #endif @@ -355,8 +355,8 @@ case IMGFMT_RGB15: bpp = 15; break; case IMGFMT_YV12: case IMGFMT_I420: - case IMGFMT_IYUV: - yuv2rgb_init(video_mode_info.BitsPerPixel, MODE_RGB); + case IMGFMT_IYUV: bpp=16; + yuv2rgb_init(bpp, MODE_RGB); default: case IMGFMT_BGR16: case IMGFMT_RGB16: bpp = 16; break;