aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/colour.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-09-23 19:14:42 +0200
committerMattias Andrée <maandree@kth.se>2017-09-23 19:14:42 +0200
commit2b646382a5745b65d32e6bc66b9cf41149673c8c (patch)
tree72f2eabe8614bb4ac7ae487ef0ddebff11809aff /src/util/colour.h
parentblind-to-video manpage: transparent videos (diff)
downloadblind-2b646382a5745b65d32e6bc66b9cf41149673c8c.tar.gz
blind-2b646382a5745b65d32e6bc66b9cf41149673c8c.tar.bz2
blind-2b646382a5745b65d32e6bc66b9cf41149673c8c.tar.xz
Fix conversion of Y value
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/util/colour.h')
-rw-r--r--src/util/colour.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/colour.h b/src/util/colour.h
index 7aafeae..5d1a249 100644
--- a/src/util/colour.h
+++ b/src/util/colour.h
@@ -99,20 +99,20 @@ MATRIX_MULTIPLY_FUNCTIONS(srgb_to_ciexyz,
0.950302838552371742508739771438)
MATRIX_MULTIPLY_FUNCTIONS(scaled_yuv_to_ciexyz,
- 0.00001450325106667098632156481796684488472237717360,
+ 0.00001450325106667098632156481796684488472237717360 / 0.8552986953536278,
0.00000345586790639342739093228633329157872822179343,
0.00000400923398630552893485111398685916128670214675,
- 0.00001525902189669641837040624243737596543724066578,
+ 0.00001525902189669641837040624243737596543724066578 / 0.8552986953536278,
-0.00000207722814409390653614547427030512238843584782,
-0.00000263898607692305410302407824019166326934282552,
- 0.00001661446153041708825425643025752719950105529279,
+ 0.00001661446153041708825425643025752719950105529279 / 0.8552986953536278,
0.00002885925752619118069149627137104374696718878113,
-0.00000071781086875769179526501342566979779746816348)
MATRIX_MULTIPLY_FUNCTIONS(ciexyz_to_scaled_yuv,
- 26625.38231027395886485464870929718017578125,
- 40524.0090949436053051613271236419677734375,
- -271.5313105642117079696618020534515380859375,
+ 26625.38231027395886485464870929718017578125 * 0.8552986953536278,
+ 40524.0090949436053051613271236419677734375 * 0.8552986953536278,
+ -271.5313105642117079696618020534515380859375 * 0.8552986953536278,
-11278.3751445417292416095733642578125,
-26409.91773157499847002327442169189453125,
34100.5706543184860493056476116180419921875,