From ae1c489b319eab1fe200200c39f58246de75a6f3 Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Tue, 12 Mar 2019 02:24:51 +0000 Subject: vo_gpu: allow user shader to fix texture offset This commit essentially makes user shader able to fix offset (produced by other prescaler, for example) like builtin `--scale`. --- DOCS/man/options.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 8975625704..0ef7aae84a 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4572,13 +4572,19 @@ The following video options are currently all specific to ``--vo=gpu`` and hook point can still cause that hook point to be saved, which has some minor overhead) - OFFSET + OFFSET Indicates a pixel shift (offset) introduced by this pass. These pixel offsets will be accumulated and corrected during the next scaling pass (``cscale`` or ``scale``). The default values are 0 0 which correspond to no shift. Note that offsets are ignored when not overwriting the hooked texture. + A special value of ``ALIGN`` will attempt to fix existing offset of + HOOKED by align it with reference. It requires HOOKED to be resizable + (see below). It works transparently with fragment shader. For compute + shader, the predefined ``texmap`` macro is required to handle coordinate + mapping. + COMPONENTS Specifies how many components of this pass's output are relevant and should be stored in the texture, up to 4 (rgba). By default, this value -- cgit v1.2.3