Struct gstreamer::query::Allocation
source · [−]pub struct Allocation<T>(_);
Implementations
pub fn allocation_params(&self) -> Vec<(Option<Allocator>, AllocationParams)>ⓘ
pub fn allocation_pools(&self) -> Vec<(Option<BufferPool>, u32, u32, u32)>ⓘ
pub fn allocation_metas(&self) -> Vec<(Type, Option<&StructureRef>)>ⓘ
pub fn add_allocation_pool(
&mut self,
pool: Option<&impl IsA<BufferPool>>,
size: u32,
min_buffers: u32,
max_buffers: u32
)
pub fn set_nth_allocation_pool(
&mut self,
idx: u32,
pool: Option<&impl IsA<BufferPool>>,
size: u32,
min_buffers: u32,
max_buffers: u32
)
pub fn add_allocation_param(
&mut self,
allocator: Option<&impl IsA<Allocator>>,
params: AllocationParams
)
pub fn set_nth_allocation_param(
&mut self,
idx: u32,
allocator: Option<&impl IsA<Allocator>>,
params: AllocationParams
)
Methods from Deref<Target = QueryRef>
Trait Implementations
Performs the conversion.