Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DOCS/interface-changes/add-linearlight-tone-mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
expose tone-mapping=linearlight
3 changes: 3 additions & 0 deletions DOCS/man/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions video/out/gpu/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions video/out/gpu/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions video/out/vo_gpu_next.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
Loading