Struct FFCodecFrameInfo
Contains timing information for a decoded video frame.
Implements
Inherited Members
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 SourceDuration
Gets the amount of time the frame should be displayed.
Declaration
public TimeSpan Duration { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
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 SourceEquals(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. |
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 |
Overrides
View SourceGetHashCode()
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
View SourceToString()
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
Operators
View Sourceoperator ==(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 |
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 |