From 241d5ebc4612041e2731b55b8831d6e7a290cba8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 24 Jul 2017 23:22:30 +0200 Subject: vo_opengl: adjust the rules for linearization Two changes, compounded into one since they affect the same logic: 1. Never use linearization for HDR downscaling 2. Always use linearization for interpolation Instead of fixing p->use_linear at the beginning of pass_render_frame, we flip it on "dynamically" as needed. I plan on killing this p->use_linear frame (along with other per-pass metadata) and moving them into their own struct for tracking the "current" state of the video, but that's a separate/upcoming refactor. As a small bonus, reduce some code duplication in the interpolation logic. Fixes #4631 --- DOCS/man/options.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index d174dc4c5a..bf72d90fc0 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4110,7 +4110,8 @@ The following video options are currently all specific to ``--vo=opengl`` and ``--linear-scaling`` Scale in linear light. It should only be used with a - ``--opengl-fbo-format`` that has at least 16 bit precision. + ``--opengl-fbo-format`` that has at least 16 bit precision. This option + has no effect on HDR content. ``--correct-downscaling`` When using convolution based filters, extend the filter size when @@ -4133,7 +4134,8 @@ The following video options are currently all specific to ``--vo=opengl`` and the ``--tscale`` setting. Note that this relies on vsync to work, see ``--opengl-swapinterval`` for - more information. + more information. It should also only be used with an ``--opengl-fbo-format`` + that has at least 16 bit precision. ``--interpolation-threshold=<0..1,-1>`` Threshold below which frame ratio interpolation gets disabled (default: -- cgit v1.2.3