![]() |
![]() |
![]() |
GStreamer Editing Services 1.2.1 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals |
#include <ges/ges.h> GESMetaContainer; void (*GESMetaForeachFunc) (const GESMetaContainer *container
,const gchar *key
,const GValue *value
,gpointer user_data
); void ges_meta_container_foreach (GESMetaContainer *container
,GESMetaForeachFunc func
,gpointer user_data
); const GValue * ges_meta_container_get_meta (GESMetaContainer *container
,const gchar *key
); gboolean ges_meta_container_get_boolean (GESMetaContainer *container
,const gchar *meta_item
,gboolean *dest
); gboolean ges_meta_container_get_date (GESMetaContainer *container
,const gchar *meta_item
,GDate **dest
); gboolean ges_meta_container_get_date_time (GESMetaContainer *container
,const gchar *meta_item
,GstDateTime **dest
); gboolean ges_meta_container_get_double (GESMetaContainer *container
,const gchar *meta_item
,gdouble *dest
); gboolean ges_meta_container_get_float (GESMetaContainer *container
,const gchar *meta_item
,gfloat *dest
); gboolean ges_meta_container_get_int (GESMetaContainer *container
,const gchar *meta_item
,gint *dest
); gboolean ges_meta_container_get_int64 (GESMetaContainer *container
,const gchar *meta_item
,gint64 *dest
); const gchar * ges_meta_container_get_string (GESMetaContainer *container
,const gchar *meta_item
); gboolean ges_meta_container_get_uint (GESMetaContainer *container
,const gchar *meta_item
,guint *dest
); gboolean ges_meta_container_get_uint64 (GESMetaContainer *container
,const gchar *meta_item
,guint64 *dest
); gboolean ges_meta_container_set_boolean (GESMetaContainer *container
,const gchar *meta_item
,gboolean value
); gboolean ges_meta_container_set_date (GESMetaContainer *container
,const gchar *meta_item
,const GDate *value
); gboolean ges_meta_container_set_date_time (GESMetaContainer *container
,const gchar *meta_item
,const GstDateTime *value
); gboolean ges_meta_container_set_double (GESMetaContainer *container
,const gchar *meta_item
,gdouble value
); gboolean ges_meta_container_set_float (GESMetaContainer *container
,const gchar *meta_item
,gfloat value
); gboolean ges_meta_container_set_int (GESMetaContainer *container
,const gchar *meta_item
,gint value
); gboolean ges_meta_container_set_int64 (GESMetaContainer *container
,const gchar *meta_item
,gint64 value
); gboolean ges_meta_container_set_string (GESMetaContainer *container
,const gchar *meta_item
,const gchar *value
); gboolean ges_meta_container_set_uint (GESMetaContainer *container
,const gchar *meta_item
,guint value
); gboolean ges_meta_container_set_uint64 (GESMetaContainer *container
,const gchar *meta_item
,guint64 value
); gboolean ges_meta_container_set_meta (GESMetaContainer *container
,const gchar *meta_item
,const GValue *value
); gboolean ges_meta_container_register_meta_boolean (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gboolean value
); gboolean ges_meta_container_register_meta_int (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gint value
); gboolean ges_meta_container_register_meta_uint (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,guint value
); gboolean ges_meta_container_register_meta_int64 (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gint64 value
); gboolean ges_meta_container_register_meta_uint64 (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,guint64 value
); gboolean ges_meta_container_register_meta_float (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gfloat value
); gboolean ges_meta_container_register_meta_double (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gdouble value
); gboolean ges_meta_container_register_meta_date (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GDate *value
); gboolean ges_meta_container_register_meta_date_time (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GstDateTime *value
); gboolean ges_meta_container_register_meta_string (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const gchar *value
); gboolean ges_meta_container_register_meta (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GValue *value
); gchar * ges_meta_container_metas_to_string (GESMetaContainer *container
); gboolean ges_meta_container_add_metas_from_string (GESMetaContainer *container
,const gchar *str
); GType ges_meta_container_get_type (void
); gboolean ges_meta_container_check_meta_registered (GESMetaContainer *container
,const gchar *meta_item
,GESMetaFlag *flags
,GType *type
); #define GES_META_FORMATTER_NAME #define GES_META_FORMATTER_MIMETYPE #define GES_META_FORMATTER_EXTENSION #define GES_META_FORMATTER_VERSION #define GES_META_FORMATTER_RANK #define GES_META_DESCRIPTION
GESMetaContainer is implemented by GESAsset, GESAudioSource, GESAudioTestSource, GESAudioTransition, GESAudioUriSource, GESBaseEffect, GESBaseEffectClip, GESBaseTransitionClip, GESClip, GESClipAsset, GESContainer, GESEffect, GESEffectClip, GESImageSource, GESLayer, GESOperation, GESOperationClip, GESOverlayClip, GESProject, GESSource, GESSourceClip, GESTestClip, GESTextOverlay, GESTextOverlayClip, GESTimeline, GESTimelineElement, GESTitleClip, GESTitleSource, GESTrack, GESTrackElement, GESTrackElementAsset, GESTransition, GESTransitionClip, GESUriClip, GESUriClipAsset, GESUriSourceAsset, GESVideoSource, GESVideoTestSource, GESVideoTransition and GESVideoUriSource.
void (*GESMetaForeachFunc) (const GESMetaContainer *container
,const gchar *key
,const GValue *value
,gpointer user_data
);
void ges_meta_container_foreach (GESMetaContainer *container
,GESMetaForeachFunc func
,gpointer user_data
);
Calls the given function for each metadata inside the meta container. Note that if there is no metadata, the function won't be called at all.
|
container to iterate over |
|
function to be called for each metadata. [scope call] |
|
user specified data. [closure] |
const GValue * ges_meta_container_get_meta (GESMetaContainer *container
,const gchar *key
);
Gets the value of a given meta item, returns NULL if meta_item
can not be found.
gboolean ges_meta_container_get_boolean (GESMetaContainer *container
,const gchar *meta_item
,gboolean *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_date (GESMetaContainer *container
,const gchar *meta_item
,GDate **dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_date_time (GESMetaContainer *container
,const gchar *meta_item
,GstDateTime **dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_double (GESMetaContainer *container
,const gchar *meta_item
,gdouble *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_float (GESMetaContainer *container
,const gchar *meta_item
,gfloat *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns FALSE if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_int (GESMetaContainer *container
,const gchar *meta_item
,gint *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_int64 (GESMetaContainer *container
,const gchar *meta_item
,gint64 *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns FALSE if meta_item
can not be found. [out]
|
const gchar * ges_meta_container_get_string (GESMetaContainer *container
,const gchar *meta_item
);
|
Target container |
|
Name of the meta item to get
Gets the value of a given meta item, returns NULL if meta_item
can not be found. |
gboolean ges_meta_container_get_uint (GESMetaContainer *container
,const gchar *meta_item
,guint *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_get_uint64 (GESMetaContainer *container
,const gchar *meta_item
,guint64 *dest
);
|
Target container |
|
Name of the meta item to get |
|
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns NULL if meta_item
can not be found. [out]
|
gboolean ges_meta_container_set_boolean (GESMetaContainer *container
,const gchar *meta_item
,gboolean value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_set_date (GESMetaContainer *container
,const gchar *meta_item
,const GDate *value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_date_time (GESMetaContainer *container
,const gchar *meta_item
,const GstDateTime *value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_double (GESMetaContainer *container
,const gchar *meta_item
,gdouble value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_float (GESMetaContainer *container
,const gchar *meta_item
,gfloat value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_int (GESMetaContainer *container
,const gchar *meta_item
,gint value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_int64 (GESMetaContainer *container
,const gchar *meta_item
,gint64 value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_string (GESMetaContainer *container
,const gchar *meta_item
,const gchar *value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_uint (GESMetaContainer *container
,const gchar *meta_item
,guint value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_uint64 (GESMetaContainer *container
,const gchar *meta_item
,guint64 value
);
Sets the value of a given meta item
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set |
gboolean ges_meta_container_set_meta (GESMetaContainer *container
,const gchar *meta_item
,const GValue *value
);
Return: TRUE
if the meta could be added, FALSE
otherwize
|
Target container |
|
Name of the meta item to set |
|
Value to set Sets the value of a given meta item |
gboolean ges_meta_container_register_meta_boolean (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gboolean value
);
gboolean ges_meta_container_register_meta_int (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gint value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_uint (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,guint value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_int64 (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gint64 value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_uint64 (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,guint64 value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_float (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gfloat value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_double (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,gdouble value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_date (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GDate *value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_date_time (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GstDateTime *value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta_string (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const gchar *value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the meta could be register, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set. [allow-none] |
gboolean ges_meta_container_register_meta (GESMetaContainer *container
,GESMetaFlag flags
,const gchar *meta_item
,const GValue *value
);
Sets a static meta on container
. This method lets you define static
metadatas, which means that the type of the registered will be the only
type accepted for this meta on that particular container
.
Return: TRUE
if the static meta could be added, FALSE
otherwize
|
Target container |
|
The GESMetaFlag to be used |
|
Name of the meta item to set |
|
Value to set |
gchar * ges_meta_container_metas_to_string (GESMetaContainer *container
);
Serializes a meta container to a string.
|
a GESMetaContainer |
Returns : |
a newly-allocated string, or NULL in case of an error. The
string must be freed with g_free() when no longer needed. |
gboolean ges_meta_container_add_metas_from_string (GESMetaContainer *container
,const gchar *str
);
Deserializes a meta container.
|
a string created with ges_meta_container_metas_to_string()
|
|
Target container |
Returns : |
a new GESMetaContainer, or NULL in case of an error. [transfer full] |
gboolean ges_meta_container_check_meta_registered (GESMetaContainer *container
,const gchar *meta_item
,GESMetaFlag *flags
,GType *type
);
#define GES_META_FORMATTER_NAME "name"
Name of a formatter it is used as ID of Formater assets (string)
The name of the formatter
#define GES_META_FORMATTER_MIMETYPE "mimetype"
Mimetype used for the file produced by a formatter (string)
The mime type
#define GES_META_FORMATTER_EXTENSION "extension"
The extension of the files produced by a formatter (string)
#define GES_META_FORMATTER_VERSION "version"
The version of a formatter (double)
The formatter version
#define GES_META_FORMATTER_RANK "rank"
The rank of a formatter (GstRank)
The rank of a formatter
"notify-meta"
signalvoid user_function (GESMetaContainer *gesmetacontainer,
gchar *arg1,
GValue *arg2,
gpointer user_data) : No Hooks