diff --git a/DOCS/interface-changes/add-linearlight-tone-mapping b/DOCS/interface-changes/add-linearlight-tone-mapping new file mode 100644 index 0000000000000..45d918932b572 --- /dev/null +++ b/DOCS/interface-changes/add-linearlight-tone-mapping @@ -0,0 +1 @@ +expose tone-mapping=linearlight diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 09b9075e8f98f..6efbfc2e96efa 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -7682,6 +7682,9 @@ them. linear Linearly stretches the entire reference gamut to (a linear multiple of) the display. + linearlight + Like linear, but in linear light instead of perceptually linear. + (``--vo=gpu-next`` only) spline Perceptually linear single-pivot polynomial. (``--vo=gpu-next`` only) bt.2446a diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 656c11c29f275..a963f5dea6de2 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -462,6 +462,7 @@ const struct m_sub_options gl_video_conf = { {"hable", TONE_MAPPING_HABLE}, {"gamma", TONE_MAPPING_GAMMA}, {"linear", TONE_MAPPING_LINEAR}, + {"linearlight", TONE_MAPPING_LINEARLIGHT}, {"spline", TONE_MAPPING_SPLINE}, {"bt.2390", TONE_MAPPING_BT_2390}, {"bt.2446a", TONE_MAPPING_BT_2446A}, diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h index a5b03adfbf7bc..c2e656efbf911 100644 --- a/video/out/gpu/video.h +++ b/video/out/gpu/video.h @@ -99,6 +99,7 @@ enum tone_mapping { TONE_MAPPING_BT_2446A, TONE_MAPPING_ST2094_40, TONE_MAPPING_ST2094_10, + TONE_MAPPING_LINEARLIGHT, }; enum gamut_mode { diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index bf4f80b7ee3f2..aedb2a3fcf18c 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -2790,6 +2790,7 @@ static void update_render_options(struct vo *vo) [TONE_MAPPING_BT_2446A] = &pl_tone_map_bt2446a, [TONE_MAPPING_ST2094_40] = &pl_tone_map_st2094_40, [TONE_MAPPING_ST2094_10] = &pl_tone_map_st2094_10, + [TONE_MAPPING_LINEARLIGHT] = &pl_tone_map_linear_light, }; const struct pl_gamut_map_function * const gamut_modes[] = {