Struct FramesContext_ref
Represents a pointer to an FFmpeg hardware device context buffer reference. This is used to manage hardware-accelerated contexts in FFmpeg.
Inherited Members
Namespace: FFmpeg.HW
Assembly: FFmpeg.dll
Syntax
public readonly struct FramesContext_ref : IEquatable<FramesContext_ref>, IReference<FramesContext>, IAVPointer<_AVHWFramesContext>
Properties
View SourceDeviceContext
The internal parent device context managed by the enclosing frames context
Declaration
public DeviceContext_ref DeviceContext { get; }
Property Value
| Type | Description |
|---|---|
| DeviceContext_ref |
Height
The allocated dimensions of the frames in this pool.
Declaration
public int Height { get; }
Property Value
| Type | Description |
|---|---|
| int |
HwFormat
The pixel format identifying the underlying HW surface type.
Declaration
public PixelFormat HwFormat { get; }
Property Value
| Type | Description |
|---|---|
| PixelFormat |
IsEmpty
True if the instance does not contain any Frames Context.
Declaration
public bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsReadOnly
Indicates whether the device context is read-only. If true, attempting to modify the context will result in a NotSupportedException.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
SwFormat
The pixel format identifying the actual data layout of the hardware frames.
Declaration
public PixelFormat SwFormat { get; }
Property Value
| Type | Description |
|---|---|
| PixelFormat |
Width
The allocated dimensions of the frames in this pool.
Declaration
public int Width { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceAsVulkan()
Returns the internal hwctx as a VulkanFramesContext.
Declaration
public VulkanFramesContext AsVulkan()
Returns
| Type | Description |
|---|---|
| VulkanFramesContext |
Equals(FramesContext_ref)
Determines whether the current FramesContext_ref is equal to another instance of FramesContext_ref.
Declaration
public bool Equals(FramesContext_ref other)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext_ref | other | The other FramesContext_ref to compare with. |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Determines whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceGetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
View SourceGetReferencedObject()
Gets the object currently being referenced. Or a copy if the type is nor reference counted.
Declaration
public FramesContext? GetReferencedObject()
Returns
| Type | Description |
|---|---|
| FramesContext | The referenced object of type FramesContext if available, or null if not. |
SetReferencedObject(FramesContext?)
Sets the reference to a new object of type FramesContext or creates a copy if the type is not reference counted or unlinks the current reference.
Declaration
public void SetReferencedObject(FramesContext? device)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext | device |
Operators
View Sourceoperator ==(FramesContext_ref, FramesContext_ref)
Determines whether two FramesContext_ref instances are equal.
Declaration
public static bool operator ==(FramesContext_ref left, FramesContext_ref right)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext_ref | left | The first instance to compare. |
| FramesContext_ref | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator ==(FramesContext_ref?, FramesContext_ref?)
Determines whether two FramesContext_ref instances are equal.
Declaration
public static bool operator ==(FramesContext_ref? left, FramesContext_ref? right)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext_ref? | left | The first instance to compare. |
| FramesContext_ref? | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(FramesContext_ref, FramesContext_ref)
Determines whether two FramesContext_ref instances are not equal.
Declaration
public static bool operator !=(FramesContext_ref left, FramesContext_ref right)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext_ref | left | The first instance to compare. |
| FramesContext_ref | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(FramesContext_ref?, FramesContext_ref?)
Determines whether two FramesContext_ref instances are not equal.
Declaration
public static bool operator !=(FramesContext_ref? left, FramesContext_ref? right)
Parameters
| Type | Name | Description |
|---|---|---|
| FramesContext_ref? | left | The first instance to compare. |
| FramesContext_ref? | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |