Show / Hide Table of Contents

Struct FFCodecFrameInfo

Contains timing information for a decoded video frame.

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

Instances of this structure are returned by FFCodec2Skia when decoding frames and provide the presentation timestamp and display duration of the decoded frame.

Properties

View Source

Duration

Gets the amount of time the frame should be displayed.

Declaration
public TimeSpan Duration { get; init; }
Property Value
Type Description
TimeSpan
View Source

TimeStamp

Gets the presentation timestamp of the frame.

Declaration
public TimeSpan TimeStamp { get; init; }
Property Value
Type Description
TimeSpan
Remarks

This is the timestamp of the stream converted to a TimeSpan; it does not necessarily start at zero (e.g. MPEG-TS). Zero if the frame has no timestamp.

Methods

View Source

Equals(FFCodecFrameInfo)

Determines whether the specified frame information is equal to the current instance.

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

The frame information to compare.

Returns
Type Description
bool

true if both instances have the same timestamp and duration; otherwise, false.

View Source

Equals(object?)

Determines whether the specified object is equal to the current frame information.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj is an FFCodecFrameInfo with the same timestamp and duration; otherwise, false.

Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current frame information.

Overrides
ValueType.GetHashCode()
View Source

ToString()

Returns a string that represents the current frame information.

Declaration
public override string ToString()
Returns
Type Description
string

A string containing the presentation timestamp and the end time of the frame.

Overrides
ValueType.ToString()

Operators

View Source

operator ==(FFCodecFrameInfo, FFCodecFrameInfo)

Determines whether two FFCodecFrameInfo instances are equal.

Declaration
public static bool operator ==(FFCodecFrameInfo left, FFCodecFrameInfo right)
Parameters
Type Name Description
FFCodecFrameInfo left
FFCodecFrameInfo right
Returns
Type Description
bool
View Source

operator !=(FFCodecFrameInfo, FFCodecFrameInfo)

Determines whether two FFCodecFrameInfo instances are not equal.

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

Implements

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