Top | ![]() |
![]() |
![]() |
![]() |
gboolean (*GESFormatterLoadFromURIMethod) (GESFormatter *formatter
,GESTimeline *timeline
,const gchar *uri
,GError **error
);
Virtual method for loading a timeline from a given URI.
Every GESFormatter subclass needs to implement this method.
formatter |
||
timeline |
||
uri |
the URI to load from |
|
error |
An error to be set in case something wrong happens or |
[out][allow-none] |
gboolean (*GESFormatterSaveToURIMethod) (GESFormatter *formatter
,GESTimeline *timeline
,const gchar *uri
,gboolean overwrite
,GError **error
);
Virtual method for saving a timeline to a uri.
Every GESFormatter subclass needs to implement this method.
formatter |
||
timeline |
||
uri |
the URI to save to |
|
overwrite |
Whether the file should be overwritten in case it exists |
|
error |
An error to be set in case something wrong happens or |
[out][allow-none] |
gboolean (*GESFormatterCanLoadURIMethod) (GESFormatter *dummy_instance
,const gchar *uri
,GError **error
);
void ges_formatter_class_register_metas (GESFormatterClass *klass
,const gchar *name
,const gchar *description
,const gchar *extension
,const gchar *mimetype
,gdouble version
,GstRank rank
);
gboolean ges_formatter_load_from_uri (GESFormatter *formatter
,GESTimeline *timeline
,const gchar *uri
,GError **error
);
Load data from the given URI into timeline.
gboolean ges_formatter_save_to_uri (GESFormatter *formatter
,GESTimeline *timeline
,const gchar *uri
,gboolean overwrite
,GError **error
);
Save data from timeline to the given URI.
gboolean ges_formatter_can_load_uri (const gchar *uri
,GError **error
);
Checks if there is a GESFormatter available which can load a GESTimeline from the given URI.
gboolean ges_formatter_can_save_uri (const gchar *uri
,GError **error
);
Returns TRUE if there is a GESFormatter available which can save a GESTimeline to the given URI.
GESAsset *
ges_formatter_get_default (void
);
Get the default GESAsset to use as formatter. It will return
the asset for the GESFormatter that has the highest rank
typedef struct _GESFormatter GESFormatter;
Base class for timeline data serialization and deserialization.
typedef struct { GInitiallyUnownedClass parent_class; /* TODO 2.0: Rename the loading method to can_load and load. * Technically we just pass data to load, it should not necessarily * be a URI */ GESFormatterCanLoadURIMethod can_load_uri; GESFormatterLoadFromURIMethod load_from_uri; GESFormatterSaveToURIMethod save_to_uri; } GESFormatterClass;
GES Formatter class. Override the vmethods to implement the formatter functionnality.
GESFormatterCanLoadURIMethod |
Whether the URI can be loaded |
|
GESFormatterLoadFromURIMethod |
class method to deserialize data from a URI |
|
GESFormatterSaveToURIMethod |
class method to serialize data to a URI |