Skip to main content

Module advanced

Module advanced 

Source
Expand description

NDI Advanced SDK operations.

  • Per-instance JSON configuration through the config setter of supported options. See AdvancedConfig for the configurable objects.
  • Compressed passthrough: receiving codec packets (PacketReceiver) and sending them (CompressedSender), including scatter-gather submission.
  • Encoder guidance, keyframe demand and stream selection on the ordinary Sender and Receiver.
  • Audio matched to video timestamps (AvSync) and reference-locked clocks (Genlock).
  • Remote keyboard, mouse and touch control (KvmSession).
  • Application-supplied memory for received frames (AllocatorService).
  • Asynchronous sending with completion notification (QueuedSender).

§Requirements

The Advanced SDK headers may not be redistributed, so this module needs three things, in this order:

  1. the advanced Cargo feature;
  2. an installed NDI Advanced SDK when the crate is built (NDI_SDK_DIR, or a default installation directory), from which the native declarations are generated on the build machine;
  3. an Advanced SDK runtime selected when the program runs.

The API is identical whether or not the build found the Advanced SDK. Without it, and against a Standard runtime, every native operation returns Error::UnsupportedCapability with the reason; the data types in this module (packets, envelopes, options) work everywhere. Core operations are unaffected in every case. An older installed Advanced SDK disables only the declaration families or receive presets it lacks. The remaining operations keep their native ABI checks and still require the matching runtime exports.

Enabling this module neither selects an SDK edition nor grants a license entitlement.

§Ownership

An operation that takes ownership of a receiver, a sender or a frame hands it back inside Rejected when it fails.

Structs§

AdvancedConfig
The JSON configuration of one Advanced SDK object.
AllocatedReceiver
A receiver whose frames can be received into application memory.
AllocationBuffer
The memory a ReceiveAllocator returns for one AllocationRequest.
AllocationRequest
What the SDK needs memory for: one frame it is about to receive.
AllocatorLimits
Process-wide limits on custom receive allocation.
AllocatorService
Permission to give receivers custom allocators.
AllocatorUsage
A snapshot of custom allocation across the process.
AudioClock
The audio clock of a Genlock.
AudioClockRequest
A reusable, validated request for an AudioClock.
AudioPacketFormat
The codec, protection and decoded dimensions of one compressed audio frame.
AvSync
Audio matched to the timestamps of a receiver’s video.
AvSyncAudioRef
Audio borrowed from an AvSync synchronizer.
AvSyncCapture
Synchronization access lent by AvSync::split.
AvSyncRequest
What audio an AvSync::synchronize call asks for.
AvSyncVideo
A video frame with a received timestamp for AvSync::synchronize to match audio to.
CompletedVideo
A frame the SDK has finished with, ready to be reused.
CompressedFrame
One owned compressed frame that has been admitted for sending.
CompressedRef
A borrowed compressed packet captured by a PacketReceiver.
CompressedSender
A sender of compressed video and audio.
CompressedVideo
Exclusive video operations borrowed from a CompressedSender.
ExtendedSource
A discovered source together with the metadata it advertises.
FrameSyncCapture
Clocked capture access lent by FrameSync::split.
Genlock
Clocks locked to the timing of a reference NDI source.
GenlockOptions
Optional reference source and native configuration for a Genlock.
KvmReceiver
Restricted receiver access lent by super::KvmSession::receiver.
KvmSession
Exclusive remote control of the source a receiver is connected to.
PacketEnvelope
A bounds-checked view of a packet envelope: its header, codec payload and codec configuration data. encode builds one.
PacketReceiver
A receiver that delivers compressed packets where it can.
PoolBlock
An address, capacity and pool-defined slot tag, without ownership of memory.
QualityPlan
SpeedHQ encoder quality for one stream, from Sender::quality_plan.
QueueLimits
Limits on what a QueuedSender holds at once.
QueuedSender
A sender that queues video frames and reports when each has been sent.
QueuedVideo
Exclusive video operations borrowed from a QueuedSender.
ReceivedPacket
An owned compressed packet copied from a receiver without loss.
ReceiverControls
Exclusive controls for a receiver held by another resource.
ReclaimedVideo
Frames returned by CompressedSender::reclaim_video or CompressedSender::close.
ScatterFrame
A sendable compressed frame held in ordered blocks, without joining them.
SubmissionId
Identifies one submission to a QueuedSender. Identifiers increase with each submission and are never reused by the same queue.
VideoClock
The video clock of a Genlock.
VideoPacketFormat
The codec, geometry and timing of compressed video, independent of any one frame’s bytes.

Enums§

AllocationDecline
Why a custom receive allocation was declined and the SDK dropped its frame.
AllocationFormat
The kind of frame an AllocationRequest is for.
AudioCodec
A compressed audio codec.
AvSyncAttached
Receiver mode held by AvSync, which reserves audio for synchronization. Video, metadata and common controls remain available through its receiver. Query capabilities, crate::Receiver::wait_for_source_name_change and connection statistics because synchronization may consume notifications.
AvSyncOutcome
The result of one AvSync::synchronize call.
AvSyncOutcomeRef
A synchronization outcome whose audio remains borrowed from the SDK.
ClockSource
What paced a completed VideoClock::wait or AudioClock::wait.
CompressedAttached
Sender mode held exclusively by CompressedSender. Video submission belongs to the wrapper; audio goes through its sender.
EnvelopeCodec
A codec whose payload travels inside a packet envelope.
MouseButton
A mouse button.
PacketAttached
Receiver mode held by PacketReceiver, AllocatedReceiver<PacketAttached> and their KvmReceiver views. Packet capture reserves video, audio, metadata and event capture for the packet owner and its KVM view.
PacketItem
What one PacketReceiver::capture_any call produced.
PacketItemRef
One borrowed packet, decoded frame, metadata frame, or receiver event.
PassthroughPreset
Which compressed formats a PacketReceiver passes through.
QueueAttached
Sender mode held exclusively by QueuedSender. It submits video and sends both uncompressed and compressed audio.
QueuedVideoFrame
A video frame a QueuedSender can send.
ReceivedAudio
Audio from a PacketReceiver: a codec packet when the source’s format is one the preset passes through, decoded samples otherwise.
ReceivedAudioRef
Borrowed audio returned by a packet receiver.
ReceivedVideo
Video from a PacketReceiver: a codec packet when the source’s format is one the preset passes through, a decoded frame otherwise.
ReceivedVideoRef
Borrowed video returned by a packet receiver, retaining its native buffer.
SubmittedVideo
A video frame that was submitted asynchronously and that the SDK has finished with.
VideoCodec
A compressed video codec.
WheelAxis
A wheel axis.

Constants§

MAX_ALLOCATION_BYTES
Maximum capacity, in bytes, for a single custom receive allocation.
MAX_PACKET_BYTES
Maximum compressed frame size, in bytes, that the crate sends or accepts.
MAX_SCATTER_BLOCKS
Maximum number of blocks in one scatter frame.

Traits§

AvSyncFrame
A video frame AvSyncVideo::new accepts: a VideoFrameRef captured from a receiver, such as the one AvSync::receiver lends, or an owned VideoFrame.
CompressedAudioSendMode
Sealed sender modes that send compressed audio: compressed and queued. Their constructors require an Advanced runtime.
ExternalAllocation
Memory from the application’s own pool, lent to the SDK for one frame.
ExternalPool
A pool that reclaims exclusive blocks lent through AllocationBuffer::from_pool.
PacketFormat
A compressed packet’s checked media format.
ReceiveAllocator
A policy that supplies the memory received frames are written into.