vo_gpu: add missing PL_COLOR_TRC_ST428 case in lcms

This commit is contained in:
Kacper Michajłow 2024-02-27 04:56:09 +01:00 committed by Dudemanguy
parent 34055919f5
commit 9189e8982a
1 changed files with 5 additions and 0 deletions

View File

@ -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,