2015-10-24 06:29:05 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2019-04-08 11:35:22 +00:00
|
|
|
#ifndef __GST_VULKAN_ERROR_H__
|
|
|
|
#define __GST_VULKAN_ERROR_H__
|
2015-10-24 06:29:05 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <vulkan/vulkan.h>
|
2019-04-08 11:35:22 +00:00
|
|
|
#include <gst/vulkan/vulkan-prelude.h>
|
2015-10-24 06:29:05 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2020-08-12 05:59:01 +00:00
|
|
|
/**
|
|
|
|
* GST_VULKAN_ERROR:
|
|
|
|
*
|
|
|
|
* Since: 1.18
|
|
|
|
*/
|
2015-10-24 06:29:05 +00:00
|
|
|
#define GST_VULKAN_ERROR (gst_vulkan_error_quark ())
|
2020-08-12 05:59:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_vulkan_error_quark:
|
|
|
|
*
|
|
|
|
* Since: 1.18
|
|
|
|
*/
|
2019-04-08 11:35:22 +00:00
|
|
|
GST_VULKAN_API
|
2015-10-24 06:29:05 +00:00
|
|
|
GQuark gst_vulkan_error_quark (void);
|
|
|
|
|
2022-02-02 03:15:34 +00:00
|
|
|
GST_VULKAN_API
|
|
|
|
const char * gst_vulkan_result_to_string (VkResult result);
|
|
|
|
|
2020-08-12 05:59:01 +00:00
|
|
|
/**
|
|
|
|
* GstVulkanError:
|
|
|
|
* @GST_VULKAN_FAILED: undetermined error
|
|
|
|
*
|
|
|
|
* Since: 1.18
|
|
|
|
*/
|
2019-04-08 08:42:12 +00:00
|
|
|
/* custom error values */
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_VULKAN_FAILED = 0,
|
|
|
|
} GstVulkanError;
|
|
|
|
|
2015-10-24 06:29:05 +00:00
|
|
|
/* only fills error iff error != NULL and result < 0 */
|
2019-04-08 11:35:22 +00:00
|
|
|
GST_VULKAN_API
|
2015-10-24 06:29:05 +00:00
|
|
|
VkResult gst_vulkan_error_to_g_error (VkResult result, GError ** error, const char * format, ...) G_GNUC_PRINTF (3, 4);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2019-04-08 11:35:22 +00:00
|
|
|
#endif /* __GST_VULKAN_ERROR_H__ */
|