Skip to main content

VulkanFrameInfo

Struct VulkanFrameInfo 

Source
pub struct VulkanFrameInfo {
Show 18 fields pub hardware_format: i32, pub software_format: i32, pub width: i32, pub height: i32, pub coded_width: i32, pub coded_height: i32, pub plane_count: u32, pub sampled: bool, pub instance: u64, pub physical_device: u64, pub device: u64, pub images: [u64; 8], pub formats: [u32; 8], pub layouts: [u32; 8], pub access: [u32; 8], pub semaphores: [u64; 8], pub semaphore_values: [u64; 8], pub queue_families: [u32; 8],
}
Expand description

Opaque Vulkan handles and synchronization state for one FFmpeg hardware frame.

Handles are diagnostic identities only. The caller must not destroy them and must retain the source AVFrame for as long as it inspects or imports them.

Fields§

§hardware_format: i32

FFmpeg hardware pixel format.

§software_format: i32

Software layout represented by the hardware frames context.

§width: i32

Visible frame width.

§height: i32

Visible frame height.

§coded_width: i32

Allocated image width, which the codec pads to whole macroblocks.

§coded_height: i32

Allocated image height, which the codec pads to whole macroblocks.

§plane_count: u32

Number of non-null Vulkan images.

§sampled: bool

Whether FFmpeg allocated the image with sampled-image usage.

§instance: u64

VkInstance identity.

§physical_device: u64

VkPhysicalDevice identity.

§device: u64

VkDevice identity.

§images: [u64; 8]

Per-plane VkImage identities.

§formats: [u32; 8]

Per-plane Vulkan formats.

§layouts: [u32; 8]

Current per-plane image layouts.

§access: [u32; 8]

Current per-plane access masks.

§semaphores: [u64; 8]

Per-plane timeline semaphore identities.

§semaphore_values: [u64; 8]

Values that an importing submission must wait for.

§queue_families: [u32; 8]

Current image queue-family ownership.

Trait Implementations§

Source§

impl Clone for VulkanFrameInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VulkanFrameInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VulkanFrameInfo

Source§

impl PartialEq for VulkanFrameInfo

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VulkanFrameInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.