Struct CodecHWConfig
Represents a hardware configuration for a codec, wrapping around the FFmpeg _AVCodecHWConfig structure.
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
View Source
Methods
Gets the methods supported by the hardware configuration.
Declaration
public CodecHWConfigMethod Methods { get; }
Property Value
View Source
Gets the pixel format of the hardware configuration.
Declaration
public PixelFormat PixelFormat { get; }
Property Value
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
View Source
Equals(CodecHWConfig)
Declaration
public bool Equals(CodecHWConfig other)
Parameters
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
View Source
operator ==(CodecHWConfig, CodecHWConfig)
Declaration
public static bool operator ==(CodecHWConfig left, CodecHWConfig right)
Parameters
Returns
| Type |
Description |
| bool |
true if the two instances are equal; otherwise, false.
|
View Source
operator !=(CodecHWConfig, CodecHWConfig)
Declaration
public static bool operator !=(CodecHWConfig left, CodecHWConfig right)
Parameters
Returns
| Type |
Description |
| bool |
true if the two instances are not equal; otherwise, false.
|
Implements