Mercurial > mplayer.hg
diff libvo/vo_gl.c @ 26836:ba086caf1230
Add a filter strength parameter for blurring/sharpening scalers.
author | reimar |
---|---|
date | Sat, 24 May 2008 11:19:38 +0000 |
parents | aadfce1c25c8 |
children | ea6c5ea1aa64 |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sat May 24 11:04:18 2008 +0000 +++ b/libvo/vo_gl.c Sat May 24 11:19:38 2008 +0000 @@ -74,6 +74,7 @@ static int use_yuv; static int lscale; static int cscale; +static float filter_strength; static int yuvconvtype; static int use_rectangle; static int err_shown; @@ -181,7 +182,7 @@ float bgamma = exp(log(8.0) * eq_bgamma / 100.0); gl_conversion_params_t params = {gl_target, yuvconvtype, bri, cont, hue, sat, rgamma, ggamma, bgamma, - texture_width, texture_height}; + texture_width, texture_height, filter_strength}; glSetupYUVConversion(¶ms); if (custom_prog) { FILE *f = fopen(custom_prog, "r"); @@ -809,6 +810,7 @@ {"yuv", OPT_ARG_INT, &use_yuv, (opt_test_f)int_non_neg}, {"lscale", OPT_ARG_INT, &lscale, (opt_test_f)int_non_neg}, {"cscale", OPT_ARG_INT, &cscale, (opt_test_f)int_non_neg}, + {"filter-strength", OPT_ARG_FLOAT, &filter_strength, NULL}, {"ati-hack", OPT_ARG_BOOL, &ati_hack, NULL}, {"force-pbo", OPT_ARG_BOOL, &force_pbo, NULL}, {"glfinish", OPT_ARG_BOOL, &use_glFinish, NULL}, @@ -831,6 +833,7 @@ use_yuv = 0; lscale = 0; cscale = 0; + filter_strength = 0.5; use_rectangle = 0; use_glFinish = 0; ati_hack = 0;