Struct gstreamer_audio::AudioConverterConfig
source · pub struct AudioConverterConfig(_);Implementations
sourceimpl AudioConverterConfig
impl AudioConverterConfig
pub fn new() -> Self
pub fn set_dither_method(&mut self, v: AudioDitherMethod)
pub fn dither_method(&self) -> AudioDitherMethod
pub fn set_noise_shaping_method(&mut self, v: AudioNoiseShapingMethod)
pub fn noise_shaping_method(&self) -> AudioNoiseShapingMethod
pub fn set_quantization(&mut self, v: u32)
pub fn quantization(&self) -> u32
pub fn set_resampler_method(&mut self, v: AudioResamplerMethod)
pub fn resampler_method(&self) -> AudioResamplerMethod
pub fn set_mix_matrix(&mut self, v: &[impl AsRef<[f32]>])
pub fn mix_matrix(&self) -> Vec<Vec<f32>>ⓘ
pub fn set_dither_threshold(&mut self, v: u32)
Available on crate feature
v1_22 only.pub fn dither_threshold(&self) -> u32
Available on crate feature
v1_22 only.Methods from Deref<Target = StructureRef>
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T>(
&'a self,
name: &str
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional<'a, T>(
&'a self,
name: &str
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value(&self, name: &str) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T>(
&'a self,
name: Quark
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional_by_quark<'a, T>(
&'a self,
name: Quark
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value_by_quark(
&self,
name: Quark
) -> Result<&SendValue, GetError<Infallible>>
pub fn set<T>(&mut self, name: &str, value: T)where
T: ToSendValue + Sync,
pub fn set_value(&mut self, name: &str, value: SendValue)
pub fn set_by_quark<T>(&mut self, name: Quark, value: T)where
T: ToSendValue + Sync,
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn name<'a>(&self) -> &'a str
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: &str)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: &str) -> bool
pub fn has_field_with_type(&self, field: &str, type_: Type) -> bool
pub fn has_field_by_quark(&self, field: Quark) -> bool
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
pub fn remove_field(&mut self, field: &str)
pub fn remove_fields(&mut self, fields: &[&str])
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_>
pub fn iter(&self) -> Iter<'_>
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a str>
pub fn n_fields(&self) -> u32
pub fn can_intersect(&self, other: &StructureRef) -> bool
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
pub fn is_subset(&self, superset: &StructureRef) -> bool
pub fn fixate(&mut self)
pub fn fixate_field(&mut self, name: &str) -> bool
pub fn fixate_field_bool(&mut self, name: &str, target: bool) -> bool
pub fn fixate_field_str(&mut self, name: &str, target: &str) -> bool
pub fn fixate_field_nearest_double(&mut self, name: &str, target: f64) -> bool
pub fn fixate_field_nearest_fraction<T>(&mut self, name: &str, target: T) -> boolwhere
T: Into<Fraction>,
pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool
pub fn serialize(&self, flags: SerializeFlags) -> GString
Available on crate feature
v1_20 only.pub fn foreach<F>(&self, func: F) -> boolwhere
F: FnMut(Quark, &Value) -> ControlFlow<(), ()>,
pub fn map_in_place<F>(&mut self, func: F) -> boolwhere
F: FnMut(Quark, &mut Value) -> ControlFlow<(), ()>,
pub fn filter_map_in_place<F>(&mut self, func: F)where
F: FnMut(Quark, Value) -> Option<Value>,
Trait Implementations
sourceimpl AsMut<StructureRef> for AudioConverterConfig
impl AsMut<StructureRef> for AudioConverterConfig
sourcefn as_mut(&mut self) -> &mut StructureRef
fn as_mut(&mut self) -> &mut StructureRef
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<StructureRef> for AudioConverterConfig
impl AsRef<StructureRef> for AudioConverterConfig
sourcefn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for AudioConverterConfig
impl Clone for AudioConverterConfig
sourcefn clone(&self) -> AudioConverterConfig
fn clone(&self) -> AudioConverterConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AudioConverterConfig
impl Debug for AudioConverterConfig
sourceimpl Default for AudioConverterConfig
impl Default for AudioConverterConfig
sourceimpl Deref for AudioConverterConfig
impl Deref for AudioConverterConfig
type Target = StructureRef
type Target = StructureRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &StructureRef
fn deref(&self) -> &StructureRef
Dereferences the value.
sourceimpl DerefMut for AudioConverterConfig
impl DerefMut for AudioConverterConfig
sourcefn deref_mut(&mut self) -> &mut StructureRef
fn deref_mut(&mut self) -> &mut StructureRef
Mutably dereferences the value.
sourceimpl From<AudioConverterConfig> for Structure
impl From<AudioConverterConfig> for Structure
sourcefn from(v: AudioConverterConfig) -> Self
fn from(v: AudioConverterConfig) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AudioConverterConfig> for AudioConverterConfig
impl PartialEq<AudioConverterConfig> for AudioConverterConfig
sourcefn eq(&self, other: &AudioConverterConfig) -> bool
fn eq(&self, other: &AudioConverterConfig) -> bool
sourceimpl<'a> TryFrom<&'a StructureRef> for AudioConverterConfig
impl<'a> TryFrom<&'a StructureRef> for AudioConverterConfig
sourceimpl TryFrom<Structure> for AudioConverterConfig
impl TryFrom<Structure> for AudioConverterConfig
impl Eq for AudioConverterConfig
impl StructuralEq for AudioConverterConfig
impl StructuralPartialEq for AudioConverterConfig
Auto Trait Implementations
impl RefUnwindSafe for AudioConverterConfig
impl Send for AudioConverterConfig
impl Sync for AudioConverterConfig
impl Unpin for AudioConverterConfig
impl UnwindSafe for AudioConverterConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more