mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
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
2 changed files with 27 additions and 0 deletions
|
@ -380,6 +380,29 @@ gst_video_content_light_level_to_string (const GstVideoContentLightLevel *
|
|||
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:
|
||||
* @linfo: a #GstVideoContentLightLevel
|
||||
|
|
|
@ -255,6 +255,10 @@ gboolean gst_video_content_light_level_from_string (GstVideoContentLightLevel
|
|||
GST_VIDEO_API
|
||||
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
|
||||
gboolean gst_video_content_light_level_from_caps (GstVideoContentLightLevel * linfo,
|
||||
const GstCaps * caps);
|
||||
|
|
Loading…
Reference in a new issue