diff options
author | Bin Jin <bjin@ctrl-d.org> | 2019-03-12 02:24:51 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-06-06 20:01:56 +0200 |
commit | ae1c489b319eab1fe200200c39f58246de75a6f3 (patch) | |
tree | 28a9e74588a36b3163fb81443f62e5fa3db6f786 /DOCS/man | |
parent | 4d001bb30db6786a44658b0625dc31027767a393 (diff) | |
download | mpv-ae1c489b319eab1fe200200c39f58246de75a6f3.tar.bz2 mpv-ae1c489b319eab1fe200200c39f58246de75a6f3.tar.xz |
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`.
Diffstat (limited to 'DOCS/man')
-rw-r--r-- | DOCS/man/options.rst | 8 |
1 files changed, 7 insertions, 1 deletions
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 <ox> <oy> + OFFSET <ox oy | ALIGN> 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 <n> 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 |