Trait gstreamer_base::prelude::BaseSrcExtManual
source · pub trait BaseSrcExtManual:
Sealed
+ IsA<BaseSrc>
+ 'static {
// Provided methods
fn allocator(&self) -> (Option<Allocator>, AllocationParams) { ... }
fn segment(&self) -> Segment { ... }
fn query_latency(
&self,
) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError> { ... }
fn src_pad(&self) -> &Pad { ... }
}
Provided Methods§
sourcefn allocator(&self) -> (Option<Allocator>, AllocationParams)
fn allocator(&self) -> (Option<Allocator>, AllocationParams)
Lets BaseSrc
sub-classes to know the memory allocator
used by the base class and its params
.
Unref the allocator
after usage.
§Returns
§allocator
the gst::Allocator
used
§params
the gst::AllocationParams
of allocator
fn segment(&self) -> Segment
sourcefn query_latency(
&self,
) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError>
fn query_latency( &self, ) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError>
Query the source for the latency parameters. live
will be true
when self
is
configured as a live source. min_latency
and max_latency
will be set
to the difference between the running time and the timestamp of the first
buffer.
This function is mostly used by subclasses.
§Returns
true
if the query succeeded.
§live
if the source is live
§min_latency
the min latency of the source
§max_latency
the max latency of the source
fn src_pad(&self) -> &Pad
Object Safety§
This trait is not object safe.