| GStreamer Editing Services 0.11.89.1 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
#include <ges/ges.h>
GESCustomSourceClip;
gboolean (*GESFillTrackElementUserFunc) (GESClip *object,
GESTrackElement *track_element,
GstElement *gnlobj,
gpointer user_data);
GESCustomSourceClip * ges_custom_source_clip_new (GESFillTrackElementUserFunc func,
gpointer user_data);
GObject
+----GInitiallyUnowned
+----GESTimelineElement
+----GESClip
+----GESSourceClip
+----GESCustomSourceClip
"fill-func" gpointer : Write / Construct Only "user-data" gpointer : Write / Construct Only
GESCustomSourceClip allows creating GESSourceClip(s) without the need to subclass.
Its usage should be limited to testing and prototyping purposes.
To instanciate a asset to extract GESCustomSourceClip-s the expected ID is: 'PointerToFuncAsInt!PointerToUDataAsInt'
You should use the ges_asset_custom_source_clip_new helper to create a new GESAsset letting you extract GESCustomSourceClip.
typedef struct _GESCustomSourceClip GESCustomSourceClip;
Debugging custom timeline source
gboolean (*GESFillTrackElementUserFunc) (GESClip *object,GESTrackElement *track_element,GstElement *gnlobj,gpointer user_data);
A function that will be called when the GNonLin object of a corresponding track element needs to be filled.
The implementer of this function shall add the proper GstElement to gnlobj
using gst_bin_add().
|
the GESClip controlling the track element |
|
the GESTrackElement |
|
the GNonLin object that needs to be filled. |
|
the gpointer to optional user data |
Returns : |
TRUE if the implementer succesfully filled the gnlobj, else FALSE. |
GESCustomSourceClip * ges_custom_source_clip_new (GESFillTrackElementUserFunc func,gpointer user_data);
Creates a new GESCustomSourceClip.
|
The GESFillTrackElementUserFunc that will be used to fill the track objects. [scope notified] |
|
a gpointer that will be used when func is called. [closure]
|
Returns : |
The new GESCustomSourceClip. |