mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
csputils: fix outdated comment
This no longer hard-codes BT.709, it converts to whatever primaries are tagged in the same metadata struct. The actual BT.709 defaulting comes from `mp_image_params_guess_csp`.
This commit is contained in:
parent
d9eac493b5
commit
ac906fb288
@ -711,8 +711,10 @@ void mp_get_csp_matrix(struct mp_csp_params *params, struct mp_cmat *m)
|
||||
}
|
||||
case MP_CSP_XYZ: {
|
||||
// The vo should probably not be using a matrix generated by this
|
||||
// function for XYZ sources, but if it does, let's just assume it
|
||||
// wants BT.709 with D65 white point (virtually all other content).
|
||||
// function for XYZ sources, but if it does, let's just convert it to
|
||||
// an equivalent RGB space based on the colorimetry metadata it
|
||||
// provided in mp_csp_params. (At the risk of clipping, if the
|
||||
// chosen primaries are too small to fit the actual data)
|
||||
mp_get_xyz2rgb_coeffs(params, MP_INTENT_RELATIVE_COLORIMETRIC, m);
|
||||
levels_in = -1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user