Struct CodecTag
Represents a codec tag, combining a codec ID and a FourCC (Four Character Code) tag.
Implements
Inherited Members
Namespace: FFmpeg.Codecs
Assembly: FFmpeg.dll
Syntax
public readonly struct CodecTag : IEquatable<CodecTag>
Constructors
View SourceCodecTag(CodecID, FourCC)
Initializes a new instance of the CodecTag struct with the specified codec ID and FourCC tag.
Declaration
public CodecTag(CodecID id, FourCC tag)
Parameters
| Type | Name | Description |
|---|---|---|
| CodecID | id | The codec identifier. |
| FourCC | tag | The FourCC tag associated with the codec. |
Properties
View SourceID
Gets the codec identifier.
Declaration
public CodecID ID { get; init; }
Property Value
| Type | Description |
|---|---|
| CodecID |
Tag
Gets the FourCC tag associated with the codec.
Declaration
public FourCC Tag { get; init; }
Property Value
| Type | Description |
|---|---|
| FourCC |
Methods
View SourceEquals(CodecTag)
Declaration
public bool Equals(CodecTag other)
Parameters
| Type | Name | Description |
|---|---|---|
| CodecTag | other |
Returns
| Type | Description |
|---|---|
| bool | true if the specified CodecTag is equal to the current CodecTag; otherwise, false. |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceGetHashCode()
Returns a hash code for the current CodecTag.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current CodecTag. |
Overrides
View SourceToString()
Returns a string that represents the current CodecTag.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current CodecTag, in the format "ID/Tag". |
Overrides
Operators
View Sourceoperator ==(CodecTag, CodecTag)
Determines whether two specified CodecTag instances are equal.
Declaration
public static bool operator ==(CodecTag left, CodecTag right)
Parameters
| Type | Name | Description |
|---|---|---|
| CodecTag | left | The first CodecTag to compare. |
| CodecTag | right | The second CodecTag to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if the two CodecTag instances are equal; otherwise, false. |
implicit operator CodecTag(_AVCodecTag)
Implicitly converts an FFmpeg.AutoGen._AVCodecTag to a CodecTag.
Declaration
public static implicit operator CodecTag(_AVCodecTag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| _AVCodecTag | tag | The FFmpeg.AutoGen._AVCodecTag to convert. |
Returns
| Type | Description |
|---|---|
| CodecTag |
implicit operator _AVCodecTag(CodecTag)
Implicitly converts a CodecTag to an FFmpeg.AutoGen._AVCodecTag.
Declaration
public static implicit operator _AVCodecTag(CodecTag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| CodecTag | tag | The CodecTag to convert. |
Returns
| Type | Description |
|---|---|
| _AVCodecTag |
operator !=(CodecTag, CodecTag)
Determines whether two specified CodecTag instances are not equal.
Declaration
public static bool operator !=(CodecTag left, CodecTag right)
Parameters
| Type | Name | Description |
|---|---|---|
| CodecTag | left | The first CodecTag to compare. |
| CodecTag | right | The second CodecTag to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if the two CodecTag instances are not equal; otherwise, false. |