/* *INDENT-ON* */
};
+/* Tier string map */
+static const struct map gst_vaapi_h265_tier_map[] = {
+/* *INDENT-OFF* */
+ { GST_VAAPI_TIER_H265_MAIN, "main" },
+ { GST_VAAPI_TIER_H265_HIGH, "high"},
+ { GST_VAAPI_TIER_H265_UNKNOWN, "unknown"}
+/* *INDENT-ON* */
+};
+
/* Level string map */
static const struct map gst_vaapi_h265_level_map[] = {
/* *INDENT-OFF* */
}
return chroma_format_idc;
}
+
+/** Returns GstVaapiTierH265 from a string representation */
+GstVaapiTierH265
+gst_vaapi_utils_h265_get_tier_from_string (const gchar * str)
+{
+ const struct map *const m = map_lookup_name (gst_vaapi_h265_tier_map, str);
+
+ return m ? (GstVaapiTierH265) m->value : GST_VAAPI_TIER_H265_UNKNOWN;
+}
+
+/** Returns a string representation for the supplied H.265 tier */
+const gchar *
+gst_vaapi_utils_h265_get_tier_string (GstVaapiTierH265 tier)
+{
+ const struct map *const m =
+ map_lookup_value (gst_vaapi_h265_tier_map, tier);
+
+ return m ? m->name : NULL;
+}
GST_VAAPI_LEVEL_H265_L6_2,
} GstVaapiLevelH265;
+/**
+ * GstVaapiTierH265:
+ * GST_VAAPI_TIER_H265_MAIN: H265 Tier 0
+ * GST_VAAPI_TIER_H265_HIGH: H265 Tier 1
+ * GST_VAAPI_TIER_H265_UNKNOWN: Unknown Tier
+ *
+ * The set of all Tier for #GstVaapiTierH265.
+ */
+typedef enum {
+ GST_VAAPI_TIER_H265_MAIN,
+ GST_VAAPI_TIER_H265_HIGH,
+ GST_VAAPI_TIER_H265_UNKNOWN = -1
+} GstVaapiTierH265;
+
/* Returns a relative score for the supplied GstVaapiProfile */
guint
gst_vaapi_utils_h265_get_profile_score (GstVaapiProfile profile);
const gchar *
gst_vaapi_utils_h265_get_level_string (GstVaapiLevelH265 level);
+/* Returns GstVaapiTierH265 from a string representation */
+GstVaapiTierH265
+gst_vaapi_utils_h265_get_tier_from_string (const gchar * str);
+
+/* Returns a string representation for the supplied H.265 Tier */
+const gchar *
+gst_vaapi_utils_h265_get_tier_string (GstVaapiTierH265 tier);
+
G_END_DECLS
#endif /* GST_VAAPI_UTILS_H265_H */