pub struct ClippingPredictor {
pub mode: ClippingPredictorMode,
pub window_length: i32,
pub reference_window_length: i32,
pub reference_window_delay: i32,
pub clipping_threshold: f32,
pub crest_factor_margin: f32,
pub use_predicted_step: bool,
}Expand description
Enables clipping prediction functionality.
Fields§
§mode: ClippingPredictorModeMode.
window_length: i32Number of frames in the sliding analysis window.
reference_window_length: i32Number of frames in the sliding reference window.
reference_window_delay: i32Reference window delay (unit: number of frames).
clipping_threshold: f32Clipping prediction threshold (dBFS).
crest_factor_margin: f32Crest factor drop threshold (dB).
use_predicted_step: boolIf true, the recommended clipped level step is used to modify the analog gain. Otherwise, the predictor runs without affecting the analog gain.
Trait Implementations§
Source§impl Clone for ClippingPredictor
impl Clone for ClippingPredictor
Source§fn clone(&self) -> ClippingPredictor
fn clone(&self) -> ClippingPredictor
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 ClippingPredictor
impl Debug for ClippingPredictor
Source§impl Default for ClippingPredictor
impl Default for ClippingPredictor
Source§impl<'de> Deserialize<'de> for ClippingPredictorwhere
ClippingPredictor: Default,
impl<'de> Deserialize<'de> for ClippingPredictorwhere
ClippingPredictor: Default,
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 JsonSchema for ClippingPredictor
impl JsonSchema for ClippingPredictor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ClippingPredictor
impl PartialEq for ClippingPredictor
Source§impl Serialize for ClippingPredictor
impl Serialize for ClippingPredictor
impl Copy for ClippingPredictor
impl StructuralPartialEq for ClippingPredictor
Auto Trait Implementations§
impl Freeze for ClippingPredictor
impl RefUnwindSafe for ClippingPredictor
impl Send for ClippingPredictor
impl Sync for ClippingPredictor
impl Unpin for ClippingPredictor
impl UnsafeUnpin for ClippingPredictor
impl UnwindSafe for ClippingPredictor
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