Show / Hide Table of Contents

Struct CodecTag

Represents a codec tag, combining a codec ID and a FourCC (Four Character Code) tag.

Implements
IEquatable<CodecTag>
Inherited Members
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.Codecs
Assembly: FFmpeg.dll
Syntax
public readonly struct CodecTag : IEquatable<CodecTag>

Constructors

View Source

CodecTag(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 Source

ID

Gets the codec identifier.

Declaration
public CodecID ID { get; init; }
Property Value
Type Description
CodecID
View Source

Tag

Gets the FourCC tag associated with the codec.

Declaration
public FourCC Tag { get; init; }
Property Value
Type Description
FourCC

Methods

View Source

Equals(CodecTag)

Determines whether the specified CodecTag is equal to the current CodecTag.

Declaration
public bool Equals(CodecTag other)
Parameters
Type Name Description
CodecTag other

The CodecTag to compare with the current CodecTag.

Returns
Type Description
bool

true if the specified CodecTag is equal to the current CodecTag; otherwise, false.

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()

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
ValueType.GetHashCode()
View Source

ToString()

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
ValueType.ToString()

Operators

View Source

operator ==(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.

View Source

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

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

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.

Implements

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