Skip to main content

PassthroughPreset

Enum PassthroughPreset 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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.

Trait Implementations§

Source§

impl Clone for PassthroughPreset

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PassthroughPreset

Source§

impl Debug for PassthroughPreset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for PassthroughPreset

Source§

impl Hash for PassthroughPreset

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for PassthroughPreset

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PassthroughPreset

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.