Show / Hide Table of Contents

Struct CodecHWConfig

Represents a hardware configuration for a codec, wrapping around the FFmpeg _AVCodecHWConfig structure.

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

Properties

View Source

DeviceType

Gets the device type required for the hardware configuration.

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

Methods

Gets the methods supported by the hardware configuration.

Declaration
public CodecHWConfigMethod Methods { get; }
Property Value
Type Description
CodecHWConfigMethod
View Source

PixelFormat

Gets the pixel format of the hardware configuration.

Declaration
public PixelFormat PixelFormat { get; }
Property Value
Type Description
PixelFormat

Methods

View Source

CodecHWConfigs(Codec)

Gets the available hardware configurations for the specified codec.

Declaration
public static CodecHWConfig[] CodecHWConfigs(Codec codec)
Parameters
Type Name Description
Codec codec

The codec to retrieve hardware configurations for.

Returns
Type Description
CodecHWConfig[]

An array of CodecHWConfig representing the available hardware configurations.

View Source

Equals(CodecHWConfig)

Declaration
public bool Equals(CodecHWConfig other)
Parameters
Type Name Description
CodecHWConfig other
Returns
Type Description
bool
View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

Operators

View Source

operator ==(CodecHWConfig, CodecHWConfig)

Determines whether two CodecHWConfig instances are equal.

Declaration
public static bool operator ==(CodecHWConfig left, CodecHWConfig right)
Parameters
Type Name Description
CodecHWConfig left

The first CodecHWConfig to compare.

CodecHWConfig right

The second CodecHWConfig to compare.

Returns
Type Description
bool

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

View Source

operator !=(CodecHWConfig, CodecHWConfig)

Determines whether two CodecHWConfig instances are not equal.

Declaration
public static bool operator !=(CodecHWConfig left, CodecHWConfig right)
Parameters
Type Name Description
CodecHWConfig left

The first CodecHWConfig to compare.

CodecHWConfig right

The second CodecHWConfig to compare.

Returns
Type Description
bool

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

Implements

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