summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-23 23:34:16 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-23 23:34:16 +0000
commit767d5d6d4abbe98db291927a74302febb559c5c2 (patch)
treed020c6299102b76b3e50d958e214d6a7fe927feb /libvo
parentf50b552000ae05a9a013815ba5e472f77d6da381 (diff)
downloadmpv-767d5d6d4abbe98db291927a74302febb559c5c2.tar.bz2
mpv-767d5d6d4abbe98db291927a74302febb559c5c2.tar.xz
100l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9497 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_aa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index b0bfdb2fa9..770a1c45ec 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -79,7 +79,7 @@ int aaconfigmode=1;
#ifdef USE_OSD
font_desc_t* vo_font_save = NULL;
#endif
-static SwsContext *sws=NULL;
+static struct SwsContext *sws=NULL;
extern m_config_t *mconfig;
/* our version of the playmodes :) */
@@ -119,8 +119,8 @@ resize(void){
screen_x = (aa_scrwidth(c) - screen_w) / 2;
screen_y = (aa_scrheight(c) - screen_h) / 2;
- if(sws) freeSwsContext(sws);
- sws = getSwsContextFromCmdLine(src_width,src_height,image_format,
+ if(sws) sws_freeContext(sws);
+ sws = sws_getContextFromCmdLine(src_width,src_height,image_format,
image_width,image_height,IMGFMT_Y8);
image[0] = aa_image(c) + image_y * aa_imgwidth(c) + image_x;
@@ -360,7 +360,7 @@ draw_frame(uint8_t *src[]) {
break;
}
- sws->swScale(sws,src,stride,0,src_height,image,image_stride);
+ sws_scale(sws,src,stride,0,src_height,image,image_stride);
/* Now 'ASCIInate' the image */
if (fast)
@@ -380,7 +380,7 @@ draw_slice(uint8_t *src[], int stride[],
int dx2 = screen_x + ((x+w) * screen_w / src_width);
int dy2 = screen_y + ((y+h) * screen_h / src_height);
- sws->swScale(sws,src,stride,y,h,image,image_stride);
+ sws_scale(sws,src,stride,y,h,image,image_stride);
/* Now 'ASCIInate' the image */
if (fast)