[][src]Trait gstreamer_base::prelude::AggregatorExt

pub trait AggregatorExt: 'static {
    fn get_buffer_pool(&self) -> Option<BufferPool>;
fn get_latency(&self) -> ClockTime;
fn set_latency(&self, min_latency: ClockTime, max_latency: ClockTime);
fn set_src_caps(&self, caps: &Caps);
fn simple_get_next_time(&self) -> ClockTime;
fn get_property_start_time(&self) -> u64;
fn set_property_start_time(&self, start_time: u64);
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Aggregator methods.

Feature: v1_14

Implementors

Aggregator

Required methods

fn get_buffer_pool(&self) -> Option<BufferPool>

Feature: v1_14

Returns

the instance of the gst::BufferPool used by trans; free it after use it

fn get_latency(&self) -> ClockTime

Retrieves the latency values reported by self in response to the latency query, or GST_CLOCK_TIME_NONE if there is not live source connected and the element will not wait for the clock.

Typically only called by subclasses.

Feature: v1_14

Returns

The latency or GST_CLOCK_TIME_NONE if the element does not sync

fn set_latency(&self, min_latency: ClockTime, max_latency: ClockTime)

Lets Aggregator sub-classes tell the baseclass what their internal latency is. Will also post a LATENCY message on the bus so the pipeline can reconfigure its global latency.

Feature: v1_14

min_latency

minimum latency

max_latency

maximum latency

fn set_src_caps(&self, caps: &Caps)

Sets the caps to be used on the src pad.

Feature: v1_14

caps

The gst::Caps to set on the src pad.

fn simple_get_next_time(&self) -> ClockTime

This is a simple Aggregator::get_next_time implementation that just looks at the gst::Segment on the srcpad of the aggregator and bases the next time on the running time there.

This is the desired behaviour in most cases where you have a live source and you have a dead line based aggregator subclass.

Feature: v1_16

Returns

The running time based on the position

fn get_property_start_time(&self) -> u64

fn set_property_start_time(&self, start_time: u64)

fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Aggregator>> AggregatorExt for O[src]

Loading content...