mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
csputils: implement sony s-gamut
The S-Log "matching" colorspace
This commit is contained in:
parent
c3f32f3a6e
commit
da7ae75e26
@ -4597,6 +4597,8 @@ The following video options are currently all specific to ``--vo=opengl`` and
|
|||||||
DCI-P3 (Digital Cinema Colorspace), SMPTE RP431-2
|
DCI-P3 (Digital Cinema Colorspace), SMPTE RP431-2
|
||||||
v-gamut
|
v-gamut
|
||||||
Panasonic V-Gamut (VARICAM) primaries
|
Panasonic V-Gamut (VARICAM) primaries
|
||||||
|
s-gamut
|
||||||
|
Sony S-Gamut (S-Log) primaries
|
||||||
|
|
||||||
``--target-trc=<value>``
|
``--target-trc=<value>``
|
||||||
Specifies the transfer characteristics (gamma) of the display. Video colors
|
Specifies the transfer characteristics (gamma) of the display. Video colors
|
||||||
|
@ -66,6 +66,7 @@ const struct m_opt_choice_alternatives mp_csp_prim_names[] = {
|
|||||||
{"cie1931", MP_CSP_PRIM_CIE_1931},
|
{"cie1931", MP_CSP_PRIM_CIE_1931},
|
||||||
{"dci-p3", MP_CSP_PRIM_DCI_P3},
|
{"dci-p3", MP_CSP_PRIM_DCI_P3},
|
||||||
{"v-gamut", MP_CSP_PRIM_V_GAMUT},
|
{"v-gamut", MP_CSP_PRIM_V_GAMUT},
|
||||||
|
{"s-gamut", MP_CSP_PRIM_S_GAMUT},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -453,6 +454,14 @@ struct mp_csp_primaries mp_get_csp_primaries(enum mp_csp_prim spc)
|
|||||||
.blue = {0.100, -0.03},
|
.blue = {0.100, -0.03},
|
||||||
.white = d65
|
.white = d65
|
||||||
};
|
};
|
||||||
|
// From Sony S-Log reference manual
|
||||||
|
case MP_CSP_PRIM_S_GAMUT:
|
||||||
|
return (struct mp_csp_primaries) {
|
||||||
|
.red = {0.730, 0.280},
|
||||||
|
.green = {0.140, 0.855},
|
||||||
|
.blue = {0.100, -0.05},
|
||||||
|
.white = d65
|
||||||
|
};
|
||||||
default:
|
default:
|
||||||
return (struct mp_csp_primaries) {{0}};
|
return (struct mp_csp_primaries) {{0}};
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ enum mp_csp_prim {
|
|||||||
MP_CSP_PRIM_CIE_1931,
|
MP_CSP_PRIM_CIE_1931,
|
||||||
MP_CSP_PRIM_DCI_P3,
|
MP_CSP_PRIM_DCI_P3,
|
||||||
MP_CSP_PRIM_V_GAMUT,
|
MP_CSP_PRIM_V_GAMUT,
|
||||||
|
MP_CSP_PRIM_S_GAMUT,
|
||||||
MP_CSP_PRIM_COUNT
|
MP_CSP_PRIM_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user