diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-16 01:26:08 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-16 01:26:08 +0000 |
commit | fd80ec7a2d180e88438169ebc2eb5b9a1d136f58 (patch) | |
tree | c77494dc9e57d57f6b88bb555d584e6ba8bc788b /libvo/mga_common.c | |
parent | 82f6a7a3482d8f15ce30a76d4887c648ac43d01b (diff) | |
download | mpv-fd80ec7a2d180e88438169ebc2eb5b9a1d136f58.tar.bz2 mpv-fd80ec7a2d180e88438169ebc2eb5b9a1d136f58.tar.xz |
UYVY support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@467 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index a6dd82ff9a..f9c281c19b 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -12,10 +12,17 @@ static int f; static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ int x,y; uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31; - if (mga_vid_config.format==MGA_VID_FORMAT_YV12) + switch(mga_vid_config.format){ + case MGA_VID_FORMAT_YV12: vo_draw_alpha_yv12(w,h,src,srca,stride,vid_data+bespitch*y0+x0,bespitch); - else + break; + case MGA_VID_FORMAT_YUY2: vo_draw_alpha_yuy2(w,h,src,srca,stride,vid_data+2*(bespitch*y0+x0),2*bespitch); + break; + case MGA_VID_FORMAT_UYVY: + vo_draw_alpha_yuy2(w,h,src,srca,stride,vid_data+2*(bespitch*y0+x0)+1,2*bespitch); + break; + } } |