diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-02-27 04:56:09 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-03-01 18:11:43 +0000 |
commit | 9189e8982ad636edda558fd90599bd415d3b8b4b (patch) | |
tree | 6ce8d88b5a84da5a53f4b325631d1dffa9bc0fbb | |
parent | 34055919f5c7b0843ea4c938b2f0043958864708 (diff) | |
download | mpv-9189e8982ad636edda558fd90599bd415d3b8b4b.tar.bz2 mpv-9189e8982ad636edda558fd90599bd415d3b8b4b.tar.xz |
vo_gpu: add missing PL_COLOR_TRC_ST428 case in lcms
-rw-r--r-- | video/out/gpu/lcms.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gpu/lcms.c b/video/out/gpu/lcms.c index e8fe1d48c3..c197acf48e 100644 --- a/video/out/gpu/lcms.c +++ b/video/out/gpu/lcms.c @@ -215,6 +215,11 @@ static cmsHPROFILE get_vid_profile(struct gl_lcms *p, cmsContext cms, case PL_COLOR_TRC_GAMMA26: tonecurve[0] = cmsBuildGamma(cms, 2.6); break; case PL_COLOR_TRC_GAMMA28: tonecurve[0] = cmsBuildGamma(cms, 2.8); break; + case PL_COLOR_TRC_ST428: + tonecurve[0] = cmsBuildParametricToneCurve(cms, 2, + (double[3]){2.6, pow(52.37/48.0, 1/2.6), 0.0}); + break; + case PL_COLOR_TRC_SRGB: // Values copied from Little-CMS tonecurve[0] = cmsBuildParametricToneCurve(cms, 4, |