Trait gstreamer_editing_services::prelude::LayerExt
source · pub trait LayerExt: 'static {
Show 21 methods
fn add_asset(
&self,
asset: &impl IsA<Asset>,
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(
&self,
asset: &impl IsA<Asset>,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, Error>;
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>;
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>;
fn is_active_for_track(&self, track: &impl IsA<Track>) -> 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(&self, clip: &impl IsA<Clip>) -> 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(&self, timeline: &impl IsA<Timeline>);
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§
sourcefn add_asset(
&self,
asset: &impl IsA<Asset>,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, BoolError>
fn add_asset(
&self,
asset: &impl IsA<Asset>,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, BoolError>
See add_asset_full()
, which also gives an error.
asset
The asset to extract the new clip from
start
The 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 in-point
value to set on the new
clip
duration
The duration
value to set on the new
clip
track_types
The supported-formats
to set on the the new
clip, or TrackType::UNKNOWN
to use the default
Returns
The newly created clip.
sourcefn add_asset_full(
&self,
asset: &impl IsA<Asset>,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, Error>
fn add_asset_full(
&self,
asset: &impl IsA<Asset>,
start: impl Into<Option<ClockTime>>,
inpoint: impl Into<Option<ClockTime>>,
duration: impl Into<Option<ClockTime>>,
track_types: TrackType
) -> Result<Clip, Error>
Available on crate feature
v1_18
only.fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
sourcefn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>
Available on crate feature
v1_18
only.sourcefn is_active_for_track(&self, track: &impl IsA<Track>) -> bool
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool
Available on crate feature
v1_18
only.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(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
sourcefn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool
Available on crate feature
v1_18
only.