0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

vo_opengl: make csp options consistent with vf_format

This commit is contained in:
Niklas Haas 2015-03-31 07:31:35 +02:00
parent bfbe1342f7
commit 51bb5e8194
2 changed files with 11 additions and 29 deletions

View File

@ -606,15 +606,15 @@ Available video output drivers are:
auto auto
Disable any adaptation (default) Disable any adaptation (default)
bt470m bt.470m
ITU-R BT.470 M ITU-R BT.470 M
bt601-525 bt.601-525
ITU-R BT.601 (525-line SD systems, eg. NTSC), SMPTE 170M/240M ITU-R BT.601 (525-line SD systems, eg. NTSC), SMPTE 170M/240M
bt601-625 bt.601-625
ITU-R BT.601 (625-line SD systems, eg. PAL/SECAM), ITU-R BT.470 B/G ITU-R BT.601 (625-line SD systems, eg. PAL/SECAM), ITU-R BT.470 B/G
bt709 bt.709
ITU-R BT.709 (HD), IEC 61966-2-4 (sRGB), SMPTE RP177 Annex B ITU-R BT.709 (HD), IEC 61966-2-4 (sRGB), SMPTE RP177 Annex B
bt2020 bt.2020
ITU-R BT.2020 (UHD) ITU-R BT.2020 (UHD)
apple apple
Apple RGB Apple RGB
@ -631,17 +631,17 @@ Available video output drivers are:
auto auto
Disable any adaptation (default) Disable any adaptation (default)
bt1886 bt.1886
ITU-R BT.1886 curve, without the brightness drop (approx. 1.961) ITU-R BT.1886 curve, without the brightness drop (approx. 1.961)
srgb srgb
IEC 61966-2-4 (sRGB) IEC 61966-2-4 (sRGB)
linear linear
Linear light output Linear light output
gamma18 gamma1.8
Pure power curve (gamma 1.8), also used for Apple RGB Pure power curve (gamma 1.8), also used for Apple RGB
gamma22 gamma2.2
Pure power curve (gamma 2.2) Pure power curve (gamma 2.2)
gamma28 gamma2.8
Pure power curve (gamma 2.8), also used for BT.470-BG Pure power curve (gamma 2.8), also used for BT.470-BG
prophoto prophoto
ProPhoto RGB (ROMM) ProPhoto RGB (ROMM)

View File

@ -366,26 +366,8 @@ const struct m_sub_options gl_video_conf = {
.opts = (const m_option_t[]) { .opts = (const m_option_t[]) {
OPT_FLOATRANGE("gamma", gamma, 0, 0.1, 2.0), OPT_FLOATRANGE("gamma", gamma, 0, 0.1, 2.0),
OPT_FLAG("gamma-auto", gamma_auto, 0), OPT_FLAG("gamma-auto", gamma_auto, 0),
OPT_CHOICE("target-prim", target_prim, 0, OPT_CHOICE_C("target-prim", target_prim, 0, mp_csp_prim_names),
({"auto", MP_CSP_PRIM_AUTO}, OPT_CHOICE_C("target-trc", target_trc, 0, mp_csp_trc_names),
{"bt601-525", MP_CSP_PRIM_BT_601_525},
{"bt601-625", MP_CSP_PRIM_BT_601_625},
{"bt709", MP_CSP_PRIM_BT_709},
{"bt2020", MP_CSP_PRIM_BT_2020},
{"bt470m", MP_CSP_PRIM_BT_470M},
{"apple", MP_CSP_PRIM_APPLE},
{"adobe", MP_CSP_PRIM_ADOBE},
{"prophoto", MP_CSP_PRIM_PRO_PHOTO},
{"cie1931", MP_CSP_PRIM_CIE_1931})),
OPT_CHOICE("target-trc", target_trc, 0,
({"auto", MP_CSP_TRC_AUTO},
{"bt1886", MP_CSP_TRC_BT_1886},
{"srgb", MP_CSP_TRC_SRGB},
{"linear", MP_CSP_TRC_LINEAR},
{"gamma18", MP_CSP_TRC_GAMMA18},
{"gamma22", MP_CSP_TRC_GAMMA22},
{"gamma28", MP_CSP_TRC_GAMMA28},
{"prophoto", MP_CSP_TRC_PRO_PHOTO})),
OPT_FLAG("npot", npot, 0), OPT_FLAG("npot", npot, 0),
OPT_FLAG("pbo", pbo, 0), OPT_FLAG("pbo", pbo, 0),
OPT_STRING_VALIDATE("scale", scaler[0].kernel.name, 0, validate_scaler_opt), OPT_STRING_VALIDATE("scale", scaler[0].kernel.name, 0, validate_scaler_opt),