summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-06 20:52:14 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-06 20:52:14 +0000
commit7bfa2fa2759932632079f553e0a467c9a14cd506 (patch)
tree1148d80746bdc12d68f4e15b5428bbabb61382b2 /libvo
parent403b791ab9f13e85ce9866f86749fc9267a315be (diff)
downloadmpv-7bfa2fa2759932632079f553e0a467c9a14cd506.tar.bz2
mpv-7bfa2fa2759932632079f553e0a467c9a14cd506.tar.xz
swScale internally uses yuv2rgb now if possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4555 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c4
-rw-r--r--libvo/vo_x11.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 09966b640b..bb8da0cc2b 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -262,7 +262,7 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
dstStride[1]=
dstStride[2]=dstStride[0]>>1;
if(HAS_DGA()) dst[0] += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE();
- (*swScale)(sws,image,stride,y,h,dst,dstStride);
+ sws->swScale(sws,image,stride,y,h,dst,dstStride);
flip_trigger = 1;
return 0;
}
@@ -371,7 +371,7 @@ static uint32_t draw_frame(uint8_t *src[])
else
srcStride[0] = srcW*2;
if(HAS_DGA()) dst[0] += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE();
- (*swScale)(sws,src,srcStride,0,srcH,dst,dstStride);
+ sws->swScale(sws,src,srcStride,0,srcH,dst,dstStride);
flip_trigger=1;
}
else if(!HAS_DGA()) __vbeCopyData(src[0]);
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 8a8feb399c..d9c7e963a7 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -501,7 +501,7 @@ if(swsContext){
dst[1]=
dst[2]=NULL;
- swScale(swsContext,src,stride,y,h,dst, dstStride);
+ swsContext->swScale(swsContext,src,stride,y,h,dst, dstStride);
} else {
uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 );
if(image_format==IMGFMT_YV12)