FFmpeg
Loading...
Searching...
No Matches
Data Fields
AVVkFrame Struct Reference

#include <hwcontext_vulkan.h>

Data Fields

  Vulkan images to which the memory is bound to.
 
VkImageTiling  tiling
  Tiling for the frame.
 
VkDeviceMemory  mem [AV_NUM_DATA_POINTERS]
  Memory backing the images.
 
 
VkMemoryPropertyFlagBits  flags
  OR'd flags for all memory allocated.
 
VkAccessFlagBits2  access [AV_NUM_DATA_POINTERS]
  Updated after every barrier.
 
VkImageLayout  layout [AV_NUM_DATA_POINTERS]
 
VkSemaphore  sem [AV_NUM_DATA_POINTERS]
  Synchronization timeline semaphores, one for each VkImage.
 
  Up to date semaphore value at which each image becomes accessible.
 
  Describes the binding offset of each image to the VkDeviceMemory.
 
  Queue family of the images.
 
  Internal data.
 

Detailed Description

Definition at line 261 of file hwcontext_vulkan.h.

Field Documentation

◆  img

VkImage AVVkFrame::img[AV_NUM_DATA_POINTERS]

Vulkan images to which the memory is bound to.

May be one for multiplane formats, or multiple.

Definition at line 266 of file hwcontext_vulkan.h.

Referenced by copy_frame(), ff_vk_create_imageview(), ff_vk_create_imageviews(), ff_vk_decode_frame(), ff_vk_frame_barrier(), vk_apv_end_frame(), vk_ffv1_end_frame(), vk_prores_end_frame(), vk_prores_raw_end_frame(), vulkan_encode_ffv1_submit_frame(), vulkan_encode_init(), vulkan_encode_issue(), vulkan_transfer_frame(), and vulkan_transfer_host().

◆  tiling

VkImageTiling AVVkFrame::tiling

Tiling for the frame.

Definition at line 271 of file hwcontext_vulkan.h.

◆  mem

VkDeviceMemory AVVkFrame::mem[AV_NUM_DATA_POINTERS]

Memory backing the images.

Either one, or as many as there are planes in the sw_format. In case of having multiple VkImages, but one memory, the offset field will indicate the bound offset for each image.

Definition at line 279 of file hwcontext_vulkan.h.

◆  size

size_t AVVkFrame::size[AV_NUM_DATA_POINTERS]

Definition at line 280 of file hwcontext_vulkan.h.

◆  flags

VkMemoryPropertyFlagBits AVVkFrame::flags

OR'd flags for all memory allocated.

Definition at line 285 of file hwcontext_vulkan.h.

◆  access

VkAccessFlagBits2 AVVkFrame::access[AV_NUM_DATA_POINTERS]

Updated after every barrier.

One per VkImage.

Definition at line 290 of file hwcontext_vulkan.h.

Referenced by ff_vk_exec_submit(), ff_vk_frame_barrier(), vk_apv_end_frame(), vk_dpx_end_frame(), vk_ffv1_end_frame(), vk_prores_end_frame(), vk_prores_raw_end_frame(), and vulkan_encode_ffv1_submit_frame().

◆  layout

VkImageLayout AVVkFrame::layout[AV_NUM_DATA_POINTERS]

Definition at line 291 of file hwcontext_vulkan.h.

Referenced by ff_vk_decode_frame(), ff_vk_exec_submit(), ff_vk_frame_barrier(), vk_apv_end_frame(), vk_dpx_end_frame(), vk_ffv1_end_frame(), vk_prores_end_frame(), vk_prores_raw_end_frame(), vulkan_encode_ffv1_submit_frame(), vulkan_encode_issue(), vulkan_transfer_frame(), and vulkan_transfer_host().

◆  sem

VkSemaphore AVVkFrame::sem[AV_NUM_DATA_POINTERS]

Synchronization timeline semaphores, one for each VkImage.

Must not be freed manually. Must be waited on at every submission using the value in sem_value, and must be signalled at every submission, using an incremented value.

Definition at line 299 of file hwcontext_vulkan.h.

Referenced by ff_vk_exec_add_dep_frame(), ff_vk_exec_mirror_sem_value(), and vulkan_transfer_host().

◆  sem_value

uint64_t AVVkFrame::sem_value[AV_NUM_DATA_POINTERS]

Up to date semaphore value at which each image becomes accessible.

One per VkImage. Clients must wait on this value when submitting a command queue, and increment it when signalling.

Definition at line 307 of file hwcontext_vulkan.h.

Referenced by ff_vk_exec_add_dep_frame(), ff_vk_exec_mirror_sem_value(), and vulkan_transfer_host().

◆  offset

ptrdiff_t AVVkFrame::offset[AV_NUM_DATA_POINTERS]

Describes the binding offset of each image to the VkDeviceMemory.

One per VkImage.

Definition at line 313 of file hwcontext_vulkan.h.

◆  queue_family

uint32_t AVVkFrame::queue_family[AV_NUM_DATA_POINTERS]

Queue family of the images.

Must be VK_QUEUE_FAMILY_IGNORED if the image was allocated with the CONCURRENT concurrency option. One per VkImage.

Definition at line 320 of file hwcontext_vulkan.h.

Referenced by ff_vk_decode_frame(), ff_vk_exec_submit(), ff_vk_frame_barrier(), and vulkan_encode_issue().

◆  internal

struct AVVkFrameInternal* AVVkFrame::internal

Internal data.

Not to be accessed by users in any way.

Definition at line 325 of file hwcontext_vulkan.h.

Referenced by lock_frame(), and unlock_frame().


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

Generated on Sun Sep 6 2026 19:21:25 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /