summaryrefslogtreecommitdiffstats
path: root/video/out/vo_gpu_next.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-08-04 16:18:16 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2023-08-04 16:58:44 +0200
commit45e95311b83560d6e716f6cbc9fc8506f828c4cc (patch)
tree182913557f7267f2bfbdfb0e991d456d1e4df074 /video/out/vo_gpu_next.c
parent14504e0559f8de95d16a123f1a4b5218425ba36b (diff)
downloadmpv-45e95311b83560d6e716f6cbc9fc8506f828c4cc.tar.bz2
mpv-45e95311b83560d6e716f6cbc9fc8506f828c4cc.tar.xz
vo_gpu_next: add --hdr-peak-percentile
Diffstat (limited to 'video/out/vo_gpu_next.c')
-rw-r--r--video/out/vo_gpu_next.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 30034f98b9..3fe068c279 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -1883,6 +1883,7 @@ static void update_render_options(struct vo *vo)
p->peak_detect.smoothing_period = opts->tone_map.decay_rate;
p->peak_detect.scene_threshold_low = opts->tone_map.scene_threshold_low;
p->peak_detect.scene_threshold_high = opts->tone_map.scene_threshold_high;
+ p->peak_detect.percentile = opts->tone_map.peak_percentile;
const struct pl_tone_map_function * const tone_map_funs[] = {
[TONE_MAPPING_AUTO] = &pl_tone_map_auto,