csputils: provide string descriptions of chroma locations

This commit is contained in:
wm4 2014-02-15 16:28:39 +01:00
parent 317a02bdd4
commit ccfbe43455
2 changed files with 9 additions and 0 deletions

View File

@ -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) {

View File

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