diff options
author | wm4 <wm4@nowhere> | 2014-02-15 16:28:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-16 03:51:02 +0100 |
commit | ccfbe434558075c5d5dd9353a8c9dcc1b9954547 (patch) | |
tree | 00c916bd57d15acd950651ae057895439a80ce5e /video | |
parent | 317a02bdd43ee4d650e4faea340c610fdfa82ff5 (diff) | |
download | mpv-ccfbe434558075c5d5dd9353a8c9dcc1b9954547.tar.bz2 mpv-ccfbe434558075c5d5dd9353a8c9dcc1b9954547.tar.xz |
csputils: provide string descriptions of chroma locations
Diffstat (limited to 'video')
-rw-r--r-- | video/csputils.c | 6 | ||||
-rw-r--r-- | video/csputils.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/video/csputils.c b/video/csputils.c index 337838e653..9c1b04c928 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -59,6 +59,12 @@ const char *const mp_csp_equalizer_names[MP_CSP_EQ_COUNT] = { "gamma", }; +const char *const mp_chroma_names[MP_CHROMA_COUNT] = { + "unknown", + "mpeg2/4/h264", + "mpeg1/jpeg", +}; + enum mp_csp avcol_spc_to_mp_csp(int avcolorspace) { switch (avcolorspace) { diff --git a/video/csputils.h b/video/csputils.h index 6ae26124c5..c11c3506a6 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -92,8 +92,11 @@ enum mp_chroma_location { MP_CHROMA_AUTO, MP_CHROMA_LEFT, // mpeg2/4, h264 MP_CHROMA_CENTER, // mpeg1, jpeg + MP_CHROMA_COUNT, }; +extern const char *const mp_chroma_names[MP_CHROMA_COUNT]; + enum mp_csp_equalizer_param { MP_CSP_EQ_BRIGHTNESS, MP_CSP_EQ_CONTRAST, |