[][src]Trait gstreamer_base::AggregatorPadExt

pub trait AggregatorPadExt: 'static {
    fn drop_buffer(&self) -> bool;
fn has_buffer(&self) -> bool;
fn is_eos(&self) -> bool;
fn peek_buffer(&self) -> Option<Buffer>;
fn pop_buffer(&self) -> Option<Buffer>;
fn get_property_emit_signals(&self) -> bool;
fn set_property_emit_signals(&self, emit_signals: bool);
fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all AggregatorPad methods.

Feature: v1_14

Implementors

AggregatorPad

Required methods

fn drop_buffer(&self) -> bool

Drop the buffer currently queued in self.

Feature: v1_14

Returns

TRUE if there was a buffer queued in self, or FALSE if not.

fn has_buffer(&self) -> bool

This checks if a pad has a buffer available that will be returned by a call to AggregatorPadExt::peek_buffer or AggregatorPadExt::pop_buffer.

Feature: v1_14_1

Returns

true if the pad has a buffer available as the next thing.

fn is_eos(&self) -> bool

Feature: v1_14

Returns

true if the pad is EOS, otherwise false.

fn peek_buffer(&self) -> Option<Buffer>

Feature: v1_14

Returns

A reference to the buffer in self or NULL if no buffer was queued. You should unref the buffer after usage.

fn pop_buffer(&self) -> Option<Buffer>

Steal the ref to the buffer currently queued in self.

Feature: v1_14

Returns

The buffer in self or NULL if no buffer was queued. You should unref the buffer after usage.

fn get_property_emit_signals(&self) -> bool

Enables the emission of signals such as AggregatorPad::buffer-consumed

Feature: v1_16

fn set_property_emit_signals(&self, emit_signals: bool)

Enables the emission of signals such as AggregatorPad::buffer-consumed

Feature: v1_16

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

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

Loading content...

Implementors

impl<O: IsA<AggregatorPad>> AggregatorPadExt for O[src]

Loading content...