Show / Hide Table of Contents

Struct FramesContext_ref

Represents a pointer to an FFmpeg hardware device context buffer reference. This is used to manage hardware-accelerated contexts in FFmpeg.

Implements
IEquatable<FramesContext_ref>
IReference<FramesContext>
IAVPointer<_AVHWFramesContext>
Inherited Members
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.HW
Assembly: FFmpeg.dll
Syntax
public readonly struct FramesContext_ref : IEquatable<FramesContext_ref>, IReference<FramesContext>, IAVPointer<_AVHWFramesContext>

Properties

View Source

DeviceContext

The internal parent device context managed by the enclosing frames context

Declaration
public DeviceContext_ref DeviceContext { get; }
Property Value
Type Description
DeviceContext_ref
View Source

Height

The allocated dimensions of the frames in this pool.

Declaration
public int Height { get; }
Property Value
Type Description
int
View Source

HwFormat

The pixel format identifying the underlying HW surface type.

Declaration
public PixelFormat HwFormat { get; }
Property Value
Type Description
PixelFormat
View Source

IsEmpty

True if the instance does not contain any Frames Context.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
bool
View Source

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
View Source

SwFormat

The pixel format identifying the actual data layout of the hardware frames.

Declaration
public PixelFormat SwFormat { get; }
Property Value
Type Description
PixelFormat
View Source

Width

The allocated dimensions of the frames in this pool.

Declaration
public int Width { get; }
Property Value
Type Description
int

Methods

View Source

AsVulkan()

Returns the internal hwctx as a VulkanFramesContext.

Declaration
public VulkanFramesContext AsVulkan()
Returns
Type Description
VulkanFramesContext
View Source

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

true if the instances are equal; otherwise, false.

View Source

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

true if the objects are equal; otherwise, false.

Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
ValueType.GetHashCode()
View Source

GetReferencedObject()

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.

View Source

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 Source

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

true if the instances are equal; otherwise, false.

View Source

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

true if the instances are equal; otherwise, false.

View Source

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

true if the instances are not equal; otherwise, false.

View Source

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

true if the instances are not equal; otherwise, false.

Implements

IEquatable<T>
IReference<T>
IAVPointer<T>
  • View Source
In this article
Back to top Generated by DocFX