FFmpeg
Data Fields
AVVulkanFramesContext Struct Reference

Allocated as AVHWFramesContext.hwctx, used to set pool-specific options. More...

#include <hwcontext_vulkan.h>

Data Fields

VkImageTiling tiling
 Controls the tiling of allocated frames. More...
 
VkImageUsageFlagBits usage
 Defines extra usage of output frames. More...
 
voidcreate_pnext
 Extension data for image creation. More...
 
voidalloc_pnext [AV_NUM_DATA_POINTERS]
 Extension data for memory allocation. More...
 

Detailed Description

Allocated as AVHWFramesContext.hwctx, used to set pool-specific options.

Definition at line 112 of file hwcontext_vulkan.h.

Field Documentation

VkImageTiling AVVulkanFramesContext::tiling

Controls the tiling of allocated frames.

Definition at line 116 of file hwcontext_vulkan.h.

Referenced by try_export_flags(), vulkan_frames_init(), and vulkan_pool_alloc().

VkImageUsageFlagBits AVVulkanFramesContext::usage

Defines extra usage of output frames.

If left as 0, the following bits are set: TRANSFER_SRC, TRANSFER_DST. SAMPLED and STORAGE.

Definition at line 121 of file hwcontext_vulkan.h.

Referenced by try_export_flags(), vulkan_frames_init(), vulkan_map_frame_to_mem(), and vulkan_pool_alloc().

void* AVVulkanFramesContext::create_pnext

Extension data for image creation.

Definition at line 125 of file hwcontext_vulkan.h.

Referenced by vulkan_frames_init(), and vulkan_pool_alloc().

void* AVVulkanFramesContext::alloc_pnext[AV_NUM_DATA_POINTERS]

Extension data for memory allocation.

Must have as many entries as the number of planes of the sw_format. This will be chained to VkExportMemoryAllocateInfo, which is used to make all pool images exportable to other APIs if the necessary extensions are present in enabled_dev_extensions.

Definition at line 133 of file hwcontext_vulkan.h.

Referenced by vulkan_pool_alloc().


The documentation for this struct was generated from the following file: