Struct gstreamer::BufferPoolConfig
source · pub struct BufferPoolConfig(_);
Implementations
sourceimpl BufferPoolConfig
impl BufferPoolConfig
pub fn add_option(&mut self, option: &str)
pub fn has_option(&self, option: &str) -> bool
pub fn get_options(&self) -> Vec<String>
pub fn set_params<'a, T: Into<Option<&'a Caps>>>(
&mut self,
caps: T,
size: u32,
min_buffers: u32,
max_buffers: u32
)
pub fn get_params(&self) -> Option<(Option<Caps>, u32, u32, u32)>
pub fn validate_params<'a, T: Into<Option<&'a Caps>>>(
&self,
caps: T,
size: u32,
min_buffers: u32,
max_buffers: u32
) -> bool
Methods from Deref<Target = StructureRef>
pub unsafe fn as_ptr(&self) -> *const GstStructure
pub unsafe fn as_mut_ptr(&self) -> *mut GstStructure
pub fn to_string(&self) -> String
pub fn get<'a, T: FromValueOptional<'a>>(&'a self, name: &str) -> Option<T>
pub fn get_value<'a>(&'a self, name: &str) -> Option<&'_ SendValue>
pub fn set<T: ToSendValue>(&mut self, name: &str, value: &T)
pub fn set_value(&mut self, name: &str, value: SendValue)
pub fn get_name(&self) -> &str
pub fn set_name(&mut self, name: &str)
pub fn has_field(&self, field: &str) -> bool
pub fn has_field_with_type(&self, field: &str, 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<'_>ⓘNotable traits for FieldIterator<'a>impl<'a> Iterator for FieldIterator<'a> type Item = &'a str;
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = (&'a str, &'a SendValue);
pub fn get_nth_field_name(&self, idx: u32) -> Option<&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: Into<Fraction>>(
&mut self,
name: &str,
target: T
) -> bool
pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool
Trait Implementations
sourceimpl AsMut<StructureRef> for BufferPoolConfig
impl AsMut<StructureRef> for BufferPoolConfig
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 BufferPoolConfig
impl AsRef<StructureRef> for BufferPoolConfig
sourcefn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Debug for BufferPoolConfig
impl Debug for BufferPoolConfig
sourceimpl Deref for BufferPoolConfig
impl Deref for BufferPoolConfig
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 BufferPoolConfig
impl DerefMut for BufferPoolConfig
sourcefn deref_mut(&mut self) -> &mut StructureRef
fn deref_mut(&mut self) -> &mut StructureRef
Mutably dereferences the value.
sourceimpl PartialEq<BufferPoolConfig> for BufferPoolConfig
impl PartialEq<BufferPoolConfig> for BufferPoolConfig
sourcefn eq(&self, other: &BufferPoolConfig) -> bool
fn eq(&self, other: &BufferPoolConfig) -> bool
impl Eq for BufferPoolConfig
impl StructuralEq for BufferPoolConfig
impl StructuralPartialEq for BufferPoolConfig
Auto Trait Implementations
impl RefUnwindSafe for BufferPoolConfig
impl Send for BufferPoolConfig
impl Sync for BufferPoolConfig
impl Unpin for BufferPoolConfig
impl UnwindSafe for BufferPoolConfig
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