From 8854a2bef61090fdcc6b815112ddd966ef07d771 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 3 Jul 2017 11:23:48 +0200 Subject: filter_kernels: add radius cutoff functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows filter functions to be prematurely cut off once their contributions start becoming insignificant. This effectively prevents wasted GPU time sampling from parts of the function that are essentially reduced to zero by the window function, providing anywhere from a 10% to 20% speedup. (5700μs -> 4700μs for me) --- DOCS/man/options.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index a7ec35b3ae..94a153408a 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4004,6 +4004,14 @@ The following video options are currently all specific to ``--vo=opengl`` and fringes of black, mostly around moving edges) in exchange for potentially adding more blur. +``--scale-cutoff=``, ``--cscale-cutoff=``, ``--dscale-cutoff=`` + Cut off the filter kernel prematurely once the value range drops below + this threshold. Doing so allows more aggressive pruning of skippable + coefficients by disregarding parts of the LUT which are effectively zeroed + out by the window function. Only affects polar (EWA) filters. The default + is 0.001 for each, which is perceptually transparent but provides a 10%-20% + speedup, depending on the exact radius and filter kernel chosen. + ``--scale-taper=``, ``--scale-wtaper=``, ``--dscale-taper=``, ``--dscale-wtaper=``, ``--cscale-taper=``, ``--cscale-wtaper=``, ``--tscale-taper=``, ``--tscale-wtaper=`` Kernel/window taper factor. Increasing this flattens the filter function. Value range is 0 to 1. A value of 0 (the default) means no flattening, a -- cgit v1.2.3