Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1623>
VkResult result;
const char *str;
} vk_result_string_map[] = {
VkResult result;
const char *str;
} vk_result_string_map[] = {
- {VK_ERROR_OUT_OF_HOST_MEMORY, "Out Of host memory"},
+ {VK_ERROR_OUT_OF_HOST_MEMORY, "Out of host memory"},
{VK_ERROR_OUT_OF_DEVICE_MEMORY, "Out of device memory"},
{VK_ERROR_INITIALIZATION_FAILED, "Initialization failed"},
{VK_ERROR_DEVICE_LOST, "Device lost"},
{VK_ERROR_OUT_OF_DEVICE_MEMORY, "Out of device memory"},
{VK_ERROR_INITIALIZATION_FAILED, "Initialization failed"},
{VK_ERROR_DEVICE_LOST, "Device lost"},
{VK_ERROR_FEATURE_NOT_PRESENT, "Feature not present"},
{VK_ERROR_INCOMPATIBLE_DRIVER, "Incompatible driver"},
{VK_ERROR_TOO_MANY_OBJECTS, "Too many objects"},
{VK_ERROR_FEATURE_NOT_PRESENT, "Feature not present"},
{VK_ERROR_INCOMPATIBLE_DRIVER, "Incompatible driver"},
{VK_ERROR_TOO_MANY_OBJECTS, "Too many objects"},
- {VK_ERROR_FORMAT_NOT_SUPPORTED, "format not supported"},
+ {VK_ERROR_FORMAT_NOT_SUPPORTED, "Format not supported"},
{VK_ERROR_SURFACE_LOST_KHR, "Surface lost"},
{VK_ERROR_SURFACE_LOST_KHR, "Surface lost"},
- {VK_ERROR_OUT_OF_DATE_KHR, "out of date"},
+ {VK_ERROR_OUT_OF_DATE_KHR, "Out of date"},
{VK_ERROR_INCOMPATIBLE_DISPLAY_KHR, "Incompatible display"},
{VK_ERROR_NATIVE_WINDOW_IN_USE_KHR, "Native window in use"},
};
{VK_ERROR_INCOMPATIBLE_DISPLAY_KHR, "Incompatible display"},
{VK_ERROR_NATIVE_WINDOW_IN_USE_KHR, "Native window in use"},
};
return g_quark_from_static_string ("gst-vulkan-error");
}
return g_quark_from_static_string ("gst-vulkan-error");
}
-static const char *
-_vk_result_to_string (VkResult result)
+/**
+ * gst_vulkan_result_to_string: (skip)
+ * @result: a VkResult
+ *
+ * Returns: a message that corresponds to @result
+ *
+ * Since: 1.22
+ */
+const char *
+gst_vulkan_result_to_string (VkResult result)
/* we don't have an error to set */
return result;
/* we don't have an error to set */
return result;
- result_str = _vk_result_to_string (result);
+ result_str = gst_vulkan_result_to_string (result);
if (result_str == NULL) {
if (result < 0) {
result_str = "Unknown";
if (result_str == NULL) {
if (result < 0) {
result_str = "Unknown";
GST_VULKAN_API
GQuark gst_vulkan_error_quark (void);
GST_VULKAN_API
GQuark gst_vulkan_error_quark (void);
+GST_VULKAN_API
+const char * gst_vulkan_result_to_string (VkResult result);
+
/**
* GstVulkanError:
* @GST_VULKAN_FAILED: undetermined error
/**
* GstVulkanError:
* @GST_VULKAN_FAILED: undetermined error