Struct VulkanFramesContext
Represents a Vulkan hardware frames context.
Implements
IAVPointer<_AVVulkanFramesContext>
Inherited Members
Namespace: FFmpeg.HW.Vulkan
Assembly: FFmpeg.dll
Syntax
public readonly struct VulkanFramesContext : IAVPointer<_AVVulkanFramesContext>
Methods
View SourceFromAVFrame(AVFrame)
Creates a VulkanFramesContext from the hardware frames context associated with the specified frame.
Declaration
public static VulkanFramesContext FromAVFrame(AVFrame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| AVFrame | frame | The frame whose hardware frames context will be used. |
Returns
| Type | Description |
|---|---|
| VulkanFramesContext | A VulkanFramesContext representing the Vulkan hardware frames context associated with the frame. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if the frame does not have an associated hardware frames context, or if the associated device is not a Vulkan device. |