pub trait BaseTransformExtManual: 'static {
fn allocator(&self) -> (Option<Allocator>, AllocationParams);
fn segment(&self) -> Segment;
fn sink_pad(&self) -> &Pad;
fn src_pad(&self) -> &Pad;
}
Required Methods§
sourcefn allocator(&self) -> (Option<Allocator>, AllocationParams)
fn allocator(&self) -> (Option<Allocator>, AllocationParams)
Lets BaseTransform
sub-classes know the memory allocator
used by the base class and its params
.
Unref the allocator
after use.
Returns
allocator
the gst::Allocator
used
params
the gst::AllocationParams
of allocator