<SECTION>
<FILE>videoformat</FILE>
<TITLE>GstVideoFormat</TITLE>
+gst_vaapi_video_format_to_string
gst_vaapi_video_format_from_caps
gst_vaapi_video_format_from_structure
gst_vaapi_video_format_from_va_format
g_return_val_if_fail(width > 0, NULL);
g_return_val_if_fail(height > 0, NULL);
- GST_DEBUG("format %s, size %ux%u", gst_video_format_to_string(format),
+ GST_DEBUG("format %s, size %ux%u", gst_vaapi_video_format_to_string(format),
width, height);
image = gst_vaapi_object_new(gst_vaapi_image_class(), display);
image->format = format;
image->is_linear = TRUE;
GST_DEBUG("linearized image to %s format",
- gst_video_format_to_string(format));
+ gst_vaapi_video_format_to_string(format));
}
}
}
/* ERRORS */
error_unsupported_format:
- GST_ERROR("unsupported format %u", gst_video_format_to_string(format));
+ GST_ERROR("unsupported format %u", gst_vaapi_video_format_to_string(format));
return FALSE;
#else
return FALSE;
GstVaapiSurface *surface;
GST_DEBUG("size %ux%u, format %s", width, height,
- gst_video_format_to_string(format));
+ gst_vaapi_video_format_to_string(format));
surface = gst_vaapi_object_new(gst_vaapi_surface_class(), display);
if (!surface)
}
/**
+ * gst_vaapi_video_format_to_string:
+ * @format: a #GstVideoFormat
+ *
+ * Returns the string representation of the @format argument.
+ *
+ * Return value: string representation of @format, or %NULL if unknown
+ * or unsupported.
+ */
+const gchar *
+gst_vaapi_video_format_to_string(GstVideoFormat format)
+{
+ return gst_video_format_to_string(format);
+}
+
+/**
* gst_vaapi_video_format_is_rgb:
* @format: a #GstVideoFormat
*
G_BEGIN_DECLS
+const char *
+gst_vaapi_video_format_to_string(GstVideoFormat format);
+
gboolean
gst_vaapi_video_format_is_rgb(GstVideoFormat format);