@@ -7354,6 +7354,36 @@ them.
73547354 transfer function is SDR. This way you can control SDR output separately
73557355 from HDR output.
73567356
7357+ ``--sdr-adjust-gamma=<auto|yes|no> ``
7358+ SDR transfer functions are often ambiguous or mismatched. Even if files are
7359+ tagged with a specific function (e.g. ``bt.709 ``), the actual content may
7360+ not match. For example, most screen capture software tags its output as
7361+ ``bt.709 ``, but the content is usually a direct sRGB capture.
7362+
7363+ On the target side, "sRGB" is also ambiguous, some displays are factory
7364+ calibrated to a pure power 2.2 gamma, while others may use the sRGB
7365+ piecewise curve. Both of which are typically configured as "sRGB" in the
7366+ swapchain configuration. Similar inconsistencies exist across compositor
7367+ implementations of color management, as different platforms handle this in
7368+ different ways. See also ``--treat-srgb-as-power22 ``.
7369+ Additionally, ``bt.1886 `` requires display contrast ratio to be known for
7370+ correct rendering, which is often unavailable. Use``--target-contrast`` to
7371+ specify it.
7372+
7373+ This option controls whether SDR content should have its gamma adjusted.
7374+ It only applies to the "sRGB" swapchain target configuration, since that is
7375+ the most common and ambiguous case. If set to ``no ``, content tagged as
7376+ ``sRGB ``, ``gamma2.2 `` or ``bt.1886 `` will be rendered as-is. If set to
7377+ ``yes ``, it will be converted based on the available metadata.
7378+
7379+ ``auto `` (default) behaves like ``no ``, except when ``--target-trc `` is
7380+ explicitly set, in which case it behaves like ``yes ``.
7381+
7382+ Generally it's recommended to enable this option, if you can ensure that
7383+ both source and target metadata is correct.
7384+
7385+ (Only for ``--vo=gpu-next ``)
7386+
73577387``--treat-srgb-as-power22=<no|input|output|both|auto> ``
73587388 When enabled, sRGB is (de)linearized using a pure power 2.2 curve instead of
73597389 the standard sRGB piecewise transfer function.
0 commit comments