From cb1c0725345d4bf7e0226aceb934f06f40cc0ee1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Sep 2015 22:43:27 +0200 Subject: vo_opengl: remove sharpen scalers, add sharpen sub-option This turns the old scalers (inherited from MPlayer) into a pre- processing step (after color conversion and before scaling). The code for the "sharpen5" scaler is reused for this. The main reason MPlayer implemented this as scalers was perhaps because FBOs were too expensive, and making it a scaler allowed to implement this in 1 pass. But unsharp masking is not really a scaler, and I would guess the result is more like combining bilinear scaling and unsharp masking. --- DOCS/man/vo.rst | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'DOCS/man/vo.rst') diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index e3f0757280..52aedfa494 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -375,10 +375,6 @@ Available video output drivers are: Scale parameter (``t``). Increasing this makes the result blurrier. Defaults to 1. - sharpen3, sharpen5 - Sharpening strength. Increasing this makes the image sharper but - adds more ringing and aliasing. Defaults to 0.5. - oversample Minimum distance to an edge before interpolation is used. Setting this to 0 will always interpolate edges, whereas setting it to 0.5 @@ -408,8 +404,8 @@ Available video output drivers are: between 0.0 and 1.0. The default value of 0.0 disables antiringing entirely. - Note that this doesn't affect the special filters ``bilinear``, - ``bicubic_fast`` or ``sharpen``. + Note that this doesn't affect the special filters ``bilinear`` and + ``bicubic_fast``. ``scale-window=`` (Advanced users only) Choose a custom windowing function for the kernel. @@ -645,6 +641,16 @@ Available video output drivers are: The slope of the sigmoid curve used for ``sigmoid-upscaling``, must be a float between 1.0 and 20.0. Defaults to 6.5 if not specified. + ``sharpen=`` + If set to a value other than 0, enable an unsharp masking filter. + Positive values will sharpen the image (but add more ringing and + aliasing). Negative values will blur the image. If your GPU is powerful + enough, consider alternatives like the ``ewa_lanczossharp`` scale + filter, or the ``scale-blur`` sub-option. + + (This feature is the replacement for the old ``sharpen3`` and + ``sharpen5`` scalers.) + ``glfinish`` Call ``glFinish()`` before and after swapping buffers (default: disabled). Slower, but might help getting better results when doing framedropping. -- cgit v1.2.3