Struct gstreamer_base::AggregatorPad [−][src]
pub struct AggregatorPad(_);
Pads managed by a crate::Aggregator
subclass.
This class used to live in gst-plugins-bad and was moved to core.
Implements
crate::prelude::AggregatorPadExt
, gst::prelude::PadExt
, gst::prelude::ObjectExt
, trait@glib::object::ObjectExt
, crate::prelude::AggregatorPadExtManual
Trait Implementations
impl Clone for AggregatorPad
[src]
impl Clone for AggregatorPad
[src]v1_14
only.fn clone(&self) -> AggregatorPad
[src]
fn clone(&self) -> AggregatorPad
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AggregatorPad
[src]
impl Debug for AggregatorPad
[src]v1_14
only.impl Hash for AggregatorPad
[src]
impl Hash for AggregatorPad
[src]v1_14
only.impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad
[src]
impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad
[src]v1_14
only.fn class_init(klass: &mut Class<Self>)
[src]
fn class_init(klass: &mut Class<Self>)
[src]Override the virtual methods of this class for the given subclass and do other class initialization. Read more
fn instance_init(instance: &mut InitializingObject<T>)
[src]
fn instance_init(instance: &mut InitializingObject<T>)
[src]Instance specific initialization. Read more
impl Ord for AggregatorPad
[src]
impl Ord for AggregatorPad
[src]v1_14
only.impl ParentClassIs for AggregatorPad
[src]
impl ParentClassIs for AggregatorPad
[src]v1_14
only.impl<T: ObjectType> PartialEq<T> for AggregatorPad
[src]
impl<T: ObjectType> PartialEq<T> for AggregatorPad
[src]v1_14
only.impl<T: ObjectType> PartialOrd<T> for AggregatorPad
[src]
impl<T: ObjectType> PartialOrd<T> for AggregatorPad
[src]v1_14
only.fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StaticType for AggregatorPad
[src]
impl StaticType for AggregatorPad
[src]v1_14
only.fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl Eq for AggregatorPad
[src]
v1_14
only.impl IsA<Object> for AggregatorPad
[src]
v1_14
only.impl IsA<Pad> for AggregatorPad
[src]
v1_14
only.impl Send for AggregatorPad
[src]
v1_14
only.impl StructuralEq for AggregatorPad
[src]
v1_14
only.impl Sync for AggregatorPad
[src]
v1_14
only.Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T where
T: ObjectType,
[src]
impl<T> Cast for T where
T: ObjectType,
[src]fn upcast<T>(self) -> T where
Self: IsA<T>,
T: ObjectType,
[src]
fn upcast<T>(self) -> T where
Self: IsA<T>,
T: ObjectType,
[src]Upcasts an object to a superclass or interface T
. Read more
fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
[src]
fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
[src]Upcasts an object to a reference of its superclass or interface T
. Read more
fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
[src]
fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
[src]Tries to downcast to a subclass or interface implementor T
. Read more
fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
[src]
fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
[src]Tries to downcast to a reference of its subclass or interface implementor T
. Read more
fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
[src]
fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
[src]Tries to cast to an object of type T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
[src]
fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
[src]Tries to cast to reference to an object of type T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
[src]
unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
[src]Casts to T
unconditionally. Read more
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
[src]
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
[src]Casts to &T
unconditionally. Read more
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src]pub fn set_property_from_str(&self, name: &str, value: &str)
[src]
impl<O> GstObjectExt for O where
O: IsA<Object>,
[src]
impl<O> GstObjectExt for O where
O: IsA<Object>,
[src]pub fn add_control_binding<P>(&self, binding: &P) -> Result<(), BoolError> where
P: IsA<ControlBinding>,
[src]
pub fn add_control_binding<P>(&self, binding: &P) -> Result<(), BoolError> where
P: IsA<ControlBinding>,
[src]Attach the crate::ControlBinding
to the object. If there already was a
crate::ControlBinding
for this property it will be replaced. Read more
pub fn default_error(&self, error: &Error, debug: Option<&str>)
[src]
pub fn default_error(&self, error: &Error, debug: Option<&str>)
[src]A default error function that uses g_printerr()
to display the error message
and the optional debug string.. Read more
pub fn control_binding(&self, property_name: &str) -> Option<ControlBinding>
[src]
pub fn control_binding(&self, property_name: &str) -> Option<ControlBinding>
[src]Gets the corresponding crate::ControlBinding
for the property. This should be
unreferenced again after use. Read more
pub fn control_rate(&self) -> ClockTime
[src]
pub fn control_rate(&self) -> ClockTime
[src]Obtain the control-rate for this self
. Audio processing crate::Element
objects will use this rate to sub-divide their processing loop and call
Self::sync_values()
in between. The length of the processing segment
should be up to control
-rate nanoseconds. Read more
pub fn parent(&self) -> Option<Object>
[src]
pub fn parent(&self) -> Option<Object>
[src]Returns the parent of self
. This function increases the refcount
of the parent object so you should [Self::unref()
] it after usage. Read more
pub fn path_string(&self) -> GString
[src]
pub fn path_string(&self) -> GString
[src]Generates a string describing the path of self
in
the object hierarchy. Only useful (or used) for debugging. Read more
pub fn value(&self, property_name: &str, timestamp: ClockTime) -> Option<Value>
[src]
pub fn value(&self, property_name: &str, timestamp: ClockTime) -> Option<Value>
[src]Gets the value for the given controlled property at the requested time. Read more
pub fn has_active_control_bindings(&self) -> bool
[src]
pub fn has_active_control_bindings(&self) -> bool
[src]Check if the self
has active controlled properties. Read more
pub fn has_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src]
pub fn has_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src]Check if self
has an ancestor ancestor
somewhere up in
the hierarchy. One can e.g. check if a crate::Element
is inside a crate::Pipeline
. Read more
pub fn has_as_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src]
pub fn has_as_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src]Check if self
has an ancestor ancestor
somewhere up in
the hierarchy. One can e.g. check if a crate::Element
is inside a crate::Pipeline
. Read more
pub fn has_as_parent<P>(&self, parent: &P) -> bool where
P: IsA<Object>,
[src]
pub fn has_as_parent<P>(&self, parent: &P) -> bool where
P: IsA<Object>,
[src]Check if parent
is the parent of self
.
E.g. a crate::Element
can check if it owns a given crate::Pad
. Read more
pub fn remove_control_binding<P>(&self, binding: &P) -> bool where
P: IsA<ControlBinding>,
[src]
pub fn remove_control_binding<P>(&self, binding: &P) -> bool where
P: IsA<ControlBinding>,
[src]Removes the corresponding crate::ControlBinding
. If it was the
last ref of the binding, it will be disposed. Read more
pub fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
[src]
pub fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
[src]This function is used to disable the control bindings on a property for
some time, i.e. Self::sync_values()
will do nothing for the
property. Read more
pub fn set_control_bindings_disabled(&self, disabled: bool)
[src]
pub fn set_control_bindings_disabled(&self, disabled: bool)
[src]This function is used to disable all controlled properties of the self
for
some time, i.e. Self::sync_values()
will do nothing. Read more
pub fn set_control_rate(&self, control_rate: ClockTime)
[src]
pub fn set_control_rate(&self, control_rate: ClockTime)
[src]Change the control-rate for this self
. Audio processing crate::Element
objects will use this rate to sub-divide their processing loop and call
Self::sync_values()
in between. The length of the processing segment
should be up to control
-rate nanoseconds. Read more
pub fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError> where
P: IsA<Object>,
[src]
pub fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError> where
P: IsA<Object>,
[src]Sets the parent of self
to parent
. The object’s reference count will
be incremented, and any floating reference will be removed (see [crate::Object::ref_sink()
]). Read more
pub fn suggest_next_sync(&self) -> ClockTime
[src]
pub fn suggest_next_sync(&self) -> ClockTime
[src]Returns a suggestion for timestamps where buffers should be split to get best controller results. Read more
pub fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
[src]
pub fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
[src]Sets the properties of the object, according to the GstControlSources
that
(maybe) handle them and for the given timestamp. Read more
pub fn unparent(&self)
[src]
pub fn unparent(&self)
[src]Clear the parent of self
, removing the associated reference.
This function decreases the refcount of self
. Read more
pub fn connect_parent_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O) + Send + Sync,
[src]
F: 'static + Fn(&O) + Send + Sync,
impl<O> GstObjectExtManual for O where
O: IsA<Object>,
[src]
impl<O> GstObjectExtManual for O where
O: IsA<Object>,
[src]pub fn connect_deep_notify<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O, &Object, &ParamSpec) + Send + Sync,
[src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O, &Object, &ParamSpec) + Send + Sync,
pub fn set_object_flags(&self, flags: ObjectFlags)
[src]
pub fn unset_object_flags(&self, flags: ObjectFlags)
[src]
pub fn object_flags(&self) -> ObjectFlags
[src]
pub fn g_value_array(
&self,
property_name: &str,
timestamp: ClockTime,
interval: ClockTime,
values: &mut [Value]
) -> Result<(), BoolError>
[src]
&self,
property_name: &str,
timestamp: ClockTime,
interval: ClockTime,
values: &mut [Value]
) -> Result<(), BoolError>
impl<T> ObjectExt for T where
T: ObjectType,
[src]
impl<T> ObjectExt for T where
T: ObjectType,
[src]pub fn is<U>(&self) -> bool where
U: StaticType,
[src]
pub fn is<U>(&self) -> bool where
U: StaticType,
[src]Returns true
if the object is an instance of (can be cast to) T
.
pub fn type_(&self) -> Type
[src]
pub fn object_class(&self) -> &Class<Object>
[src]
pub fn class(&self) -> &Class<T> where
T: IsClass,
[src]
T: IsClass,
pub fn class_of<U>(&self) -> Option<&Class<U>> where
U: IsClass,
[src]
U: IsClass,
pub fn interface<U>(&self) -> Option<InterfaceRef<'_, U>> where
U: IsInterface,
[src]
U: IsInterface,
pub fn set_properties(
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
[src]
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
pub fn set_properties_from_value(
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
[src]
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
pub fn set_property<'a, N, V>(
&self,
property_name: N,
value: V
) -> Result<(), BoolError> where
V: ToValue,
N: Into<&'a str>,
[src]
&self,
property_name: N,
value: V
) -> Result<(), BoolError> where
V: ToValue,
N: Into<&'a str>,
pub fn set_property_from_value<'a, N>(
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
[src]
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
pub fn property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>> where
QD: 'static,
[src]
pub unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>> where
QD: 'static,
[src]Safety Read more
pub unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD> where
QD: 'static,
[src]
pub unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD> where
QD: 'static,
[src]Safety Read more
pub unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>> where
QD: 'static,
[src]
pub unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>> where
QD: 'static,
[src]Safety Read more
pub unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD> where
QD: 'static,
[src]
pub unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD> where
QD: 'static,
[src]Safety Read more
pub fn block_signal(&self, handler_id: &SignalHandlerId)
[src]
pub fn unblock_signal(&self, handler_id: &SignalHandlerId)
[src]
pub fn stop_signal_emission(&self, signal_name: &str)
[src]
pub fn disconnect(&self, handler_id: SignalHandlerId)
[src]
pub fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
[src]
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
pub fn connect_notify_local<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
[src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
pub unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
[src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
pub fn notify<'a, N>(&self, property_name: N) where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn notify_by_pspec(&self, pspec: &ParamSpec)
[src]
pub fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn property_type<'a, N>(&self, property_name: N) -> Option<Type> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn list_properties(&self) -> Vec<ParamSpec, Global>
[src]
pub fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
pub fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
[src]
pub fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
[src]Same as connect
but takes a SignalId
instead of a signal name.
pub fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
pub fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
[src]
pub fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
[src]Same as connect_local
but takes a SignalId
instead of a signal name.
pub unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
pub unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
[src]
pub unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
[src]Same as connect_unsafe
but takes a SignalId
instead of a signal name.
pub fn emit(
&self,
signal_id: SignalId,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
[src]
pub fn emit(
&self,
signal_id: SignalId,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
[src]Emit signal by signal id.
pub fn emit_with_details(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
[src]
pub fn emit_with_details(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
[src]Emit signal with details by signal id.
pub fn emit_by_name<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
[src]
pub fn emit_by_name<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
[src]Emit signal by it’s name.
pub fn downgrade(&self) -> WeakRef<T>
[src]
pub fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
[src]
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
pub fn ref_count(&self) -> u32
[src]
pub fn emit_with_values(
&self,
signal_id: SignalId,
args: &[Value]
) -> Result<Option<Value>, BoolError>
[src]
pub fn emit_with_values(
&self,
signal_id: SignalId,
args: &[Value]
) -> Result<Option<Value>, BoolError>
[src]Same as emit
but takes Value
for the arguments.
impl<O> PadExt for O where
O: IsA<Pad>,
[src]
impl<O> PadExt for O where
O: IsA<Pad>,
[src]pub fn activate_mode(
&self,
mode: PadMode,
active: bool
) -> Result<(), BoolError>
[src]
pub fn activate_mode(
&self,
mode: PadMode,
active: bool
) -> Result<(), BoolError>
[src]Activates or deactivates the given pad in mode
via dispatching to the
pad’s activatemodefunc. For use from within pad activation functions only. Read more
pub fn can_link<P>(&self, sinkpad: &P) -> bool where
P: IsA<Pad>,
[src]
pub fn can_link<P>(&self, sinkpad: &P) -> bool where
P: IsA<Pad>,
[src]Checks if the source pad and the sink pad are compatible so they can be linked. Read more
pub fn check_reconfigure(&self) -> bool
[src]
pub fn check_reconfigure(&self) -> bool
[src]pub fn create_stream_id<P>(
&self,
parent: &P,
stream_id: Option<&str>
) -> GString where
P: IsA<Element>,
[src]
pub fn create_stream_id<P>(
&self,
parent: &P,
stream_id: Option<&str>
) -> GString where
P: IsA<Element>,
[src]Creates a stream-id for the source crate::Pad
self
by combining the
upstream information with the optional stream_id
of the stream
of self
. self
must have a parent crate::Element
and which must have zero
or one sinkpad. stream_id
can only be None
if the parent element
of self
has only a single source pad. Read more
pub fn forward<P>(&self, forward: P) -> bool where
P: FnMut(&Pad) -> bool,
[src]
pub fn forward<P>(&self, forward: P) -> bool where
P: FnMut(&Pad) -> bool,
[src]Calls forward
for all internally linked pads of self
. This function deals with
dynamically changing internal pads and will make sure that the forward
function is only called once for each pad. Read more
pub fn allowed_caps(&self) -> Option<Caps>
[src]
pub fn allowed_caps(&self) -> Option<Caps>
[src]Gets the capabilities of the allowed media types that can flow through
self
and its peer. Read more
pub fn current_caps(&self) -> Option<Caps>
[src]
pub fn current_caps(&self) -> Option<Caps>
[src]Gets the capabilities currently configured on self
with the last
crate::EventType::Caps
event. Read more
pub fn direction(&self) -> PadDirection
[src]
pub fn direction(&self) -> PadDirection
[src]Gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK. Read more
pub fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>
[src]
pub fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>
[src]Gets the crate::FlowReturn
return from the last data passed by this pad.
pub fn offset(&self) -> i64
[src]
pub fn offset(&self) -> i64
[src]Get the offset applied to the running time of self
. self
has to be a source
pad. Read more
pub fn pad_template(&self) -> Option<PadTemplate>
[src]
pub fn pad_template(&self) -> Option<PadTemplate>
[src]Gets the template for self
. Read more
pub fn pad_template_caps(&self) -> Caps
[src]
pub fn pad_template_caps(&self) -> Caps
[src]Gets the capabilities for self
’s template. Read more
pub fn parent_element(&self) -> Option<Element>
[src]
pub fn parent_element(&self) -> Option<Element>
[src]Gets the parent of self
, cast to a crate::Element
. If a self
has no parent or
its parent is not an element, return None
. Read more
pub fn peer(&self) -> Option<Pad>
[src]
pub fn peer(&self) -> Option<Pad>
[src]Gets the peer of self
. This function refs the peer pad so
you need to unref it after use. Read more
pub fn single_internal_link(&self) -> Option<Pad>
[src]
pub fn single_internal_link(&self) -> Option<Pad>
[src]v1_18
only.If there is a single internal link of the given pad, this function will return it. Otherwise, it will return NULL. Read more
pub fn sticky_event(&self, event_type: EventType, idx: u32) -> Option<Event>
[src]
pub fn sticky_event(&self, event_type: EventType, idx: u32) -> Option<Event>
[src]Returns a new reference of the sticky event of type event_type
from the event. Read more
pub fn stream(&self) -> Option<Stream>
[src]
pub fn stream(&self) -> Option<Stream>
[src]v1_10
only.Returns the current crate::Stream
for the self
, or None
if none has been
set yet, i.e. the pad has not received a stream-start event yet. Read more
pub fn task_state(&self) -> TaskState
[src]
pub fn task_state(&self) -> TaskState
[src]v1_12
only.Get self
task state. If no task is currently
set, crate::TaskState::Stopped
is returned. Read more
pub fn has_current_caps(&self) -> bool
[src]
pub fn has_current_caps(&self) -> bool
[src]Check if self
has caps set on it with a crate::EventType::Caps
event. Read more
pub fn is_blocked(&self) -> bool
[src]
pub fn is_blocked(&self) -> bool
[src]Checks if the pad is blocked or not. This function returns the
last requested state of the pad. It is not certain that the pad
is actually blocking at this point (see Self::is_blocking()
). Read more
pub fn is_blocking(&self) -> bool
[src]
pub fn is_blocking(&self) -> bool
[src]Checks if the pad is blocking or not. This is a guaranteed state
of whether the pad is actually blocking on a crate::Buffer
or a crate::Event
. Read more
pub fn link<P>(&self, sinkpad: &P) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]
pub fn link<P>(&self, sinkpad: &P) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]Links the source pad and the sink pad. Read more
pub fn link_full<P>(
&self,
sinkpad: &P,
flags: PadLinkCheck
) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]
pub fn link_full<P>(
&self,
sinkpad: &P,
flags: PadLinkCheck
) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]Links the source pad and the sink pad. Read more
pub fn link_maybe_ghosting<P>(&self, sink: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]
pub fn link_maybe_ghosting<P>(&self, sink: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]v1_10
only.Links self
to sink
, creating any crate::GhostPad
’s in between as necessary. Read more
pub fn link_maybe_ghosting_full<P>(
&self,
sink: &P,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]
pub fn link_maybe_ghosting_full<P>(
&self,
sink: &P,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]v1_10
only.Links self
to sink
, creating any crate::GhostPad
’s in between as necessary. Read more
pub fn mark_reconfigure(&self)
[src]
pub fn mark_reconfigure(&self)
[src]Mark a pad for needing reconfiguration. The next call to
Self::check_reconfigure()
will return true
after this call. Read more
pub fn needs_reconfigure(&self) -> bool
[src]
pub fn needs_reconfigure(&self) -> bool
[src]pub fn pause_task(&self) -> Result<(), BoolError>
[src]
pub fn pause_task(&self) -> Result<(), BoolError>
[src]Pause the task of self
. This function will also wait until the
function executed by the task is finished if this function is not
called from the task function. Read more
pub fn peer_query_accept_caps(&self, caps: &Caps) -> bool
[src]
pub fn peer_query_accept_caps(&self, caps: &Caps) -> bool
[src]pub fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps
[src]
pub fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps
[src]Gets the capabilities of the peer connected to this pad. Similar to
Self::query_caps()
. Read more
pub fn query_accept_caps(&self, caps: &Caps) -> bool
[src]
pub fn query_accept_caps(&self, caps: &Caps) -> bool
[src]Check if the given pad accepts the caps. Read more
pub fn query_caps(&self, filter: Option<&Caps>) -> Caps
[src]
pub fn query_caps(&self, filter: Option<&Caps>) -> Caps
[src]Gets the capabilities this pad can produce or consume.
Note that this method doesn’t necessarily return the caps set by sending a
[crate::Event::new_caps()
] - use [Self::get_current_caps()
] for that instead.
gst_pad_query_caps returns all possible caps a pad can operate with, using
the pad’s CAPS query function, If the query fails, this function will return
filter
, if not None
, otherwise ANY. Read more
pub fn set_active(&self, active: bool) -> Result<(), BoolError>
[src]
pub fn set_active(&self, active: bool) -> Result<(), BoolError>
[src]Activates or deactivates the given pad. Normally called from within core state change functions. Read more
pub fn set_offset(&self, offset: i64)
[src]
pub fn set_offset(&self, offset: i64)
[src]Set the offset that will be applied to the running time of self
. Read more
pub fn stop_task(&self) -> Result<(), BoolError>
[src]
pub fn stop_task(&self) -> Result<(), BoolError>
[src]Stop the task of self
. This function will also make sure that the
function executed by the task will effectively stop if not called
from the GstTaskFunction. Read more
pub fn store_sticky_event(
&self,
event: &Event
) -> Result<FlowSuccess, FlowError>
[src]
pub fn store_sticky_event(
&self,
event: &Event
) -> Result<FlowSuccess, FlowError>
[src]Store the sticky event
on self
Read more
pub fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]
pub fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src]Unlinks the source pad from the sink pad. Will emit the [crate::Pad::unlinked
]
signal on both pads. Read more
pub fn use_fixed_caps(&self)
[src]
pub fn use_fixed_caps(&self)
[src]A helper function you can use that sets the FIXED_CAPS flag This way the default CAPS query will always return the negotiated caps or in case the pad is not negotiated, the padtemplate caps. Read more
pub fn caps(&self) -> Option<Caps>
[src]
pub fn connect_linked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Pad) + Send + Sync,
[src]
pub fn connect_linked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Pad) + Send + Sync,
[src]Signals that a pad has been linked to the peer pad. Read more
pub fn connect_unlinked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Pad) + Send + Sync,
[src]
pub fn connect_unlinked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Pad) + Send + Sync,
[src]Signals that a pad has been unlinked from the peer pad. Read more
pub fn connect_caps_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O) + Send + Sync,
[src]
F: 'static + Fn(&O) + Send + Sync,
pub fn connect_offset_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O) + Send + Sync,
[src]
F: 'static + Fn(&O) + Send + Sync,
impl<O> PadExtManual for O where
O: IsA<Pad>,
[src]
impl<O> PadExtManual for O where
O: IsA<Pad>,
[src]pub fn add_probe<F>(&self, mask: PadProbeType, func: F) -> Option<PadProbeId> where
F: Fn(&O, &mut PadProbeInfo<'_>) -> PadProbeReturn + Send + Sync + 'static,
[src]
F: Fn(&O, &mut PadProbeInfo<'_>) -> PadProbeReturn + Send + Sync + 'static,
pub fn remove_probe(&self, id: PadProbeId)
[src]
pub fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
[src]
pub fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
[src]
pub fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
[src]
pub fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
[src]
pub fn range(&self, offset: u64, size: u32) -> Result<Buffer, FlowError>
[src]
pub fn range_fill(
&self,
offset: u64,
buffer: &mut BufferRef,
size: u32
) -> Result<(), FlowError>
[src]
&self,
offset: u64,
buffer: &mut BufferRef,
size: u32
) -> Result<(), FlowError>
pub fn pull_range(&self, offset: u64, size: u32) -> Result<Buffer, FlowError>
[src]
pub fn pull_range_fill(
&self,
offset: u64,
buffer: &mut BufferRef,
size: u32
) -> Result<(), FlowError>
[src]
&self,
offset: u64,
buffer: &mut BufferRef,
size: u32
) -> Result<(), FlowError>
pub fn query(&self, query: &mut QueryRef) -> bool
[src]
pub fn peer_query(&self, query: &mut QueryRef) -> bool
[src]
pub fn query_default<P>(&self, parent: Option<&P>, query: &mut QueryRef) -> bool where
P: IsA<Object>,
[src]
P: IsA<Object>,
pub fn proxy_query_accept_caps(&self, query: &mut QueryRef) -> bool
[src]
pub fn proxy_query_caps(&self, query: &mut QueryRef) -> bool
[src]
pub fn event_default<P>(&self, parent: Option<&P>, event: Event) -> bool where
P: IsA<Object>,
[src]
P: IsA<Object>,
pub fn push_event(&self, event: Event) -> bool
[src]
pub fn send_event(&self, event: Event) -> bool
[src]
pub fn iterate_internal_links(&self) -> Iterator<Pad>
[src]
pub fn iterate_internal_links_default<P>(
&self,
parent: Option<&P>
) -> Iterator<Pad> where
P: IsA<Object>,
[src]
&self,
parent: Option<&P>
) -> Iterator<Pad> where
P: IsA<Object>,
pub fn stream_lock(&self) -> StreamLock<'_>
[src]
pub unsafe fn set_activate_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) -> Result<(), LoggableError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) -> Result<(), LoggableError> + Send + Sync + 'static,
pub unsafe fn set_activatemode_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, PadMode, bool) -> Result<(), LoggableError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, PadMode, bool) -> Result<(), LoggableError> + Send + Sync + 'static,
pub unsafe fn set_chain_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Buffer) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Buffer) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
pub unsafe fn set_chain_list_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, BufferList) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, BufferList) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
pub unsafe fn set_event_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Event) -> bool + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Event) -> bool + Send + Sync + 'static,
pub unsafe fn set_event_full_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Event) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Event) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
pub unsafe fn set_getrange_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, u64, Option<&mut BufferRef>, u32) -> Result<PadGetRangeSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, u64, Option<&mut BufferRef>, u32) -> Result<PadGetRangeSuccess, FlowError> + Send + Sync + 'static,
pub unsafe fn set_iterate_internal_links_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) -> Iterator<Pad> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) -> Iterator<Pad> + Send + Sync + 'static,
pub unsafe fn set_link_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, &Pad) -> Result<PadLinkSuccess, PadLinkError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, &Pad) -> Result<PadLinkSuccess, PadLinkError> + Send + Sync + 'static,
pub unsafe fn set_query_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, &mut QueryRef) -> bool + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, &mut QueryRef) -> bool + Send + Sync + 'static,
pub unsafe fn set_unlink_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) + Send + Sync + 'static,
pub fn start_task<F>(&self, func: F) -> Result<(), BoolError> where
F: 'static + FnMut() + Send,
[src]
F: 'static + FnMut() + Send,
pub fn peer_query_convert<V, U>(&self, src_val: V) -> Option<U> where
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
[src]
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
pub fn peer_query_convert_generic<V>(
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue> where
V: Into<GenericFormattedValue>,
[src]
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue> where
V: Into<GenericFormattedValue>,
pub fn peer_query_duration<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
pub fn peer_query_duration_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
pub fn peer_query_position<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
pub fn peer_query_position_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
pub fn query_convert<V, U>(&self, src_val: V) -> Option<U> where
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
[src]
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
pub fn query_convert_generic<V>(
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue> where
V: Into<GenericFormattedValue>,
[src]
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue> where
V: Into<GenericFormattedValue>,
pub fn query_duration<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
pub fn query_duration_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
pub fn query_position<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
pub fn query_position_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
pub fn mode(&self) -> PadMode
[src]
pub fn sticky_events_foreach<F>(&self, func: F) where
F: FnMut(Event) -> Result<Option<Event>, Option<Event>>,
[src]
F: FnMut(Event) -> Result<Option<Event>, Option<Event>>,
pub fn set_pad_flags(&self, flags: PadFlags)
[src]
pub fn unset_pad_flags(&self, flags: PadFlags)
[src]
pub fn pad_flags(&self) -> PadFlags
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,