[−][src]Trait gstreamer_editing_services::GESPipelineExt
Required methods
fn get_mode(&self) -> PipelineFlags
fn get_thumbnail(&self, caps: &Caps) -> Option<Sample>
Gets a sample from the pipeline of the currently displayed image in preview, in the specified format.
Note that if you use "ANY" caps for caps
, then the current format of
the image is used. You can retrieve these caps from the returned sample
with gst::Sample::get_caps
.
caps
Some caps to specifying the desired format, or
GST_CAPS_ANY
to use the native format
Returns
A sample of self
's current image preview in
the format given by caps
, or None
if an error prevented fetching the
sample.
fn get_thumbnail_rgb24(&self, width: i32, height: i32) -> Option<Sample>
Gets a sample from the pipeline of the currently displayed image in preview, in the 24-bit "RGB" format and of the desired width and height.
See GESPipelineExt::get_thumbnail
.
width
The requested pixel width of the image, or -1 to use the native size
height
The requested pixel height of the image, or -1 to use the native size
Returns
A sample of self
's current image preview in
the "RGB" format, scaled to width
and height
, or None
if an error
prevented fetching the sample.
fn preview_get_audio_sink(&self) -> Option<Element>
fn preview_get_video_sink(&self) -> Option<Element>
fn preview_set_audio_sink<P: IsA<Element>>(&self, sink: &P)
fn preview_set_video_sink<P: IsA<Element>>(&self, sink: &P)
fn save_thumbnail(
&self,
width: i32,
height: i32,
format: &str,
location: &str
) -> Result<(), Error>
&self,
width: i32,
height: i32,
format: &str,
location: &str
) -> Result<(), Error>
Saves the currently displayed image of the pipeline in preview to the given location, in the specified dimensions and format.
width
The requested pixel width of the image, or -1 to use the native size
height
The requested pixel height of the image, or -1 to use the native size
format
The desired mime type (for example, "image/jpeg")
location
The path to save the thumbnail to
Returns
true
if self
's current image preview was successfully saved
to location
using the given format
, height
and width
.
fn set_mode(&self, mode: PipelineFlags) -> Result<(), BoolError>
Sets the Pipeline:mode
of the pipeline.
Note that the pipeline will be set to gst::State::Null
during this call to
perform the necessary changes. You will need to set the state again yourself
after calling this.
NOTE: Rendering settings need to be set before setting
mode
toPipelineFlags::Render
orPipelineFlags::SmartRender
, the call to this method will fail otherwise.
mode
The mode to set for self
Returns
true
if the mode of self
was successfully set to mode
.
fn set_render_settings<P: IsA<EncodingProfile>>(
&self,
output_uri: &str,
profile: &P
) -> Result<(), BoolError>
&self,
output_uri: &str,
profile: &P
) -> Result<(), BoolError>
Specifies encoding setting to be used by the pipeline to render its
Pipeline:timeline
, and where the result should be written to.
This method must be called before setting the pipeline mode to
PipelineFlags::Render
.
output_uri
The URI to save the Pipeline:timeline
rendering
result to
profile
The encoding to use for rendering the Pipeline:timeline
Returns
true
if the settings were successfully set on self
.
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), BoolError>
Takes the given timeline and sets it as the Pipeline:timeline
for
the pipeline.
Note that you should only call this method once on a given pipeline
because a pipeline can not have its Pipeline:timeline
changed after
it has been set.
timeline
The timeline to set for self
Returns
true
if timeline
was successfully given to self
.
fn get_property_audio_filter(&self) -> Option<Element>
The audio filter(s) to apply during playback in preview mode,
immediately before the Pipeline:audio-sink
. This exposes the
playsink:audio-filter
property of the internal playsink
.
fn set_property_audio_filter<P: IsA<Element> + SetValueOptional>(
&self,
audio_filter: Option<&P>
)
&self,
audio_filter: Option<&P>
)
The audio filter(s) to apply during playback in preview mode,
immediately before the Pipeline:audio-sink
. This exposes the
playsink:audio-filter
property of the internal playsink
.
fn get_property_audio_sink(&self) -> Option<Element>
The audio sink used for preview. This exposes the
playsink:audio-sink
property of the internal playsink
.
fn set_property_audio_sink<P: IsA<Element> + SetValueOptional>(
&self,
audio_sink: Option<&P>
)
&self,
audio_sink: Option<&P>
)
The audio sink used for preview. This exposes the
playsink:audio-sink
property of the internal playsink
.
fn get_property_timeline(&self) -> Option<Timeline>
The timeline used by this pipeline, whose content it will play and
render, or None
if the pipeline does not yet have a timeline.
Note that after you set the timeline for the first time, subsequent calls to change the timeline will fail.
fn get_property_video_filter(&self) -> Option<Element>
The video filter(s) to apply during playback in preview mode,
immediately before the Pipeline:video-sink
. This exposes the
playsink:video-filter
property of the internal playsink
.
fn set_property_video_filter<P: IsA<Element> + SetValueOptional>(
&self,
video_filter: Option<&P>
)
&self,
video_filter: Option<&P>
)
The video filter(s) to apply during playback in preview mode,
immediately before the Pipeline:video-sink
. This exposes the
playsink:video-filter
property of the internal playsink
.
fn get_property_video_sink(&self) -> Option<Element>
The video sink used for preview. This exposes the
playsink:video-sink
property of the internal playsink
.
fn set_property_video_sink<P: IsA<Element> + SetValueOptional>(
&self,
video_sink: Option<&P>
)
&self,
video_sink: Option<&P>
)
The video sink used for preview. This exposes the
playsink:video-sink
property of the internal playsink
.
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_audio_sink_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_video_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_video_sink_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Pipeline>> GESPipelineExt for O
[src]
fn get_mode(&self) -> PipelineFlags
[src]
fn get_thumbnail(&self, caps: &Caps) -> Option<Sample>
[src]
fn get_thumbnail_rgb24(&self, width: i32, height: i32) -> Option<Sample>
[src]
fn preview_get_audio_sink(&self) -> Option<Element>
[src]
fn preview_get_video_sink(&self) -> Option<Element>
[src]
fn preview_set_audio_sink<P: IsA<Element>>(&self, sink: &P)
[src]
fn preview_set_video_sink<P: IsA<Element>>(&self, sink: &P)
[src]
fn save_thumbnail(
&self,
width: i32,
height: i32,
format: &str,
location: &str
) -> Result<(), Error>
[src]
&self,
width: i32,
height: i32,
format: &str,
location: &str
) -> Result<(), Error>
fn set_mode(&self, mode: PipelineFlags) -> Result<(), BoolError>
[src]
fn set_render_settings<P: IsA<EncodingProfile>>(
&self,
output_uri: &str,
profile: &P
) -> Result<(), BoolError>
[src]
&self,
output_uri: &str,
profile: &P
) -> Result<(), BoolError>
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), BoolError>
[src]
fn get_property_audio_filter(&self) -> Option<Element>
[src]
fn set_property_audio_filter<P: IsA<Element> + SetValueOptional>(
&self,
audio_filter: Option<&P>
)
[src]
&self,
audio_filter: Option<&P>
)
fn get_property_audio_sink(&self) -> Option<Element>
[src]
fn set_property_audio_sink<P: IsA<Element> + SetValueOptional>(
&self,
audio_sink: Option<&P>
)
[src]
&self,
audio_sink: Option<&P>
)
fn get_property_timeline(&self) -> Option<Timeline>
[src]
fn get_property_video_filter(&self) -> Option<Element>
[src]
fn set_property_video_filter<P: IsA<Element> + SetValueOptional>(
&self,
video_filter: Option<&P>
)
[src]
&self,
video_filter: Option<&P>
)
fn get_property_video_sink(&self) -> Option<Element>
[src]
fn set_property_video_sink<P: IsA<Element> + SetValueOptional>(
&self,
video_sink: Option<&P>
)
[src]
&self,
video_sink: Option<&P>
)
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_audio_sink_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_video_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_video_sink_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId