summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2019-01-04 16:46:38 +0100
committerJan Ekström <jeebjp@gmail.com>2019-02-18 01:54:06 +0200
commit3f1bc25d4de6150b0acff7e92d3e3084a7d989f0 (patch)
tree71d9e56cebef3fa8553795847a3c47bba54be1bb /video/out/gpu/video.h
parentb4b719e33748970a9bf98a82a017d8f149ecb557 (diff)
downloadmpv-3f1bc25d4de6150b0acff7e92d3e3084a7d989f0.tar.bz2
mpv-3f1bc25d4de6150b0acff7e92d3e3084a7d989f0.tar.xz
vo_gpu: use dB units for scene change detection
Rather than the linear cd/m^2 units, these (relative) logarithmic units lend themselves much better to actually detecting scene changes, especially since the scene averaging was changed to also work logarithmically.
Diffstat (limited to 'video/out/gpu/video.h')
-rw-r--r--video/out/gpu/video.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h
index 0bd5c57e8f..1b0994ac78 100644
--- a/video/out/gpu/video.h
+++ b/video/out/gpu/video.h
@@ -101,8 +101,8 @@ struct gl_tone_map_opts {
float max_boost;
int compute_peak;
float decay_rate;
- int scene_threshold_low;
- int scene_threshold_high;
+ float scene_threshold_low;
+ float scene_threshold_high;
float desat;
float desat_exp;
int gamut_warning; // bool