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