Expand description
NDI Advanced SDK operations.
- Per-instance JSON configuration through the
configsetter of supported options. SeeAdvancedConfigfor 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
SenderandReceiver. - 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:
- the
advancedCargo feature; - 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; - 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§
- Advanced
Config - The JSON configuration of one Advanced SDK object.
- Allocated
Receiver - A receiver whose frames can be received into application memory.
- Allocation
Buffer - The memory a
ReceiveAllocatorreturns for oneAllocationRequest. - Allocation
Request - What the SDK needs memory for: one frame it is about to receive.
- Allocator
Limits - Process-wide limits on custom receive allocation.
- Allocator
Service - Permission to give receivers custom allocators.
- Allocator
Usage - A snapshot of custom allocation across the process.
- Audio
Clock - The audio clock of a
Genlock. - Audio
Clock Request - A reusable, validated request for an
AudioClock. - Audio
Packet Format - The codec, protection and decoded dimensions of one compressed audio frame.
- AvSync
- Audio matched to the timestamps of a receiver’s video.
- AvSync
Audio Ref - Audio borrowed from an
AvSyncsynchronizer. - AvSync
Capture - Synchronization access lent by
AvSync::split. - AvSync
Request - What audio an
AvSync::synchronizecall asks for. - AvSync
Video - A video frame with a received timestamp for
AvSync::synchronizeto match audio to. - Completed
Video - A frame the SDK has finished with, ready to be reused.
- Compressed
Frame - One owned compressed frame that has been admitted for sending.
- Compressed
Ref - A borrowed compressed packet captured by a
PacketReceiver. - Compressed
Sender - A sender of compressed video and audio.
- Compressed
Video - Exclusive video operations borrowed from a
CompressedSender. - Extended
Source - A discovered source together with the metadata it advertises.
- Frame
Sync Capture - Clocked capture access lent by
FrameSync::split. - Genlock
- Clocks locked to the timing of a reference NDI source.
- Genlock
Options - 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.
- Packet
Envelope - A bounds-checked view of a packet envelope: its header, codec payload and
codec configuration data.
encodebuilds one. - Packet
Receiver - A receiver that delivers compressed packets where it can.
- Pool
Block - An address, capacity and pool-defined slot tag, without ownership of memory.
- Quality
Plan - SpeedHQ encoder quality for one stream, from
Sender::quality_plan. - Queue
Limits - Limits on what a
QueuedSenderholds at once. - Queued
Sender - A sender that queues video frames and reports when each has been sent.
- Queued
Video - Exclusive video operations borrowed from a
QueuedSender. - Received
Packet - An owned compressed packet copied from a receiver without loss.
- Receiver
Controls - Exclusive controls for a receiver held by another resource.
- Reclaimed
Video - Frames returned by
CompressedSender::reclaim_videoorCompressedSender::close. - Scatter
Frame - A sendable compressed frame held in ordered blocks, without joining them.
- Submission
Id - Identifies one submission to a
QueuedSender. Identifiers increase with each submission and are never reused by the same queue. - Video
Clock - The video clock of a
Genlock. - Video
Packet Format - The codec, geometry and timing of compressed video, independent of any one frame’s bytes.
Enums§
- Allocation
Decline - Why a custom receive allocation was declined and the SDK dropped its frame.
- Allocation
Format - The kind of frame an
AllocationRequestis for. - Audio
Codec - A compressed audio codec.
- AvSync
Attached - 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_changeand connection statistics because synchronization may consume notifications. - AvSync
Outcome - The result of one
AvSync::synchronizecall. - AvSync
Outcome Ref - A synchronization outcome whose audio remains borrowed from the SDK.
- Clock
Source - What paced a completed
VideoClock::waitorAudioClock::wait. - Compressed
Attached - Sender mode held exclusively by
CompressedSender. Video submission belongs to the wrapper; audio goes through its sender. - Envelope
Codec - A codec whose payload travels inside a packet envelope.
- Mouse
Button - A mouse button.
- Packet
Attached - Receiver mode held by
PacketReceiver,AllocatedReceiver<PacketAttached>and theirKvmReceiverviews. Packet capture reserves video, audio, metadata and event capture for the packet owner and its KVM view. - Packet
Item - What one
PacketReceiver::capture_anycall produced. - Packet
Item Ref - One borrowed packet, decoded frame, metadata frame, or receiver event.
- Passthrough
Preset - Which compressed formats a
PacketReceiverpasses through. - Queue
Attached - Sender mode held exclusively by
QueuedSender. It submits video and sends both uncompressed and compressed audio. - Queued
Video Frame - A video frame a
QueuedSendercan send. - Received
Audio - Audio from a
PacketReceiver: a codec packet when the source’s format is one the preset passes through, decoded samples otherwise. - Received
Audio Ref - Borrowed audio returned by a packet receiver.
- Received
Video - Video from a
PacketReceiver: a codec packet when the source’s format is one the preset passes through, a decoded frame otherwise. - Received
Video Ref - Borrowed video returned by a packet receiver, retaining its native buffer.
- Submitted
Video - A video frame that was submitted asynchronously and that the SDK has finished with.
- Video
Codec - A compressed video codec.
- Wheel
Axis - 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§
- AvSync
Frame - A video frame
AvSyncVideo::newaccepts: aVideoFrameRefcaptured from a receiver, such as the oneAvSync::receiverlends, or an ownedVideoFrame. - Compressed
Audio Send Mode - Sealed sender modes that send compressed audio: compressed and queued. Their constructors require an Advanced runtime.
- External
Allocation - Memory from the application’s own pool, lent to the SDK for one frame.
- External
Pool - A pool that reclaims exclusive blocks lent through
AllocationBuffer::from_pool. - Packet
Format - A compressed packet’s checked media format.
- Receive
Allocator - A policy that supplies the memory received frames are written into.