19 #ifndef AVUTIL_HWCONTEXT_VULKAN_H 20 #define AVUTIL_HWCONTEXT_VULKAN_H 22 #include <vulkan/vulkan.h> 43 const VkAllocationCallbacks *
alloc;
#define AV_NUM_DATA_POINTERS
VkDevice act_dev
Active device.
int nb_enabled_inst_extensions
int queue_family_tx_index
Queue family index to use for transfer operations, and the amount of queues enabled.
const char *const * enabled_dev_extensions
Enabled device extensions.
VkMemoryPropertyFlagBits flags
OR'd flags for all memory allocated.
void * create_pnext
Extension data for image creation.
VkPhysicalDeviceFeatures2 device_features
This structure should be set to the set of features that present and enabled during device creation...
int queue_family_index
Queue family index for graphics.
int queue_family_comp_index
Queue family index for compute ops, and the amount of queues enabled.
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.
const char *const * enabled_inst_extensions
Enabled instance extensions.
Allocated as AVHWFramesContext.hwctx, used to set pool-specific options.
reference-counted frame API
VkInstance inst
Vulkan instance.
Main Vulkan context, allocated as AVHWDeviceContext.hwctx.
VkImageUsageFlagBits usage
Defines extra usage of output frames.
VkImageTiling tiling
The same tiling must be used for all images in the frame.
int nb_enabled_dev_extensions
VkPhysicalDevice phys_dev
Physical device.
VkImageTiling tiling
Controls the tiling of allocated frames.
AVVkFrame * av_vk_frame_alloc(void)
Allocates a single AVVkFrame and initializes everything as 0.
AVPixelFormat
Pixel format.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel layout
const VkAllocationCallbacks * alloc
Custom memory allocator, else NULL.