Trait gstreamer_base::prelude::AggregatorPadExt [−][src]
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 emits_signals(&self) -> bool; fn set_emit_signals(&self, emit_signals: bool); fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Expand description
Required methods
fn drop_buffer(&self) -> bool
[src]
fn drop_buffer(&self) -> bool
[src]Drop the buffer currently queued in self
.
Returns
TRUE if there was a buffer queued in self
, or FALSE if not.
fn has_buffer(&self) -> bool
[src]
fn has_buffer(&self) -> bool
[src]This is supported on crate feature
v1_14_1
only.This checks if a pad has a buffer available that will be returned by
a call to peek_buffer()
or
pop_buffer()
.
Returns
true
if the pad has a buffer available as the next thing.
fn peek_buffer(&self) -> Option<Buffer>
[src]
fn peek_buffer(&self) -> Option<Buffer>
[src]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>
[src]
fn pop_buffer(&self) -> Option<Buffer>
[src]Steal the ref to the buffer currently queued in self
.
Returns
The buffer in self
or NULL if no buffer was
queued. You should unref the buffer after usage.
fn emits_signals(&self) -> bool
[src]
fn emits_signals(&self) -> bool
[src]This is supported on crate feature
v1_16
only.Enables the emission of signals such as signal::AggregatorPad::buffer-consumed
fn set_emit_signals(&self, emit_signals: bool)
[src]
fn set_emit_signals(&self, emit_signals: bool)
[src]This is supported on crate feature
v1_16
only.Enables the emission of signals such as signal::AggregatorPad::buffer-consumed
fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]This is supported on crate feature
v1_16
only.Implementors
This is supported on crate feature
v1_14
only.This is supported on crate feature
v1_14_1
only.This is supported on crate feature
v1_16
only.This is supported on crate feature
v1_16
only.fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]This is supported on crate feature
v1_16
only.