#include <gst/base/gstbytereader.h>
#include "video-anc.h"
-#if !GLIB_CHECK_VERSION(2, 47, 4)
-#ifdef __GNUC__
-#define G_GNUC_CHECK_VERSION(major, minor) \
- ((__GNUC__ > (major)) || \
- ((__GNUC__ == (major)) && \
- (__GNUC_MINOR__ >= (minor))))
-#else
-#define G_GNUC_CHECK_VERSION(major, minor) 0
-#endif
-#endif
-
/**
* SECTION:gstvideoanc
* @title: GstVideo Ancillary
(m)->max_display_mastering_luminance, \
(m)->min_display_mastering_luminance
-/* g_ascii_string_to_unsigned is available since 2.54. Get rid of this wrapper
- * when we bump the version in 1.18 */
-#if !GLIB_CHECK_VERSION(2,54,0)
-#define g_ascii_string_to_unsigned video_hdr_ascii_string_to_unsigned
-static gboolean
-video_hdr_ascii_string_to_unsigned (const gchar * str, guint base, guint64 min,
- guint64 max, guint64 * out_num, GError ** error)
-{
- gchar *endptr = NULL;
- *out_num = g_ascii_strtoull (str, &endptr, base);
- if (errno)
- return FALSE;
- if (endptr == str)
- return FALSE;
- return TRUE;
-}
-#endif
-
/**
* gst_video_mastering_display_info_init:
* @minfo: a #GstVideoMasteringDisplayInfo