#[non_exhaustive]pub enum ReceiverColorFormat {
BgrxBgra,
UyvyBgra,
RgbxRgba,
UyvyRgba,
Fastest,
Best,
Best444,
}Expand description
Operational color formats for received video frames.
These values are receiver configuration modes that the NDI SDK can use for
normal receive operation. SDK Max sentinel values are intentionally not
exposed in safe Rust because they are placeholders, not valid receiver
modes.
This enum is marked #[non_exhaustive] so future SDK receiver modes can be
added without another avoidable public enum break. Downstream match
expressions should include a wildcard arm.
Choose an explicit operational value such as ReceiverColorFormat::Fastest,
ReceiverColorFormat::Best, ReceiverColorFormat::RgbxRgba, or
ReceiverColorFormat::BgrxBgra for receiver configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BgrxBgra
BGRX for opaque video and BGRA when the source has alpha.
UyvyBgra
UYVY for opaque video and BGRA when the source has alpha.
RgbxRgba
RGBX for opaque video and RGBA when the source has alpha.
UyvyRgba
UYVY for opaque video and RGBA when the source has alpha.
Fastest
The format the SDK can deliver with the least conversion work. Individual fields are delivered even if video fields were disabled.
Best
The format closest to the source’s native precision, including 16-bit formats. Individual fields are delivered even if video fields were disabled.
Best444
Preserve native planar 4:4:4 color when available. Requires NDI 6.4.
Individual fields are delivered, like Best, even if video fields were disabled.