Top | ![]() |
![]() |
![]() |
![]() |
GESMetaContainer | |
#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 |
#define | GES_META_FORMAT_VERSION |
GESMetaContainer is implemented by GESAsset, GESAudioSource, GESAudioTestSource, GESAudioTransition, GESAudioUriSource, GESBaseEffect, GESBaseEffectClip, GESBaseTransitionClip, GESClip, GESClipAsset, GESContainer, GESEffect, GESEffectClip, GESGroup, GESImageSource, GESLayer, GESMultiFileSource, 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.
const GValue * ges_meta_container_get_meta (GESMetaContainer *container
,const gchar *key
);
Gets the value of a given meta item, returns NULL if key
can not be found.
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
);
container |
Target container |
|
meta_item |
Name of the meta item to get |
|
dest |
Destination to which value of meta item will be copied
Gets the value of a given meta item, returns |
[out] |
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
);
Sets the value of a given meta item
gboolean ges_meta_container_set_date (GESMetaContainer *container
,const gchar *meta_item
,const GDate *value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_date_time (GESMetaContainer *container
,const gchar *meta_item
,const GstDateTime *value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_double (GESMetaContainer *container
,const gchar *meta_item
,gdouble value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_float (GESMetaContainer *container
,const gchar *meta_item
,gfloat value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_int (GESMetaContainer *container
,const gchar *meta_item
,gint value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_int64 (GESMetaContainer *container
,const gchar *meta_item
,gint64 value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_string (GESMetaContainer *container
,const gchar *meta_item
,const gchar *value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_uint (GESMetaContainer *container
,const gchar *meta_item
,guint value
);
Sets the value of a given meta item
gboolean ges_meta_container_set_uint64 (GESMetaContainer *container
,const gchar *meta_item
,guint64 value
);
Sets the value of a given meta item
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
);
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
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
container |
Target container |
|
flags |
The GESMetaFlag to be used |
|
meta_item |
Name of the meta item to set |
|
value |
Value to set |
gchar *
ges_meta_container_metas_to_string (GESMetaContainer *container
);
Serializes a meta container to a string.
a newly-allocated string, or NULL in case of an error.
The string must be freed with g_free()
when no longer needed.
[nullable]
gboolean ges_meta_container_add_metas_from_string (GESMetaContainer *container
,const gchar *str
);
Deserializes a meta container.
container |
Target container |
|
str |
a string created with |
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
#define GES_META_DESCRIPTION "description"
The description of an object, can be used in various context (string)
The description
“notify-meta”
signalvoid user_function (GESMetaContainer *gesmetacontainer, gchar *arg1, GValue *arg2, gpointer user_data)
Flags: No Hooks