Skip to content

Commit 04055e5

Browse files
committed
video/out/gpu/video: change treat-srgb-as-power22 default to auto
We want to have symmetry on the input and output. Also outputting sRGB encoded image to gamma 2.2 display is clipping blacks. 2.2 displays are more common and are reference sRGB display, which is what we should target.
1 parent 25aa402 commit 04055e5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

DOCS/man/options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7392,7 +7392,7 @@ them.
73927392
to ensure a consistent appearance. Depending on the platform, the sRGB EOTF
73937393
used by the system compositor may differ.
73947394

7395-
The default is ``input``. (Only for ``--vo=gpu-next``)
7395+
The default is ``auto``. (Only for ``--vo=gpu-next``)
73967396

73977397
``--tone-mapping=<value>``
73987398
Specifies the algorithm used for tone-mapping images onto the target

video/out/gpu/video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static const struct gl_video_opts gl_video_opts_def = {
409409
.early_flush = -1,
410410
.shader_cache = true,
411411
.hwdec_interop = "auto",
412-
.treat_srgb_as_power22 = 1, // input
412+
.treat_srgb_as_power22 = 1|2|4, // auto
413413
};
414414

415415
static OPT_STRING_VALIDATE_FUNC(validate_error_diffusion_opt);

0 commit comments

Comments
 (0)