video: Allow using bt2020 by name in colorimetry

As the lookup stops at the first element in the array with a NULL
name, bt2020 could not be used by name. Moving up this entry
fixes the issue.
This commit is contained in:
Nicolas Dufresne 2015-06-08 13:01:43 -04:00
parent fc01b3f13f
commit cb49acf158

View file

@ -53,9 +53,9 @@ static const ColorimetryInfo colorimetry[] = {
MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709),
MAKE_COLORIMETRY (SMPTE240M, _16_235, SMPTE240M, SMPTE240M, SMPTE240M),
MAKE_COLORIMETRY (SRGB, _0_255, RGB, SRGB, BT709),
MAKE_COLORIMETRY (BT2020, _16_235, BT2020, BT2020_12, BT2020),
MAKE_COLORIMETRY (NONAME, _0_255, BT601, UNKNOWN, UNKNOWN),
MAKE_COLORIMETRY (NONAME, _UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN),
MAKE_COLORIMETRY (BT2020, _16_235, BT2020, BT2020_12, BT2020),
};
static const ColorimetryInfo *