Mercurial > mplayer.hg
diff libvo/mga_common.c @ 448:198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
author | arpi_esp |
---|---|
date | Sun, 15 Apr 2001 20:31:58 +0000 |
parents | 7785656abf11 |
children | c7c03bf70bb7 |
line wrap: on
line diff
--- a/libvo/mga_common.c Sun Apr 15 19:35:34 2001 +0000 +++ b/libvo/mga_common.c Sun Apr 15 20:31:58 2001 +0000 @@ -150,9 +150,13 @@ static uint32_t draw_frame(uint8_t *src[]) { - if (mga_vid_config.format==MGA_VID_FORMAT_YUY2) - write_frame_yuy2(src[0]); - return 0; + switch(mga_vid_config.format){ + case MGA_VID_FORMAT_YUY2: + write_frame_yuy2(src[0]);break; + case MGA_VID_FORMAT_UYVY: + write_frame_yuy2(src[0]);break; + } + return 0; } static uint32_t @@ -161,6 +165,7 @@ switch(format){ case IMGFMT_YV12: case IMGFMT_YUY2: + case IMGFMT_UYVY: // case IMGFMT_RGB|24: // case IMGFMT_BGR|24: return 1;