pub enum ScalabilityMode {
Show 40 variants
None,
L1T2,
L1T2h,
L1T3,
L1T3h,
L2T1,
L2T1h,
L2T1Key,
L2T2,
L2T2h,
L2T2Key,
L2T2KeyShift,
L2T3,
L2T3h,
L2T3Key,
L2T3KeyShift,
L3T1,
L3T1h,
L3T1Key,
L3T2,
L3T2h,
L3T2Key,
L3T2KeyShift,
L3T3,
L3T3h,
L3T3Key,
L3T3KeyShift,
S2T1,
S2T1h,
S2T2,
S2T2h,
S2T3,
S2T3h,
S3T1,
S3T1h,
S3T2,
S3T2h,
S3T3,
S3T3h,
Custom {
scalability_mode: String,
spatial_layers: NonZeroU8,
temporal_layers: NonZeroU8,
ksvc: bool,
},
}
Expand description
Scalability mode.
Most modes match webrtc-svc, but custom ones are also supported by mediasoup.
Variants§
None
No scalability used, there is just one spatial and one temporal layer.
L1T2
L1T2.
L1T2h
L1T2h.
L1T3
L1T3.
L1T3h
L1T3h.
L2T1
L2T1.
L2T1h
L2T1h.
L2T1Key
L2T1_KEY.
L2T2
L2T2.
L2T2h
L2T2h.
L2T2Key
L2T2_KEY.
L2T2KeyShift
L2T2_KEY_SHIFT.
L2T3
L2T3.
L2T3h
L2T3h.
L2T3Key
L2T3_KEY.
L2T3KeyShift
L2T3_KEY_SHIFT.
L3T1
L3T1.
L3T1h
L3T1h.
L3T1Key
L3T1_KEY.
L3T2
L3T2.
L3T2h
L3T2h.
L3T2Key
L3T2_KEY.
L3T2KeyShift
L3T2_KEY_SHIFT.
L3T3
L3T3.
L3T3h
L3T3h.
L3T3Key
L3T3_KEY.
L3T3KeyShift
L3T3_KEY_SHIFT.
S2T1
S2T1.
S2T1h
S2T1h.
S2T2
S2T2.
S2T2h
S2T2h.
S2T3
S2T3.
S2T3h
S2T3h.
S3T1
S3T1.
S3T1h
S3T1h.
S3T2
S3T2.
S3T2h
S3T2h.
S3T3
S3T3.
S3T3h
S3T3h.
Custom
Custom scalability mode not defined in webrtc-svc.
Implementations§
Source§impl ScalabilityMode
impl ScalabilityMode
Sourcepub fn spatial_layers(&self) -> NonZeroU8
pub fn spatial_layers(&self) -> NonZeroU8
Number of spatial layers.
Sourcepub fn temporal_layers(&self) -> NonZeroU8
pub fn temporal_layers(&self) -> NonZeroU8
Number of temporal layers.
Trait Implementations§
Source§impl Clone for ScalabilityMode
impl Clone for ScalabilityMode
Source§fn clone(&self) -> ScalabilityMode
fn clone(&self) -> ScalabilityMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScalabilityMode
impl Debug for ScalabilityMode
Source§impl Default for ScalabilityMode
impl Default for ScalabilityMode
Source§impl<'de> Deserialize<'de> for ScalabilityMode
impl<'de> Deserialize<'de> for ScalabilityMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ScalabilityMode
impl Display for ScalabilityMode
Source§impl FromStr for ScalabilityMode
impl FromStr for ScalabilityMode
Source§impl Hash for ScalabilityMode
impl Hash for ScalabilityMode
Source§impl Ord for ScalabilityMode
impl Ord for ScalabilityMode
Source§fn cmp(&self, other: &ScalabilityMode) -> Ordering
fn cmp(&self, other: &ScalabilityMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScalabilityMode
impl PartialEq for ScalabilityMode
Source§impl PartialOrd for ScalabilityMode
impl PartialOrd for ScalabilityMode
Source§impl Serialize for ScalabilityMode
impl Serialize for ScalabilityMode
impl Eq for ScalabilityMode
impl StructuralPartialEq for ScalabilityMode
Auto Trait Implementations§
impl Freeze for ScalabilityMode
impl RefUnwindSafe for ScalabilityMode
impl Send for ScalabilityMode
impl Sync for ScalabilityMode
impl Unpin for ScalabilityMode
impl UnwindSafe for ScalabilityMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more