Trait gstreamer_editing_services::prelude::LayerExt [−][src]
pub trait LayerExt: 'static {
Show methods
fn add_asset<P: IsA<Asset>>(
&self,
asset: &P,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, BoolError>;
fn add_asset_full<P: IsA<Asset>>(
&self,
asset: &P,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, Error>;
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), BoolError>;
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), Error>;
fn is_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
fn is_auto_transition(&self) -> bool;
fn clips(&self) -> Vec<Clip>;
fn clips_in_interval(
&self,
start: impl Into<Option<ClockTime>>,
end: impl Into<Option<ClockTime>>
) -> Vec<Clip>;
fn duration(&self) -> ClockTime;
fn priority(&self) -> u32;
fn timeline(&self) -> Option<Timeline>;
fn is_empty(&self) -> bool;
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), BoolError>;
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
fn set_auto_transition(&self, auto_transition: bool);
fn set_priority(&self, priority: u32);
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_clip_removed<F: Fn(&Self, &Clip) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_priority_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Expand description
Required methods
See add_asset_full(), which also gives an error.
asset
The asset to extract the new clip from
start
The property::TimelineElement::start value to set on the new clip
If start == GST_CLOCK_TIME_NONE``, it will be added to the end
of self, i.e. it will be set to self’s duration
inpoint
The property::TimelineElement::in-point value to set on the new
clip
duration
The property::TimelineElement::duration value to set on the new
clip
track_types
The property::Clip::supported-formats to set on the the new
clip, or TrackType::UNKNOWN to use the default
Returns
The newly created clip.
This is supported on crate feature
v1_18 only.This is supported on crate feature
v1_18 only.This is supported on crate feature
v1_18 only.fn is_auto_transition(&self) -> bool[src]fn clips_in_interval(
&self,
start: impl Into<Option<ClockTime>>,
end: impl Into<Option<ClockTime>>
) -> Vec<Clip>[src]This is supported on crate feature
v1_18 only.fn set_auto_transition(&self, auto_transition: bool)[src]fn set_priority(&self, priority: u32)[src]
fn set_priority(&self, priority: u32)[src]👎 Deprecated:
Since 1.16
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P)[src]fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]fn connect_clip_removed<F: Fn(&Self, &Clip) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]fn connect_priority_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
fn connect_priority_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]👎 Deprecated:
Since 1.16
Implementors
fn add_asset<P: IsA<Asset>>(
&self,
asset: &P,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, BoolError>[src]This is supported on crate feature
v1_18 only.This is supported on crate feature
v1_18 only.This is supported on crate feature
v1_18 only.fn clips_in_interval(
&self,
start: impl Into<Option<ClockTime>>,
end: impl Into<Option<ClockTime>>
) -> Vec<Clip>[src]This is supported on crate feature
v1_18 only.👎 Deprecated:
Since 1.16
👎 Deprecated:
Since 1.16