Top | ![]() |
![]() |
![]() |
![]() |
GESTimelinePipelineGESTimelinePipeline — Convenience GstPipeline for editing. |
GESTimelinePipeline * | ges_timeline_pipeline_new () |
gboolean | ges_timeline_pipeline_add_timeline () |
gboolean | ges_timeline_pipeline_set_mode () |
gboolean | ges_timeline_pipeline_set_render_settings () |
GstBuffer * | ges_timeline_pipeline_get_thumbnail_buffer () |
GstBuffer * | ges_timeline_pipeline_get_thumbnail_rgb24 () |
gboolean | ges_timeline_pipeline_save_thumbnail () |
GObject ╰── GstObject ╰── GstElement ╰── GstBin ╰── GstPipeline ╰── GESTimelinePipeline
GESTimelinePipeline allows developers to view and render GESTimeline in a simple fashion. Its usage is inspired by the 'playbin' element from gst-plugins-base.
GESTimelinePipeline *
ges_timeline_pipeline_new (void
);
Creates a new conveninence GESTimelinePipeline.
gboolean ges_timeline_pipeline_add_timeline (GESTimelinePipeline *pipeline
,GESTimeline *timeline
);
Sets the timeline to use in this pipeline.
The reference to the timeline
will be stolen by the pipeline
.
gboolean ges_timeline_pipeline_set_mode (GESTimelinePipeline *pipeline
,GESPipelineFlags mode
);
switches the pipeline
to the specified mode
. The default mode when
creating a GESTimelinePipeline is TIMELINE_MODE_PREVIEW.
Note: The pipeline
will be set to GST_STATE_NULL during this call due to
the internal changes that happen. The caller will therefore have to
set the pipeline
to the requested state after calling this method.
gboolean ges_timeline_pipeline_set_render_settings (GESTimelinePipeline *pipeline
,gchar *output_uri
,GstEncodingProfile *profile
);
Specify where the pipeline shall be rendered and with what settings.
A copy of profile
and output_uri
will be done internally, the caller can
safely free those values afterwards.
This method must be called before setting the pipeline mode to TIMELINE_MODE_RENDER
pipeline |
||
output_uri |
the URI to which the timeline will be rendered |
|
profile |
the GstEncodingProfile to use to render the timeline. |
GstBuffer * ges_timeline_pipeline_get_thumbnail_buffer (GESTimelinePipeline *self
,GstCaps *caps
);
Returns a GstBuffer with the currently playing in the format specified by caps. The caller should unref the gst_buffer_unref when finished. If ANY caps are specified, the information will be returned in the whatever format is currently used by the sink. This information can be retrieve from caps associated with the buffer.
self |
a GESTimelinePipeline in |
|
caps |
caps specifying current format. Use |
[transfer none] |
GstBuffer * ges_timeline_pipeline_get_thumbnail_rgb24 (GESTimelinePipeline *self
,gint width
,gint height
);
A convenience method for ges_timeline_pipeline_get_thumbnail_raw which returns a buffer in 24-bit RGB, optionally scaled to the specified width and height. If -1 is specified for either dimension, it will be left at native size. You can retreive this information from the caps associated with the buffer.
The caller is responsible for unreffing the returned buffer with gst_buffer_unref.
self |
a GESTimelinePipeline in |
|
width |
the requested width or -1 for native size |
|
height |
the requested height or -1 for native size |
gboolean ges_timeline_pipeline_save_thumbnail (GESTimelinePipeline *self
,int width
,int height
,const gchar *format
,const gchar *location
);
Saves the current frame to the specified location
.
self |
a GESTimelinePipeline in |
|
width |
the requested width or -1 for native size |
|
height |
the requested height or -1 for native size |
|
format |
a string specifying the desired mime type (for example, image/jpeg) |
|
location |
the path to save the thumbnail |
The various modes the GESTimelinePipeline can be configured to.