pub struct SpatialLayerConfig {
pub layer_id: u8,
pub width_scale: f32,
pub height_scale: f32,
pub bitrate_fraction: f32,
}Expand description
Configuration for a single spatial layer.
Fields§
§layer_id: u8Layer identifier (0 = lowest resolution).
width_scale: f32Width scale relative to full resolution (0.0-1.0).
height_scale: f32Height scale relative to full resolution (0.0-1.0).
bitrate_fraction: f32Fraction of total bitrate allocated to this layer.
Trait Implementations§
Source§impl Clone for SpatialLayerConfig
impl Clone for SpatialLayerConfig
Source§fn clone(&self) -> SpatialLayerConfig
fn clone(&self) -> SpatialLayerConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SpatialLayerConfig
impl RefUnwindSafe for SpatialLayerConfig
impl Send for SpatialLayerConfig
impl Sync for SpatialLayerConfig
impl Unpin for SpatialLayerConfig
impl UnsafeUnpin for SpatialLayerConfig
impl UnwindSafe for SpatialLayerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more