From 3521950ba971f8c8896e9b75da029c226f6de5f2 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 18 Jan 2008 18:37:18 +0000 Subject: Simplify git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25784 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libvo') diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 356eddfccb..ef21950d62 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1024,8 +1024,7 @@ static void add_scaler(int scaler, char **prog_pos, int *remain, char *texs, else snprintf(*prog_pos, *remain, bicub_filt_template_2D, in_tex, (float)texw, (float)texh, - texs[0], (float)1.0 / texw, (float)1.0 / texw, - texs[0], (float)1.0 / texh, (float)1.0 / texh, + texs[0], ptw, ptw, texs[0], pth, pth, in_tex, in_tex, in_tex, in_tex, in_tex, in_tex, out_comp); break; case YUV_SCALER_BICUB_X: @@ -1036,7 +1035,7 @@ static void add_scaler(int scaler, char **prog_pos, int *remain, char *texs, else snprintf(*prog_pos, *remain, bicub_x_filt_template_2D, in_tex, (float)texw, (float)texh, - texs[0], (float)1.0 / texw, (float)1.0 / texw, + texs[0], ptw, ptw, in_tex, in_tex, in_tex, in_tex, out_comp); break; case YUV_SCALER_BICUB_NOTEX: @@ -1046,9 +1045,7 @@ static void add_scaler(int scaler, char **prog_pos, int *remain, char *texs, in_tex, in_tex, in_tex, in_tex, in_tex, in_tex, out_comp); else snprintf(*prog_pos, *remain, bicub_notex_filt_template_2D, - in_tex, (float)texw, (float)texh, - (float)1.0 / texw, (float)1.0 / texw, - (float)1.0 / texh, (float)1.0 / texh, + in_tex, (float)texw, (float)texh, ptw, ptw, pth, pth, in_tex, in_tex, in_tex, in_tex, in_tex, in_tex, out_comp); break; case YUV_SCALER_UNSHARP: -- cgit v1.2.3