#[non_exhaustive]pub enum PassthroughPreset {
Show 15 variants
SpeedHqOnly,
SpeedHq,
SpeedHqBest,
H264,
H264Best,
H264WithAudio,
Hevc,
HevcBest,
HevcWithAudio,
Alpha,
AlphaBest,
AlphaWithAudio,
Protected,
ProtectedBest,
ProtectedWithAudio,
}Expand description
Which compressed formats a PacketReceiver passes through.
A frame in a format the preset names is delivered as the source sent it; any other frame is delivered decoded, so every capture can yield either kind. Decoded video is 8-bit unless the preset is one of the “best” ones, which keep the source’s bit depth.
Whether a preset can be used is
RuntimeFeature::Passthrough:
the headers of an older SDK may not declare every preset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SpeedHqOnly
SpeedHQ only.
SpeedHq
SpeedHQ; other sources are decoded.
SpeedHqBest
As SpeedHq, decoding to the source’s bit depth.
H264
SpeedHQ and H.264.
H264Best
As H264, decoding to the source’s bit depth.
H264WithAudio
As H264, with compressed audio.
Hevc
SpeedHQ, H.264 and HEVC.
HevcBest
As Hevc, decoding to the source’s bit depth.
HevcWithAudio
As Hevc, with compressed audio.
Alpha
SpeedHQ, H.264 and HEVC, including H.264 and HEVC with alpha.
AlphaBest
As Alpha, decoding to the source’s bit depth.
AlphaWithAudio
As Alpha, with compressed audio including Opus.
Protected
As Alpha, for protected streams as well.
ProtectedBest
As Protected, decoding to the source’s bit depth.
ProtectedWithAudio
As Protected, with compressed audio including Opus.