diff options
author | nand <git@nand.wakku.to> | 2014-02-10 17:28:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-10 22:11:13 +0100 |
commit | 7d9fff9c6beab897cc47218c74afb48b1d45ed11 (patch) | |
tree | 80dd2e6844d693d2a9802cb74fc310786fb192a5 /video | |
parent | 1fcdf2d849e22b52303a0add79444d4a4a2510fc (diff) | |
download | mpv-7d9fff9c6beab897cc47218c74afb48b1d45ed11.tar.bz2 mpv-7d9fff9c6beab897cc47218c74afb48b1d45ed11.tar.xz |
vo_opengl: fix typo in gamma function's parameter
The correct value is 0.081, not 0.18. The scale factor also needed
slight adjustment due to the order of operations.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_lcms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c index c1d79b5989..a6f30e0126 100644 --- a/video/out/gl_lcms.c +++ b/video/out/gl_lcms.c @@ -168,9 +168,9 @@ struct lut3d *mp_load_icc(struct mp_icc_opts *opts, struct mp_log *log, V = 1.099 * L^0.45 - 0.099 for L >= 0.018 V = 4.500 * L for L < 0.018 - The 0.18 parameter comes from inserting 0.018 into the function */ + The 0.081 parameter comes from inserting 0.018 into the function */ cmsToneCurve *tonecurve = cmsBuildParametricToneCurve(NULL, 4, - (cmsFloat64Number[5]){1/0.45, 1/1.099, 0.099, 1/4.5, 0.18}); + (cmsFloat64Number[5]){1/0.45, 1/1.099, 0.099/1.099, 1/4.5, 0.081}); cmsHPROFILE vid_profile = cmsCreateRGBProfile(&d65, &bt709prim, (cmsToneCurve*[3]){tonecurve, tonecurve, tonecurve}); cmsFreeToneCurve(tonecurve); |