[MPlayer-dev-eng] [PATCH] improve quality of OpenGL output

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Sep 12 18:51:55 CEST 2009


On Sat, Sep 12, 2009 at 05:44:25PM +0200, wbrana at gmail.com wrote:
> patch makes OpenGL output to use ARB_precision_hint_nicest
> instead of ARB_precision_hint_fastest to improve image quality

> Index: libvo/gl_common.c
> ===================================================================
> --- libvo/gl_common.c	(revision 29672)
> +++ libvo/gl_common.c	(working copy)
> @@ -1186,7 +1186,7 @@
>    int rect = params->target == GL_TEXTURE_RECTANGLE;
>    static const char prog_hdr[] =
>      "!!ARBfp1.0\n"
> -    "OPTION ARB_precision_hint_fastest;"
> +    "OPTION ARB_precision_hint_nicest;"
>      // all scaler variables must go here so they aren't defined
>      // multiple times when the same scaler is used more than once
>      "TEMP coord, coord2, cdelta, parmx, parmy, a, b, yuv;";

When does it make any difference? Even the worst precision most GPUs
have to offer should be sufficient for almost all calculations.



More information about the MPlayer-dev-eng mailing list