mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
fixed osd for UYVY image format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@451 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c563c20313
commit
20ea207eb5
@ -272,10 +272,12 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned
|
||||
vo_draw_alpha_yv12(w,h,src,srca,stride,xvimage[0]->data+image_width*y0+x0,image_width);
|
||||
break;
|
||||
case IMGFMT_YUY2:
|
||||
case IMGFMT_UYVY:
|
||||
case IMGFMT_YVYU:
|
||||
vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[0]->data+2*(image_width*y0+x0),2*image_width);
|
||||
break;
|
||||
case IMGFMT_UYVY:
|
||||
vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[0]->data+2*(image_width*y0+x0)+1,2*image_width);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user