video-hdr: Add API to check content light level equality
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/969>
This commit is contained in:
parent
df9064fdc6
commit
11e6f8da92
@ -380,6 +380,29 @@ gst_video_content_light_level_to_string (const GstVideoContentLightLevel *
|
|||||||
linfo->max_content_light_level, linfo->max_frame_average_light_level);
|
linfo->max_content_light_level, linfo->max_frame_average_light_level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_video_content_light_level_is_equal:
|
||||||
|
* @linfo: a #GstVideoContentLightLevel
|
||||||
|
* @other: a #GstVideoContentLightLevel
|
||||||
|
*
|
||||||
|
* Checks equality between @linfo and @other.
|
||||||
|
*
|
||||||
|
* Returns: %TRUE if @linfo and @other are equal.
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
|
gboolean
|
||||||
|
gst_video_content_light_level_is_equal (const GstVideoContentLightLevel * linfo,
|
||||||
|
const GstVideoContentLightLevel * other)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (linfo != NULL, FALSE);
|
||||||
|
g_return_val_if_fail (other != NULL, FALSE);
|
||||||
|
|
||||||
|
return (linfo->max_content_light_level == other->max_content_light_level &&
|
||||||
|
linfo->max_frame_average_light_level ==
|
||||||
|
other->max_frame_average_light_level);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_video_content_light_level_from_caps:
|
* gst_video_content_light_level_from_caps:
|
||||||
* @linfo: a #GstVideoContentLightLevel
|
* @linfo: a #GstVideoContentLightLevel
|
||||||
|
@ -255,6 +255,10 @@ gboolean gst_video_content_light_level_from_string (GstVideoContentLightLevel
|
|||||||
GST_VIDEO_API
|
GST_VIDEO_API
|
||||||
gchar * gst_video_content_light_level_to_string (const GstVideoContentLightLevel * linfo);
|
gchar * gst_video_content_light_level_to_string (const GstVideoContentLightLevel * linfo);
|
||||||
|
|
||||||
|
GST_VIDEO_API
|
||||||
|
gboolean gst_video_content_light_level_is_equal (const GstVideoContentLightLevel * linfo,
|
||||||
|
const GstVideoContentLightLevel * other);
|
||||||
|
|
||||||
GST_VIDEO_API
|
GST_VIDEO_API
|
||||||
gboolean gst_video_content_light_level_from_caps (GstVideoContentLightLevel * linfo,
|
gboolean gst_video_content_light_level_from_caps (GstVideoContentLightLevel * linfo,
|
||||||
const GstCaps * caps);
|
const GstCaps * caps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user