Table of Contents

Class KLVPacketEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for the VideoCaptureCore.OnKLVPacketEmitted event, which fires once per KLV packet after the per-destination reorder buffer has emitted it and immediately before it is written to the destination.

public sealed class KLVPacketEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

One subscription receives packets for every active destination — use VisioForge.Core.Types.Events.KLVPacketEventArgs.Destination to tell them apart. VisioForge.Core.Types.Events.KLVPacketEventArgs.Data is an exact-sized managed copy of the KLV payload owned by the event args (it is safe to retain after the handler returns). VisioForge.Core.Types.Events.KLVPacketEventArgs.Pts100ns is in DirectShow REFERENCE_TIME (100 nanosecond) units. Intended for diagnostics and downstream consumers; for production KLV writing keep using the standard Output_Format and Network_Streaming_* wiring.

Constructors

KLVPacketEventArgs(KLVDestinationKind, long, byte[])

Initializes a new instance of the VisioForge.Core.Types.Events.KLVPacketEventArgs class.

public KLVPacketEventArgs(KLVDestinationKind destination, long pts100ns, byte[] data)

Parameters

destination KLVDestinationKind

The destination this packet is being delivered to.

pts100ns long

Presentation timestamp in 100 ns ticks.

data byte[]

Exact-sized managed copy of the KLV payload.

Properties

Data

Exact-sized managed copy of the KLV payload. Safe to retain after the event handler returns.

public byte[] Data { get; }

Property Value

byte[]

Destination

Which destination this packet is being delivered to.

public KLVDestinationKind Destination { get; }

Property Value

KLVDestinationKind

Pts100ns

Presentation timestamp in 100 ns ticks (DirectShow REFERENCE_TIME).

public long Pts100ns { get; }

Property Value

long