mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
video-color: make sRGB colorimetry the default for RGB
This commit is contained in:
parent
63012a07c5
commit
c98bc6fdc6
3 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,7 @@ static const ColorimetryInfo colorimetry[] = {
|
|||
MAKE_COLORIMETRY (BT601, _16_235, BT601, BT709, BT470M),
|
||||
MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709),
|
||||
MAKE_COLORIMETRY (SMPTE240M, _16_235, SMPTE240M, SMPTE240M, SMPTE240M),
|
||||
MAKE_COLORIMETRY (NONAME, _0_255, RGB, UNKNOWN, UNKNOWN),
|
||||
MAKE_COLORIMETRY (SRGB, _0_255, RGB, SRGB, BT709),
|
||||
MAKE_COLORIMETRY (NONAME, _0_255, BT601, UNKNOWN, UNKNOWN),
|
||||
MAKE_COLORIMETRY (NONAME, _UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN),
|
||||
};
|
||||
|
|
|
@ -149,6 +149,7 @@ typedef struct {
|
|||
#define GST_VIDEO_COLORIMETRY_BT601 "bt601"
|
||||
#define GST_VIDEO_COLORIMETRY_BT709 "bt709"
|
||||
#define GST_VIDEO_COLORIMETRY_SMPTE240M "smpte240m"
|
||||
#define GST_VIDEO_COLORIMETRY_SRGB "sRGB"
|
||||
|
||||
gboolean gst_video_colorimetry_matches (GstVideoColorimetry *cinfo, const gchar *color);
|
||||
gboolean gst_video_colorimetry_from_string (GstVideoColorimetry *cinfo, const gchar *color);
|
||||
|
|
|
@ -67,7 +67,7 @@ gst_video_info_init (GstVideoInfo * info)
|
|||
static const GstVideoColorimetry default_color[] = {
|
||||
MAKE_COLORIMETRY (_16_235, BT601, BT709, BT470M),
|
||||
MAKE_COLORIMETRY (_16_235, BT709, BT709, BT709),
|
||||
MAKE_COLORIMETRY (_0_255, RGB, UNKNOWN, UNKNOWN),
|
||||
MAKE_COLORIMETRY (_0_255, RGB, SRGB, BT709),
|
||||
MAKE_COLORIMETRY (_0_255, BT601, UNKNOWN, UNKNOWN),
|
||||
MAKE_COLORIMETRY (_UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue