Table of Contents

Class EncodedMediaFrame

Namespace
VisioForge.Core.Types.X.PreEventRecording
Assembly
VisioForge.Core.dll

Represents a single encoded media frame stored in the pre-event circular buffer. Contains a copy of the encoded frame data along with timing and keyframe information.

public sealed class EncodedMediaFrame : IDisposable

Inheritance

Implements

Inherited Members

Properties

Caps

Gets or sets the GStreamer caps string describing the encoded format.

public string Caps { get; set; }

Property Value

string

Data

Gets or sets the encoded frame data (byte array copy of GStreamer buffer).

public byte[] Data { get; set; }

Property Value

byte[]

Dts

Gets or sets the decode timestamp in nanoseconds.

public ulong Dts { get; set; }

Property Value

ulong

Duration

Gets or sets the frame duration in nanoseconds.

public ulong Duration { get; set; }

Property Value

ulong

FrameType

Gets or sets the type of media (Video or Audio).

public EncodedMediaFrameType FrameType { get; set; }

Property Value

EncodedMediaFrameType

IsKeyFrame

Gets or sets a value indicating whether this video frame is a keyframe (I-frame / IDR / sync point). Always false for audio frames.

public bool IsKeyFrame { get; set; }

Property Value

bool

Pts

Gets or sets the presentation timestamp in nanoseconds.

public ulong Pts { get; set; }

Property Value

ulong

Size

Gets the frame size in bytes.

public int Size { get; }

Property Value

int

Methods

Dispose()

Releases the frame data.

public void Dispose()