![]() | ![]() | ![]() | GNonLin v0.2.2 Reference Manual | ![]() |
---|
GnlCompositionGnlComposition — Container to assemble and order GnlObject |
GnlComposition; GnlCompositionClass; enum GnlFindMethod; GnlComposition* gnl_composition_new (const gchar *name); void gnl_composition_add_object (GnlComposition *comp, GnlObject *object); void gnl_composition_remove_object (GnlComposition *comp, GnlObject *object); void gnl_composition_set_default_source (GnlComposition *comp, GnlSource *source); GnlObject* gnl_composition_find_object (GnlComposition *comp, GstClockTime time, GnlFindMethod method);
GObject +----GstObject +----GstElement +----GstBin +----GnlObject +----GnlComposition +----GnlTimeline
GnlComposition are the base class for assembling GnlObject through time. The main objects that can be assembled are GnlSource and GnlOperation , but it can receive any type of GnlObject (GnlComposition, GnlTimeline, ...) that has ONE single output.
The main idea behind GnlComposition is to arrange ONE type of media (audio, or video, or ...) and then those GnlComposition are combined in a GnlTimeline.
typedef struct { GnlObjectClass parent_class; GstClockTime (*nearest_cover) (GnlComposition *comp, GstClockTime start, GnlDirection direction); } GnlCompositionClass;
GnlComposition* gnl_composition_new (const gchar *name);
name : | the name of the composition |
Returns : | an initialized GnlComposition |
void gnl_composition_add_object (GnlComposition *comp, GnlObject *object);
comp : | The GnlComposition to add an object to |
object : | The GnlObject to add to the composition |
void gnl_composition_remove_object (GnlComposition *comp, GnlObject *object);
comp : | The GnlComposition to remove an object from |
object : | The GnlObject to remove from the composition |
void gnl_composition_set_default_source (GnlComposition *comp, GnlSource *source);
comp : | The GnlComposition |
source : | The GnlSource we want to set as default source for this composition |
GnlObject* gnl_composition_find_object (GnlComposition *comp, GstClockTime time, GnlFindMethod method);
comp : | The GnlComposition to look into |
time : | The time to start looking at |
method : | The GnlFindMethod used to look to the object |
Returns : | The GnlObject found , or NULL if none |
<< GnlOperation | GnlTimeline >> |