diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-28 18:30:59 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-28 18:30:59 +0000 |
commit | a4ef78e9a19ef29c6f4446c7bbed103ea3e66681 (patch) | |
tree | 27e2ff89af5543be0a52e8ed53d46b2af5153454 /libvo/vo_x11.c | |
parent | 07dcf8875b05bbc333820a7af32a17c723bcc258 (diff) | |
download | mpv-a4ef78e9a19ef29c6f4446c7bbed103ea3e66681.tar.bz2 mpv-a4ef78e9a19ef29c6f4446c7bbed103ea3e66681.tar.xz |
yv12 to yv12 scaler
someone who knows a bit about vo_odivx could add support for it ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2520 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 8a860b3ba8..aeb61d0fca 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -484,8 +484,9 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y { if(scale_xinc){ - SwScale_YV12slice_brg24(src,stride,y,h, - ImageData, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth, + uint8_t *dst[3] = {ImageData, NULL, NULL}; + SwScale_YV12slice(src,stride,y,h, + dst, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth, scale_xinc, scale_yinc); } else { uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); |