pub struct SpatialResizeParams {
pub width: u32,
pub height: u32,
pub resize_up_thresh: u32,
pub resize_down_thresh: u32,
}Expand description
If spatial resampling is enabled this specifies the size of the encoded frame.
Fields§
§width: u32Internal coded frame width.
height: u32Internal coded frame height.
resize_up_thresh: u32Spatial resampling up watermark.
This threshold is described as a percentage of the target data buffer. When the data buffer rises above this percentage of fullness, the encoder will step up to a higher resolution version of the frame.
resize_down_thresh: u32Spatial resampling down watermark.
This threshold is described as a percentage of the target data buffer. When the data buffer falls below this percentage of fullness, the encoder will step down to a lower resolution version of the frame.
Implementations§
Source§impl SpatialResizeParams
impl SpatialResizeParams
Sourcepub fn default_for_codec(codec: CodecId) -> Result<Self>
pub fn default_for_codec(codec: CodecId) -> Result<Self>
Constructs a new set of resize params pre-populated with the defaults employed by the specific codec.
Trait Implementations§
Source§impl Clone for SpatialResizeParams
impl Clone for SpatialResizeParams
Source§fn clone(&self) -> SpatialResizeParams
fn clone(&self) -> SpatialResizeParams
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 moreSource§impl Debug for SpatialResizeParams
impl Debug for SpatialResizeParams
Source§impl Hash for SpatialResizeParams
impl Hash for SpatialResizeParams
Source§impl Ord for SpatialResizeParams
impl Ord for SpatialResizeParams
Source§fn cmp(&self, other: &SpatialResizeParams) -> Ordering
fn cmp(&self, other: &SpatialResizeParams) -> 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 SpatialResizeParams
impl PartialEq for SpatialResizeParams
Source§impl PartialOrd for SpatialResizeParams
impl PartialOrd for SpatialResizeParams
impl Copy for SpatialResizeParams
impl Eq for SpatialResizeParams
impl StructuralPartialEq for SpatialResizeParams
Auto Trait Implementations§
impl Freeze for SpatialResizeParams
impl RefUnwindSafe for SpatialResizeParams
impl Send for SpatialResizeParams
impl Sync for SpatialResizeParams
impl Unpin for SpatialResizeParams
impl UnwindSafe for SpatialResizeParams
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