mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
video-color: Mark some function arguments as const
https://bugzilla.gnome.org/show_bug.cgi?id=771376
This commit is contained in:
parent
0e82516f09
commit
a7b75cb1cc
2 changed files with 6 additions and 5 deletions
|
@ -144,7 +144,7 @@ gst_video_colorimetry_from_string (GstVideoColorimetry * cinfo,
|
||||||
* Returns: a string representation of @cinfo.
|
* Returns: a string representation of @cinfo.
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
gst_video_colorimetry_to_string (GstVideoColorimetry * cinfo)
|
gst_video_colorimetry_to_string (const GstVideoColorimetry * cinfo)
|
||||||
{
|
{
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
|
@ -172,7 +172,8 @@ gst_video_colorimetry_to_string (GstVideoColorimetry * cinfo)
|
||||||
* information in @info.
|
* information in @info.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_video_colorimetry_matches (GstVideoColorimetry * cinfo, const gchar * color)
|
gst_video_colorimetry_matches (const GstVideoColorimetry * cinfo,
|
||||||
|
const gchar * color)
|
||||||
{
|
{
|
||||||
const ColorimetryInfo *ci;
|
const ColorimetryInfo *ci;
|
||||||
|
|
||||||
|
|
|
@ -193,10 +193,10 @@ typedef struct {
|
||||||
#define GST_VIDEO_COLORIMETRY_SRGB "sRGB"
|
#define GST_VIDEO_COLORIMETRY_SRGB "sRGB"
|
||||||
#define GST_VIDEO_COLORIMETRY_BT2020 "bt2020"
|
#define GST_VIDEO_COLORIMETRY_BT2020 "bt2020"
|
||||||
|
|
||||||
gboolean gst_video_colorimetry_matches (GstVideoColorimetry *cinfo, const gchar *color);
|
gboolean gst_video_colorimetry_matches (const GstVideoColorimetry *cinfo, const gchar *color);
|
||||||
gboolean gst_video_colorimetry_from_string (GstVideoColorimetry *cinfo, const gchar *color);
|
gboolean gst_video_colorimetry_from_string (GstVideoColorimetry *cinfo, const gchar *color);
|
||||||
gchar * gst_video_colorimetry_to_string (GstVideoColorimetry *cinfo);
|
gchar * gst_video_colorimetry_to_string (const GstVideoColorimetry *cinfo);
|
||||||
gboolean gst_video_colorimetry_is_equal (const GstVideoColorimetry *cinfo, const GstVideoColorimetry *other);
|
gboolean gst_video_colorimetry_is_equal (const GstVideoColorimetry *cinfo, const GstVideoColorimetry *other);
|
||||||
|
|
||||||
/* compute offset and scale */
|
/* compute offset and scale */
|
||||||
void gst_video_color_range_offsets (GstVideoColorRange range,
|
void gst_video_color_range_offsets (GstVideoColorRange range,
|
||||||
|
|
Loading…
Reference in a new issue