Go to the documentation of this file.
19 #ifndef AVUTIL_HWCONTEXT_VULKAN_H
20 #define AVUTIL_HWCONTEXT_VULKAN_H
22 #include <vulkan/vulkan.h>
43 const VkAllocationCallbacks *
alloc;
VkPhysicalDevice phys_dev
Physical device.
AVPixelFormat
Pixel format.
void * create_pnext
Extension data for image creation.
VkInstance inst
Vulkan instance.
int queue_family_index
Queue family index for graphics.
const VkAllocationCallbacks * alloc
Custom memory allocator, else NULL.
VkImage img[AV_NUM_DATA_POINTERS]
Vulkan images to which the memory is bound to.
int queue_family_comp_index
Queue family index for compute ops, and the amount of queues enabled.
VkDeviceMemory mem[AV_NUM_DATA_POINTERS]
Memory backing the images.
Allocated as AVHWFramesContext.hwctx, used to set pool-specific options.
Main Vulkan context, allocated as AVHWDeviceContext.hwctx.
int nb_enabled_dev_extensions
VkMemoryPropertyFlagBits flags
OR'd flags for all memory allocated.
void * alloc_pnext[AV_NUM_DATA_POINTERS]
Extension data for memory allocation.
const char *const * enabled_inst_extensions
Enabled instance extensions.
VkImageUsageFlagBits usage
Defines extra usage of output frames.
int queue_family_tx_index
Queue family index to use for transfer operations, and the amount of queues enabled.
size_t size[AV_NUM_DATA_POINTERS]
VkAccessFlagBits access[AV_NUM_DATA_POINTERS]
Updated after every barrier.
const VkFormat * av_vkfmt_from_pixfmt(enum AVPixelFormat p)
Returns the format of each image up to the number of planes for a given sw_format.
#define AV_NUM_DATA_POINTERS
AVVkFrame * av_vk_frame_alloc(void)
Allocates a single AVVkFrame and initializes everything as 0.
VkSemaphore sem[AV_NUM_DATA_POINTERS]
Synchronization semaphores.
VkImageTiling tiling
The same tiling must be used for all images in the frame.
VkImageTiling tiling
Controls the tiling of allocated frames.
const char *const * enabled_dev_extensions
Enabled device extensions.
VkImageLayout layout[AV_NUM_DATA_POINTERS]
VkDevice act_dev
Active device.
int nb_enabled_inst_extensions
VkPhysicalDeviceFeatures2 device_features
This structure should be set to the set of features that present and enabled during device creation.