mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
fc01b3f13f
commit
cb49acf158
1 changed files with 1 additions and 1 deletions
|
@ -53,9 +53,9 @@ static const ColorimetryInfo colorimetry[] = {
|
||||||
MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709),
|
MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709),
|
||||||
MAKE_COLORIMETRY (SMPTE240M, _16_235, SMPTE240M, SMPTE240M, SMPTE240M),
|
MAKE_COLORIMETRY (SMPTE240M, _16_235, SMPTE240M, SMPTE240M, SMPTE240M),
|
||||||
MAKE_COLORIMETRY (SRGB, _0_255, RGB, SRGB, BT709),
|
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, _0_255, BT601, UNKNOWN, UNKNOWN),
|
||||||
MAKE_COLORIMETRY (NONAME, _UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN),
|
MAKE_COLORIMETRY (NONAME, _UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN),
|
||||||
MAKE_COLORIMETRY (BT2020, _16_235, BT2020, BT2020_12, BT2020),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ColorimetryInfo *
|
static const ColorimetryInfo *
|
||||||
|
|
Loading…
Reference in a new issue