ges: GST_EXPORT -> GST_GES_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
This commit is contained in:
Tim-Philipp Müller 2018-03-13 13:45:24 +00:00
parent eff9363d3c
commit 3d1c00fbcd
63 changed files with 452 additions and 414 deletions

View file

@ -20,7 +20,7 @@ gnome.gtkdoc('ges',
main_sgml : 'ges-docs.sgml',
src_dir : '@0@/../../ges'.format(meson.current_source_dir()),
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
'--ignore-decorators=GST_EXPORT',
'--ignore-decorators=GES_API',
'--ignore-headers=gesmarshal.h ges-internal.h ges-auto-transition.h ges-structured-interface.h ges-structure-parser.h ges-smart-video-mixer.h gstframepositioner.h'
],
scanobjs_args : ['--type-init-func="gst_init(NULL,NULL)"'],

View file

@ -84,6 +84,7 @@ libges_@GST_API_VERSION@include_HEADERS = \
$(built_header_make) \
ges-types.h \
ges.h \
ges-prelude.h \
ges-enums.h \
ges-gerror.h \
ges-meta-container.h \

View file

@ -51,7 +51,7 @@ typedef enum
typedef struct _GESAssetPrivate GESAssetPrivate;
GST_EXPORT
GST_GES_API
GType ges_asset_get_type (void);
struct _GESAsset
@ -89,43 +89,43 @@ struct _GESAssetClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_asset_get_extractable_type (GESAsset * self);
GST_EXPORT
GST_GES_API
void ges_asset_request_async (GType extractable_type,
const gchar * id,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GST_EXPORT
GST_GES_API
GESAsset * ges_asset_request (GType extractable_type,
const gchar * id,
GError **error);
GST_EXPORT
GST_GES_API
const gchar * ges_asset_get_id (GESAsset* self);
GST_EXPORT
GST_GES_API
GESAsset * ges_asset_request_finish (GAsyncResult *res,
GError **error);
GST_EXPORT
GST_GES_API
GError * ges_asset_get_error (GESAsset * self);
GST_EXPORT
GST_GES_API
GESExtractable * ges_asset_extract (GESAsset * self,
GError **error);
GST_EXPORT
GST_GES_API
GList * ges_list_assets (GType filter);
GST_EXPORT
GST_GES_API
gboolean ges_asset_set_proxy (GESAsset *asset, GESAsset *proxy);
GST_EXPORT
GST_GES_API
gboolean ges_asset_unproxy (GESAsset *asset, GESAsset * proxy);
GST_EXPORT
GST_GES_API
GList * ges_asset_list_proxies (GESAsset *asset);
GST_EXPORT
GST_GES_API
GESAsset * ges_asset_get_proxy_target(GESAsset *proxy);
GST_EXPORT
GST_GES_API
GESAsset * ges_asset_get_proxy (GESAsset *asset);
GST_EXPORT
GST_GES_API
gboolean ges_asset_needs_reload (GType extractable_type,
const gchar * id);

View file

@ -83,7 +83,7 @@ struct _GESAudioSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_audio_source_get_type (void);
G_END_DECLS

View file

@ -70,21 +70,21 @@ struct _GESAudioTestSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_audio_test_source_get_type (void);
GST_EXPORT
GST_GES_API
void ges_audio_test_source_set_freq(GESAudioTestSource *self,
gdouble freq);
GST_EXPORT
GST_GES_API
void ges_audio_test_source_set_volume(GESAudioTestSource *self,
gdouble volume);
GST_EXPORT
GST_GES_API
double ges_audio_test_source_get_freq(GESAudioTestSource *self);
GST_EXPORT
GST_GES_API
double ges_audio_test_source_get_volume(GESAudioTestSource *self);
G_END_DECLS

View file

@ -54,9 +54,9 @@ struct _GESAudioTrack
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_audio_track_get_type (void) G_GNUC_CONST;
GST_EXPORT
GST_GES_API
GESAudioTrack* ges_audio_track_new (void);
G_END_DECLS

View file

@ -68,10 +68,10 @@ struct _GESAudioTransitionClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_audio_transition_get_type (void);
GST_EXPORT
GST_GES_API
GESAudioTransition* ges_audio_transition_new (void);
G_END_DECLS

View file

@ -69,7 +69,7 @@ struct _GESAudioUriSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_audio_uri_source_get_type (void);
G_END_DECLS

View file

@ -70,7 +70,7 @@ struct _GESBaseEffectClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_base_effect_clip_get_type (void);
G_END_DECLS

View file

@ -68,7 +68,7 @@ struct _GESBaseEffectClass
};
GST_EXPORT
GST_GES_API
GType ges_base_effect_get_type (void);
G_END_DECLS

View file

@ -74,7 +74,7 @@ struct _GESBaseTransitionClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_base_transition_clip_get_type (void);
G_END_DECLS

View file

@ -64,7 +64,7 @@ struct _GESBaseXmlFormatterClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_base_xml_formatter_get_type (void);
G_END_DECLS

View file

@ -55,12 +55,12 @@ struct _GESClipAssetClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_clip_asset_get_type (void);
GST_EXPORT
GST_GES_API
void ges_clip_asset_set_supported_formats (GESClipAsset *self,
GESTrackType supportedformats);
GST_EXPORT
GST_GES_API
GESTrackType ges_clip_asset_get_supported_formats (GESClipAsset *self);
G_END_DECLS

View file

@ -137,53 +137,53 @@ struct _GESClipClass
/****************************************************
* Standard *
****************************************************/
GST_EXPORT
GST_GES_API
GType ges_clip_get_type (void);
/****************************************************
* TrackElement handling *
****************************************************/
GST_EXPORT
GST_GES_API
GESTrackType ges_clip_get_supported_formats (GESClip *clip);
GST_EXPORT
GST_GES_API
void ges_clip_set_supported_formats (GESClip *clip, GESTrackType supportedformats);
GST_EXPORT
GST_GES_API
GESTrackElement* ges_clip_add_asset (GESClip *clip, GESAsset *asset);
GST_EXPORT
GST_GES_API
GESTrackElement* ges_clip_find_track_element (GESClip *clip, GESTrack *track,
GType type);
GST_EXPORT
GST_GES_API
GList * ges_clip_find_track_elements (GESClip * clip, GESTrack * track,
GESTrackType track_type, GType type);
/****************************************************
* Layer *
****************************************************/
GST_EXPORT
GST_GES_API
GESLayer* ges_clip_get_layer (GESClip *clip);
GST_EXPORT
GST_GES_API
gboolean ges_clip_move_to_layer (GESClip *clip, GESLayer *layer);
/****************************************************
* Effects *
****************************************************/
GST_EXPORT
GST_GES_API
GList* ges_clip_get_top_effects (GESClip *clip);
GST_EXPORT
GST_GES_API
gint ges_clip_get_top_effect_position (GESClip *clip, GESBaseEffect *effect);
GST_EXPORT
GST_GES_API
gint ges_clip_get_top_effect_index (GESClip *clip, GESBaseEffect *effect);
GST_EXPORT
GST_GES_API
gboolean ges_clip_set_top_effect_priority (GESClip *clip, GESBaseEffect *effect,
guint newpriority);
GST_EXPORT
GST_GES_API
gboolean ges_clip_set_top_effect_index (GESClip *clip, GESBaseEffect *effect,
guint newindex);
/****************************************************
* Editing *
****************************************************/
GST_EXPORT
GST_GES_API
GESClip* ges_clip_split (GESClip *clip, guint64 position);
G_END_DECLS

View file

@ -50,9 +50,9 @@ struct _GESCommandLineFormatter
GESCommandLineFormatterPrivate *priv;
};
GST_EXPORT
GST_GES_API
GType ges_command_line_formatter_get_type (void);
GST_EXPORT
GST_GES_API
gchar * ges_command_line_formatter_get_help (gint nargs, gchar ** commands);
G_END_DECLS

View file

@ -134,22 +134,22 @@ struct _GESContainerClass
gpointer _ges_reserved[GES_PADDING_LARGE];
};
GST_EXPORT
GST_GES_API
GType ges_container_get_type (void);
/* Children handling */
GST_EXPORT
GST_GES_API
GList* ges_container_get_children (GESContainer *container, gboolean recursive);
GST_EXPORT
GST_GES_API
gboolean ges_container_add (GESContainer *container, GESTimelineElement *child);
GST_EXPORT
GST_GES_API
gboolean ges_container_remove (GESContainer *container, GESTimelineElement *child);
GST_EXPORT
GST_GES_API
GList * ges_container_ungroup (GESContainer * container, gboolean recursive);
GST_EXPORT
GST_GES_API
GESContainer *ges_container_group (GList *containers);
GST_EXPORT
GST_GES_API
gboolean ges_container_edit (GESContainer * container,
GList * layers, gint new_layer_priority,
GESEditMode mode,

View file

@ -54,7 +54,7 @@ struct _GESEffectAsset
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_effect_asset_get_type (void) G_GNUC_CONST;
G_END_DECLS

View file

@ -70,10 +70,10 @@ struct _GESEffectClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_effect_clip_get_type (void);
GST_EXPORT GESEffectClip *
GST_GES_API GESEffectClip *
ges_effect_clip_new (const gchar * video_bin_description,
const gchar * audio_bin_description);

View file

@ -76,13 +76,13 @@ struct _GESEffectClass
};
GST_EXPORT
GST_GES_API
GType ges_effect_get_type (void);
GST_EXPORT GESEffect*
GST_GES_API GESEffect*
ges_effect_new (const gchar * bin_description);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_effect_class_register_rate_property (GESEffectClass *klass, const gchar *element_name, const gchar *property_name);
G_END_DECLS

View file

@ -22,11 +22,12 @@
#define __GES_ENUMS_H__
#include <gst/gst.h>
#include <ges/ges-prelude.h>
G_BEGIN_DECLS
#define GES_TYPE_TRACK_TYPE (ges_track_type_get_type ())
GST_EXPORT
GST_GES_API
GType ges_track_type_get_type (void);
/**
@ -54,7 +55,7 @@ typedef enum {
} GESTrackType;
#define GES_META_FLAG_TYPE (ges_meta_flag_get_type ())
GST_EXPORT
GST_GES_API
GType ges_meta_flag_get_type (void);
/**
@ -224,7 +225,7 @@ typedef enum {
#define GES_VIDEO_STANDARD_TRANSITION_TYPE_TYPE \
(ges_video_standard_transition_type_get_type())
GST_EXPORT
GST_GES_API
GType ges_video_standard_transition_type_get_type (void);
/**
@ -251,7 +252,7 @@ typedef enum {
#define GES_TEXT_VALIGN_TYPE\
(ges_text_valign_get_type ())
GST_EXPORT
GST_GES_API
GType ges_text_valign_get_type (void);
/**
@ -276,7 +277,7 @@ typedef enum {
#define GES_TEXT_HALIGN_TYPE\
(ges_text_halign_get_type ())
GST_EXPORT
GST_GES_API
GType ges_text_halign_get_type (void);
/**
@ -328,7 +329,7 @@ typedef enum {
#define GES_VIDEO_TEST_PATTERN_TYPE\
ges_video_test_pattern_get_type()
GST_EXPORT
GST_GES_API
GType ges_video_test_pattern_get_type (void);
/**
@ -352,7 +353,7 @@ typedef enum {
#define GES_TYPE_PIPELINE_FLAGS\
ges_pipeline_flags_get_type()
GST_EXPORT
GST_GES_API
GType ges_pipeline_flags_get_type (void);
/**
@ -393,7 +394,7 @@ typedef enum {
#define GES_TYPE_EDIT_MODE ges_edit_mode_get_type()
GST_EXPORT
GST_GES_API
GType ges_edit_mode_get_type (void);
/**
@ -413,11 +414,11 @@ typedef enum {
#define GES_TYPE_EDGE ges_edge_get_type()
GST_EXPORT
GST_GES_API
GType ges_edge_get_type (void);
GST_EXPORT
GST_GES_API
const gchar * ges_track_type_name (GESTrackType type);
G_END_DECLS

View file

@ -37,7 +37,7 @@ G_BEGIN_DECLS
#define GES_IS_EXTRACTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_EXTRACTABLE))
#define GES_EXTRACTABLE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GES_TYPE_EXTRACTABLE, GESExtractableInterface))
GST_EXPORT
GST_GES_API
GType ges_extractable_get_type (void);
/**
@ -85,13 +85,13 @@ struct _GESExtractableInterface
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GESAsset* ges_extractable_get_asset (GESExtractable *self);
GST_EXPORT
GST_GES_API
gboolean ges_extractable_set_asset (GESExtractable *self,
GESAsset *asset);
GST_EXPORT
GST_GES_API
gchar * ges_extractable_get_id (GESExtractable *self);
G_END_DECLS

View file

@ -138,10 +138,10 @@ struct _GESFormatterClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_formatter_get_type (void);
GST_EXPORT
GST_GES_API
void ges_formatter_class_register_metas (GESFormatterClass * klass,
const gchar *name,
const gchar *description,
@ -150,25 +150,25 @@ void ges_formatter_class_register_metas (GESFormatterClass * klass,
gdouble version,
GstRank rank);
GST_EXPORT
GST_GES_API
gboolean ges_formatter_can_load_uri (const gchar * uri, GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_formatter_can_save_uri (const gchar * uri, GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_formatter_load_from_uri (GESFormatter * formatter,
GESTimeline *timeline,
const gchar *uri,
GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_formatter_save_to_uri (GESFormatter * formatter,
GESTimeline *timeline,
const gchar *uri,
gboolean overwrite,
GError **error);
GST_EXPORT
GST_GES_API
GESAsset *ges_formatter_get_default (void);
G_END_DECLS

View file

@ -51,9 +51,9 @@ struct _GESGroupClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_group_get_type (void);
GST_EXPORT
GST_GES_API
GESGroup *ges_group_new (void);
G_END_DECLS

View file

@ -68,7 +68,7 @@ struct _GESImageSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_image_source_get_type (void);
G_END_DECLS

View file

@ -145,10 +145,10 @@ ges_asset_cache_put (GESAsset * asset, GTask *task);
G_GNUC_INTERNAL gboolean
ges_asset_cache_set_loaded(GType extractable_type, const gchar * id, GError *error);
GST_EXPORT GESAsset*
GST_GES_API GESAsset*
ges_asset_cache_lookup(GType extractable_type, const gchar * id);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_asset_try_proxy (GESAsset *asset, const gchar *new_id);
G_GNUC_INTERNAL gboolean

View file

@ -89,23 +89,23 @@ struct _GESLayerClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_layer_get_type (void);
GST_EXPORT
GST_GES_API
GESLayer* ges_layer_new (void);
GST_EXPORT
GST_GES_API
void ges_layer_set_timeline (GESLayer * layer,
GESTimeline * timeline);
GST_EXPORT GESTimeline *
GST_GES_API GESTimeline *
ges_layer_get_timeline (GESLayer * layer);
GST_EXPORT
GST_GES_API
gboolean ges_layer_add_clip (GESLayer * layer,
GESClip * clip);
GST_EXPORT
GST_GES_API
GESClip * ges_layer_add_asset (GESLayer *layer,
GESAsset *asset,
GstClockTime start,
@ -113,33 +113,33 @@ GESClip * ges_layer_add_asset (GESLayer *layer,
GstClockTime duration,
GESTrackType track_types);
GST_EXPORT
GST_GES_API
gboolean ges_layer_remove_clip (GESLayer * layer,
GESClip * clip);
GST_EXPORT
GST_GES_API
void ges_layer_set_priority (GESLayer * layer,
guint priority);
GST_EXPORT
GST_GES_API
gboolean ges_layer_is_empty (GESLayer * layer);
GST_EXPORT
GST_GES_API
GList* ges_layer_get_clips_in_interval (GESLayer * layer, GstClockTime start, GstClockTime end);
GST_EXPORT
GST_GES_API
guint ges_layer_get_priority (GESLayer * layer);
GST_EXPORT
GST_GES_API
gboolean ges_layer_get_auto_transition (GESLayer * layer);
GST_EXPORT
GST_GES_API
void ges_layer_set_auto_transition (GESLayer * layer,
gboolean auto_transition);
GST_EXPORT
GST_GES_API
GList* ges_layer_get_clips (GESLayer * layer);
GST_EXPORT
GST_GES_API
GstClockTime ges_layer_get_duration (GESLayer *layer);
G_END_DECLS

View file

@ -118,186 +118,186 @@ struct _GESMetaContainerInterface {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_meta_container_get_type (void);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_boolean (GESMetaContainer *container,
const gchar* meta_item,
gboolean value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_int (GESMetaContainer *container,
const gchar* meta_item,
gint value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_uint (GESMetaContainer *container,
const gchar* meta_item,
guint value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_int64 (GESMetaContainer *container,
const gchar* meta_item,
gint64 value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_uint64 (GESMetaContainer *container,
const gchar* meta_item,
guint64 value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_float (GESMetaContainer *container,
const gchar* meta_item,
gfloat value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_double (GESMetaContainer *container,
const gchar* meta_item,
gdouble value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_date (GESMetaContainer *container,
const gchar* meta_item,
const GDate* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_date_time (GESMetaContainer *container,
const gchar* meta_item,
const GstDateTime* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_string (GESMetaContainer *container,
const gchar* meta_item,
const gchar* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_set_meta (GESMetaContainer * container,
const gchar* meta_item,
const GValue *value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_boolean (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
gboolean value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_int (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
gint value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_uint (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
guint value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_int64 (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
gint64 value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_uint64 (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
guint64 value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_float (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
gfloat value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_double (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
gdouble value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_date (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
const GDate* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_date_time (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
const GstDateTime* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta_string (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
const gchar* value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_register_meta (GESMetaContainer *container,
GESMetaFlag flags,
const gchar* meta_item,
const GValue * value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_check_meta_registered (GESMetaContainer *container,
const gchar * meta_item,
GESMetaFlag * flags,
GType * type);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_boolean (GESMetaContainer *container,
const gchar* meta_item,
gboolean* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_int (GESMetaContainer *container,
const gchar* meta_item,
gint* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_uint (GESMetaContainer *container,
const gchar* meta_item,
guint* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_int64 (GESMetaContainer *container,
const gchar* meta_item,
gint64* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_uint64 (GESMetaContainer *container,
const gchar* meta_item,
guint64* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_float (GESMetaContainer *container,
const gchar* meta_item,
gfloat* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_double (GESMetaContainer *container,
const gchar* meta_item,
gdouble* dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_date (GESMetaContainer *container,
const gchar* meta_item,
GDate** dest);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_get_date_time (GESMetaContainer *container,
const gchar* meta_item,
GstDateTime** dest);
GST_EXPORT const gchar *
GST_GES_API const gchar *
ges_meta_container_get_string (GESMetaContainer * container,
const gchar * meta_item);
GST_EXPORT const GValue *
GST_GES_API const GValue *
ges_meta_container_get_meta (GESMetaContainer * container,
const gchar * key);
@ -307,15 +307,15 @@ typedef void
const GValue *value,
gpointer user_data);
GST_EXPORT void
GST_GES_API void
ges_meta_container_foreach (GESMetaContainer *container,
GESMetaForeachFunc func,
gpointer user_data);
GST_EXPORT gchar *
GST_GES_API gchar *
ges_meta_container_metas_to_string (GESMetaContainer *container);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_meta_container_add_metas_from_string (GESMetaContainer *container,
const gchar *str);

View file

@ -62,10 +62,10 @@ struct _GESMultiFileSourceClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_multi_file_source_get_type (void);
GST_EXPORT
GST_GES_API
GESMultiFileSource *ges_multi_file_source_new (gchar * uri);
#define GES_MULTI_FILE_URI_PREFIX "multifile://"

View file

@ -74,7 +74,7 @@ struct _GESOperationClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_operation_clip_get_type (void);
G_END_DECLS

View file

@ -76,7 +76,7 @@ struct _GESOperationClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_operation_get_type (void);
G_END_DECLS

View file

@ -73,7 +73,7 @@ struct _GESOverlayClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_overlay_clip_get_type (void);
G_END_DECLS

View file

@ -75,50 +75,50 @@ struct _GESPipelineClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_pipeline_get_type (void);
GST_EXPORT
GST_GES_API
GESPipeline* ges_pipeline_new (void);
GST_EXPORT
GST_GES_API
gboolean ges_pipeline_set_timeline (GESPipeline * pipeline,
GESTimeline * timeline);
GST_EXPORT
GST_GES_API
gboolean ges_pipeline_set_render_settings (GESPipeline *pipeline,
const gchar * output_uri,
GstEncodingProfile *profile);
GST_EXPORT
GST_GES_API
gboolean ges_pipeline_set_mode (GESPipeline *pipeline,
GESPipelineFlags mode);
GST_EXPORT
GST_GES_API
GESPipelineFlags ges_pipeline_get_mode (GESPipeline *pipeline);
GST_EXPORT GstSample *
GST_GES_API GstSample *
ges_pipeline_get_thumbnail(GESPipeline *self, GstCaps *caps);
GST_EXPORT GstSample *
GST_GES_API GstSample *
ges_pipeline_get_thumbnail_rgb24(GESPipeline *self,
gint width, gint height);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_pipeline_save_thumbnail(GESPipeline *self,
int width, int height, const gchar *format, const gchar *location,
GError **error);
GST_EXPORT GstElement *
GST_GES_API GstElement *
ges_pipeline_preview_get_video_sink (GESPipeline * self);
GST_EXPORT void
GST_GES_API void
ges_pipeline_preview_set_video_sink (GESPipeline * self,
GstElement * sink);
GST_EXPORT GstElement *
GST_GES_API GstElement *
ges_pipeline_preview_get_audio_sink (GESPipeline * self);
GST_EXPORT void
GST_GES_API void
ges_pipeline_preview_set_audio_sink (GESPipeline * self,
GstElement * sink);

View file

@ -67,9 +67,9 @@ struct _GESPitiviFormatterClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_pitivi_formatter_get_type (void);
GST_EXPORT
GST_GES_API
GESPitiviFormatter *ges_pitivi_formatter_new (void);
G_END_DECLS

31
ges/ges-prelude.h Normal file
View file

@ -0,0 +1,31 @@
/* GStreamer GES Library
* Copyright (C) 2018 GStreamer developers
*
* ges-prelude.h: prelude include header for gst-ges library
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_GES_PRELUDE_H__
#define __GST_GES_PRELUDE_H__
#include <gst/gst.h>
#ifndef GST_GES_API
#define GST_GES_API GST_EXPORT
#endif
#endif /* __GST_GES_PRELUDE_H__ */

View file

@ -37,7 +37,7 @@ G_BEGIN_DECLS
typedef struct _GESProjectPrivate GESProjectPrivate;
GST_EXPORT
GST_GES_API
GType ges_project_get_type (void);
struct _GESProject
@ -75,53 +75,53 @@ struct _GESProjectClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
gboolean ges_project_add_asset (GESProject* project,
GESAsset *asset);
GST_EXPORT
GST_GES_API
gboolean ges_project_remove_asset (GESProject *project,
GESAsset * asset);
GST_EXPORT
GST_GES_API
GList * ges_project_list_assets (GESProject * project,
GType filter);
GST_EXPORT
GST_GES_API
gboolean ges_project_save (GESProject * project,
GESTimeline * timeline,
const gchar *uri,
GESAsset * formatter_asset,
gboolean overwrite,
GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_project_load (GESProject * project,
GESTimeline * timeline,
GError **error);
GST_EXPORT
GST_GES_API
GESProject * ges_project_new (const gchar *uri);
GST_EXPORT
GST_GES_API
gchar * ges_project_get_uri (GESProject *project);
GST_EXPORT
GST_GES_API
GESAsset * ges_project_get_asset (GESProject * project,
const gchar *id,
GType extractable_type);
GST_EXPORT
GST_GES_API
gboolean ges_project_create_asset (GESProject * project,
const gchar *id,
GType extractable_type);
GST_EXPORT
GST_GES_API
GESAsset * ges_project_create_asset_sync (GESProject * project,
const gchar * id,
GType extractable_type,
GError **error);
GST_EXPORT
GST_GES_API
GList * ges_project_get_loading_assets (GESProject * project);
GST_EXPORT
GST_GES_API
gboolean ges_project_add_encoding_profile (GESProject *project,
GstEncodingProfile *profile);
GST_EXPORT
GST_GES_API
const GList *ges_project_list_encoding_profiles (GESProject *project);
GST_EXPORT
GST_GES_API
gboolean ges_add_missing_uri_relocation_uri (const gchar * uri,
gboolean recurse);

View file

@ -22,10 +22,11 @@
#define __GES_SCREENSHOT_H__
#include <gst/gst.h>
#include <ges/ges-prelude.h>
G_BEGIN_DECLS
GST_EXPORT GstSample *
GST_GES_API GstSample *
ges_play_sink_convert_frame (GstElement * playsink, GstCaps * caps);
G_END_DECLS

View file

@ -61,10 +61,10 @@ struct _GESSmartAdder
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_smart_adder_get_type (void) G_GNUC_CONST;
GST_EXPORT
GST_GES_API
GstElement* ges_smart_adder_new (GESTrack *track);
G_END_DECLS

View file

@ -75,7 +75,7 @@ struct _GESSourceClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_source_clip_get_type (void);
G_END_DECLS

View file

@ -77,7 +77,7 @@ struct _GESSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_source_get_type (void);
G_END_DECLS

View file

@ -75,37 +75,37 @@ struct _GESTestClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_test_clip_get_type (void);
GST_EXPORT void
GST_GES_API void
ges_test_clip_set_mute (GESTestClip * self, gboolean mute);
GST_EXPORT void
GST_GES_API void
ges_test_clip_set_vpattern (GESTestClip * self,
GESVideoTestPattern vpattern);
GST_EXPORT void
GST_GES_API void
ges_test_clip_set_frequency (GESTestClip * self, gdouble freq);
GST_EXPORT void
GST_GES_API void
ges_test_clip_set_volume (GESTestClip * self,
gdouble volume);
GST_EXPORT GESVideoTestPattern
GST_GES_API GESVideoTestPattern
ges_test_clip_get_vpattern (GESTestClip * self);
GST_EXPORT
GST_GES_API
gboolean ges_test_clip_is_muted (GESTestClip * self);
GST_EXPORT
GST_GES_API
gdouble ges_test_clip_get_frequency (GESTestClip * self);
GST_EXPORT
GST_GES_API
gdouble ges_test_clip_get_volume (GESTestClip * self);
GST_EXPORT
GST_GES_API
GESTestClip* ges_test_clip_new (void);
GST_EXPORT
GST_GES_API
GESTestClip* ges_test_clip_new_for_nick(gchar * nick);
G_END_DECLS

View file

@ -69,60 +69,60 @@ struct _GESTextOverlayClipClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_text_overlay_clip_get_type (void);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_text (GESTextOverlayClip * self,
const gchar * text);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_font_desc (GESTextOverlayClip * self,
const gchar * font_desc);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_valign (GESTextOverlayClip * self,
GESTextVAlign valign);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_halign (GESTextOverlayClip * self,
GESTextHAlign halign);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_color (GESTextOverlayClip * self,
guint32 color);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_xpos (GESTextOverlayClip * self,
gdouble position);
GST_EXPORT void
GST_GES_API void
ges_text_overlay_clip_set_ypos (GESTextOverlayClip * self,
gdouble position);
GST_EXPORT
GST_GES_API
const gchar *ges_text_overlay_clip_get_text (GESTextOverlayClip * self);
GST_EXPORT
GST_GES_API
const gchar *ges_text_overlay_clip_get_font_desc (GESTextOverlayClip *
self);
GST_EXPORT GESTextVAlign
GST_GES_API GESTextVAlign
ges_text_overlay_clip_get_valignment (GESTextOverlayClip * self);
GST_EXPORT const guint32
GST_GES_API const guint32
ges_text_overlay_clip_get_color (GESTextOverlayClip * self);
GST_EXPORT const gdouble
GST_GES_API const gdouble
ges_text_overlay_clip_get_xpos (GESTextOverlayClip * self);
GST_EXPORT const gdouble
GST_GES_API const gdouble
ges_text_overlay_clip_get_ypos (GESTextOverlayClip * self);
GST_EXPORT GESTextHAlign
GST_GES_API GESTextHAlign
ges_text_overlay_clip_get_halignment (GESTextOverlayClip * self);
GST_EXPORT
GST_GES_API
GESTextOverlayClip *ges_text_overlay_clip_new (void);
G_END_DECLS

View file

@ -64,51 +64,51 @@ struct _GESTextOverlayClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_text_overlay_get_type (void);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_text (GESTextOverlay * self,
const gchar * text);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_font_desc (GESTextOverlay * self,
const gchar * font_desc);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_halignment (GESTextOverlay * self,
GESTextHAlign halign);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_valignment (GESTextOverlay * self,
GESTextVAlign valign);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_color (GESTextOverlay * self,
guint32 color);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_xpos (GESTextOverlay * self,
gdouble position);
GST_EXPORT
GST_GES_API
void ges_text_overlay_set_ypos (GESTextOverlay * self,
gdouble position);
GST_EXPORT
GST_GES_API
const gchar *ges_text_overlay_get_text (GESTextOverlay * self);
GST_EXPORT
GST_GES_API
const char *ges_text_overlay_get_font_desc (GESTextOverlay * self);
GST_EXPORT
GST_GES_API
GESTextHAlign ges_text_overlay_get_halignment (GESTextOverlay *
self);
GST_EXPORT
GST_GES_API
GESTextVAlign ges_text_overlay_get_valignment (GESTextOverlay *
self);
GST_EXPORT
GST_GES_API
const guint32 ges_text_overlay_get_color (GESTextOverlay * self);
GST_EXPORT
GST_GES_API
const gdouble ges_text_overlay_get_xpos (GESTextOverlay * self);
GST_EXPORT
GST_GES_API
const gdouble ges_text_overlay_get_ypos (GESTextOverlay * self);
GST_EXPORT
GST_GES_API
GESTextOverlay *ges_text_overlay_new (void);
G_END_DECLS

View file

@ -201,120 +201,120 @@ struct _GESTimelineElementClass
gpointer _ges_reserved[GES_PADDING_LARGE - 2];
};
GST_EXPORT
GST_GES_API
GType ges_timeline_element_get_type (void) G_GNUC_CONST;
GST_EXPORT GESTimelineElement *
GST_GES_API GESTimelineElement *
ges_timeline_element_get_toplevel_parent (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
GESTimelineElement * ges_timeline_element_get_parent (GESTimelineElement * self);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_set_parent (GESTimelineElement *self, GESTimelineElement *parent);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_set_timeline (GESTimelineElement *self, GESTimeline *timeline);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_start (GESTimelineElement *self, GstClockTime start);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_inpoint (GESTimelineElement *self, GstClockTime inpoint);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_duration (GESTimelineElement *self, GstClockTime duration);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_max_duration (GESTimelineElement *self, GstClockTime maxduration);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_priority (GESTimelineElement *self, guint32 priority);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_element_get_start (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_element_get_inpoint (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_element_get_duration (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_element_get_max_duration (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
GESTimeline * ges_timeline_element_get_timeline (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
guint32 ges_timeline_element_get_priority (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_ripple (GESTimelineElement *self, GstClockTime start);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_ripple_end (GESTimelineElement *self, GstClockTime end);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_roll_start (GESTimelineElement *self, GstClockTime start);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_roll_end (GESTimelineElement *self, GstClockTime end);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_trim (GESTimelineElement *self, GstClockTime start);
GST_EXPORT
GST_GES_API
GESTimelineElement * ges_timeline_element_copy (GESTimelineElement *self, gboolean deep);
GST_EXPORT
GST_GES_API
gchar * ges_timeline_element_get_name (GESTimelineElement *self);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_set_name (GESTimelineElement *self, const gchar *name);
GST_EXPORT GParamSpec **
GST_GES_API GParamSpec **
ges_timeline_element_list_children_properties (GESTimelineElement *self,
guint *n_properties);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_lookup_child (GESTimelineElement *self,
const gchar *prop_name,
GObject **child,
GParamSpec **pspec);
GST_EXPORT void
GST_GES_API void
ges_timeline_element_get_child_property_by_pspec (GESTimelineElement * self,
GParamSpec * pspec,
GValue * value);
GST_EXPORT void
GST_GES_API void
ges_timeline_element_get_child_property_valist (GESTimelineElement * self,
const gchar * first_property_name,
va_list var_args);
GST_EXPORT void
GST_GES_API void
ges_timeline_element_get_child_properties (GESTimelineElement *self,
const gchar * first_property_name,
...) G_GNUC_NULL_TERMINATED;
GST_EXPORT void
GST_GES_API void
ges_timeline_element_set_child_property_valist (GESTimelineElement * self,
const gchar * first_property_name,
va_list var_args);
GST_EXPORT void
GST_GES_API void
ges_timeline_element_set_child_property_by_pspec (GESTimelineElement * self,
GParamSpec * pspec,
GValue * value);
GST_EXPORT
GST_GES_API
void ges_timeline_element_set_child_properties (GESTimelineElement * self,
const gchar * first_property_name,
...) G_GNUC_NULL_TERMINATED;
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_set_child_property (GESTimelineElement *self,
const gchar *property_name,
GValue * value);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_get_child_property (GESTimelineElement *self,
const gchar *property_name,
GValue * value);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_add_child_property (GESTimelineElement * self,
GParamSpec *pspec,
GObject *child);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_element_remove_child_property(GESTimelineElement * self,
GParamSpec *pspec);
GST_EXPORT
GST_GES_API
GESTimelineElement * ges_timeline_element_paste (GESTimelineElement * self,
GstClockTime paste_position);
GST_EXPORT
GST_GES_API
GESTrackType ges_timeline_element_get_track_types (GESTimelineElement * self);
G_END_DECLS

View file

@ -99,66 +99,66 @@ struct _GESTimelineClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_timeline_get_type (void);
GST_EXPORT
GST_GES_API
GESTimeline* ges_timeline_new (void);
GST_EXPORT
GST_GES_API
GESTimeline* ges_timeline_new_from_uri (const gchar *uri, GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_load_from_uri (GESTimeline *timeline, const gchar *uri, GError **error);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_save_to_uri (GESTimeline * timeline, const gchar * uri,
GESAsset *formatter_asset, gboolean overwrite, GError ** error);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_add_layer (GESTimeline *timeline, GESLayer *layer);
GST_EXPORT
GST_GES_API
GESLayer * ges_timeline_append_layer (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_remove_layer (GESTimeline *timeline, GESLayer *layer);
GST_EXPORT
GST_GES_API
GList* ges_timeline_get_layers (GESTimeline *timeline);
GST_EXPORT
GST_GES_API
GESLayer* ges_timeline_get_layer (GESTimeline *timeline, guint priority);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_add_track (GESTimeline *timeline, GESTrack *track);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_remove_track (GESTimeline *timeline, GESTrack *track);
GST_EXPORT
GST_GES_API
GESTrack * ges_timeline_get_track_for_pad (GESTimeline *timeline, GstPad *pad);
GST_EXPORT
GST_GES_API
GstPad * ges_timeline_get_pad_for_track (GESTimeline * timeline, GESTrack *track);
GST_EXPORT
GST_GES_API
GList *ges_timeline_get_tracks (GESTimeline *timeline);
GST_EXPORT
GST_GES_API
GList* ges_timeline_get_groups (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_commit (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_commit_sync (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_get_duration (GESTimeline *timeline);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_get_auto_transition (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
void ges_timeline_set_auto_transition (GESTimeline * timeline, gboolean auto_transition);
GST_EXPORT
GST_GES_API
GstClockTime ges_timeline_get_snapping_distance (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
void ges_timeline_set_snapping_distance (GESTimeline * timeline, GstClockTime snapping_distance);
GST_EXPORT
GST_GES_API
GESTimelineElement * ges_timeline_get_element (GESTimeline * timeline, const gchar *name);
GST_EXPORT
GST_GES_API
gboolean ges_timeline_is_empty (GESTimeline * timeline);
GST_EXPORT
GST_GES_API
GESTimelineElement * ges_timeline_paste_element (GESTimeline * timeline,
GESTimelineElement * element, GstClockTime position, gint layer_priority);

View file

@ -71,66 +71,66 @@ struct _GESTitleClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_title_clip_get_type (void);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_text( GESTitleClip * self,
const gchar * text);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_font_desc (GESTitleClip * self,
const gchar * font_desc);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_valignment (GESTitleClip * self,
GESTextVAlign valign);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_halignment (GESTitleClip * self,
GESTextHAlign halign);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_color (GESTitleClip * self,
guint32 color);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_background (GESTitleClip * self,
guint32 background);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_xpos (GESTitleClip * self,
gdouble position);
GST_EXPORT void
GST_GES_API void
ges_title_clip_set_ypos (GESTitleClip * self,
gdouble position);
GST_EXPORT const gchar*
GST_GES_API const gchar*
ges_title_clip_get_font_desc (GESTitleClip * self);
GST_EXPORT GESTextVAlign
GST_GES_API GESTextVAlign
ges_title_clip_get_valignment (GESTitleClip * self);
GST_EXPORT GESTextHAlign
GST_GES_API GESTextHAlign
ges_title_clip_get_halignment (GESTitleClip * self);
GST_EXPORT const guint32
GST_GES_API const guint32
ges_title_clip_get_text_color (GESTitleClip * self);
GST_EXPORT const guint32
GST_GES_API const guint32
ges_title_clip_get_background_color (GESTitleClip * self);
GST_EXPORT const gdouble
GST_GES_API const gdouble
ges_title_clip_get_xpos (GESTitleClip * self);
GST_EXPORT const gdouble
GST_GES_API const gdouble
ges_title_clip_get_ypos (GESTitleClip * self);
GST_EXPORT
GST_GES_API
const gchar* ges_title_clip_get_text (GESTitleClip * self);
GST_EXPORT
GST_GES_API
GESTitleClip* ges_title_clip_new (void);
G_END_DECLS

View file

@ -73,53 +73,53 @@ struct _GESTitleSourceClass {
gpointer _ges_reserved[GES_PADDING - 1];
};
GST_EXPORT
GST_GES_API
GType ges_title_source_get_type (void);
GST_EXPORT
GST_GES_API
void ges_title_source_set_text (GESTitleSource *self,
const gchar *text);
GST_EXPORT
GST_GES_API
void ges_title_source_set_font_desc (GESTitleSource *self,
const gchar *font_desc);
GST_EXPORT
GST_GES_API
void ges_title_source_set_halignment (GESTitleSource *self,
GESTextHAlign halign);
GST_EXPORT
GST_GES_API
void ges_title_source_set_valignment (GESTitleSource *self,
GESTextVAlign valign);
GST_EXPORT
GST_GES_API
void ges_title_source_set_text_color (GESTitleSource *self,
guint32 color);
GST_EXPORT
GST_GES_API
void ges_title_source_set_background_color (GESTitleSource *self,
guint32 color);
GST_EXPORT
GST_GES_API
void ges_title_source_set_xpos (GESTitleSource *self,
gdouble position);
GST_EXPORT
GST_GES_API
void ges_title_source_set_ypos (GESTitleSource *self,
gdouble position);
GST_EXPORT
GST_GES_API
const gchar *ges_title_source_get_text (GESTitleSource *source);
GST_EXPORT
GST_GES_API
const gchar *ges_title_source_get_font_desc (GESTitleSource *source);
GST_EXPORT
GST_GES_API
GESTextHAlign ges_title_source_get_halignment (GESTitleSource *source);
GST_EXPORT
GST_GES_API
GESTextVAlign ges_title_source_get_valignment (GESTitleSource *source);
GST_EXPORT
GST_GES_API
const guint32 ges_title_source_get_text_color (GESTitleSource *source);
GST_EXPORT
GST_GES_API
const guint32 ges_title_source_get_background_color (GESTitleSource *source);
GST_EXPORT
GST_GES_API
const gdouble ges_title_source_get_xpos (GESTitleSource *source);
GST_EXPORT
GST_GES_API
const gdouble ges_title_source_get_ypos (GESTitleSource *source);
G_END_DECLS

View file

@ -36,7 +36,7 @@ G_BEGIN_DECLS
typedef struct _GESTrackElementAssetPrivate GESTrackElementAssetPrivate;
GST_EXPORT
GST_GES_API
GType ges_track_element_asset_get_type (void);
struct _GESTrackElementAsset
@ -57,9 +57,9 @@ struct _GESTrackElementAssetClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
const GESTrackType ges_track_element_asset_get_track_type (GESTrackElementAsset *asset);
GST_EXPORT
GST_GES_API
void ges_track_element_asset_set_track_type (GESTrackElementAsset * asset, GESTrackType type);
G_END_DECLS

View file

@ -125,106 +125,106 @@ struct _GESTrackElementClass {
gpointer _ges_reserved[GES_PADDING_LARGE];
};
GST_EXPORT
GST_GES_API
GType ges_track_element_get_type (void);
GST_EXPORT
GST_GES_API
GESTrack* ges_track_element_get_track (GESTrackElement * object);
GST_EXPORT
GST_GES_API
GESTrackType ges_track_element_get_track_type (GESTrackElement * object);
GST_EXPORT
GST_GES_API
void ges_track_element_set_track_type (GESTrackElement * object,
GESTrackType type);
GST_EXPORT
GST_GES_API
GstElement * ges_track_element_get_nleobject (GESTrackElement * object);
GST_EXPORT
GST_GES_API
GstElement * ges_track_element_get_gnlobject (GESTrackElement * object);
GST_EXPORT
GST_GES_API
GstElement * ges_track_element_get_element (GESTrackElement * object);
GST_EXPORT
GST_GES_API
gboolean ges_track_element_set_active (GESTrackElement * object,
gboolean active);
GST_EXPORT
GST_GES_API
gboolean ges_track_element_is_active (GESTrackElement * object);
GST_EXPORT GParamSpec **
GST_GES_API GParamSpec **
ges_track_element_list_children_properties (GESTrackElement *object,
guint *n_properties);
GST_EXPORT
GST_GES_API
gboolean ges_track_element_lookup_child (GESTrackElement *object,
const gchar *prop_name,
GstElement **element,
GParamSpec **pspec);
GST_EXPORT void
GST_GES_API void
ges_track_element_get_child_property_by_pspec (GESTrackElement * object,
GParamSpec * pspec,
GValue * value);
GST_EXPORT void
GST_GES_API void
ges_track_element_get_child_property_valist (GESTrackElement * object,
const gchar * first_property_name,
va_list var_args);
GST_EXPORT
GST_GES_API
void ges_track_element_get_child_properties (GESTrackElement *object,
const gchar * first_property_name,
...) G_GNUC_NULL_TERMINATED;
GST_EXPORT void
GST_GES_API void
ges_track_element_set_child_property_valist (GESTrackElement * object,
const gchar * first_property_name,
va_list var_args);
GST_EXPORT void
GST_GES_API void
ges_track_element_set_child_property_by_pspec (GESTrackElement * object,
GParamSpec * pspec,
GValue * value);
GST_EXPORT
GST_GES_API
void ges_track_element_set_child_properties (GESTrackElement * object,
const gchar * first_property_name,
...) G_GNUC_NULL_TERMINATED;
GST_EXPORT
GST_GES_API
gboolean ges_track_element_set_child_property (GESTrackElement *object,
const gchar *property_name,
GValue * value);
GST_EXPORT
GST_GES_API
gboolean ges_track_element_get_child_property (GESTrackElement *object,
const gchar *property_name,
GValue * value);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_track_element_edit (GESTrackElement * object,
GList *layers, GESEditMode mode,
GESEdge edge, guint64 position);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_track_element_set_control_source (GESTrackElement *object,
GstControlSource *source,
const gchar *property_name,
const gchar *binding_type);
GST_EXPORT GstControlBinding *
GST_GES_API GstControlBinding *
ges_track_element_get_control_binding (GESTrackElement *object,
const gchar *property_name);
GST_EXPORT void
GST_GES_API void
ges_track_element_add_children_props (GESTrackElement *self,
GstElement *element,
const gchar ** wanted_categories,
const gchar **blacklist,
const gchar **whitelist);
GST_EXPORT GHashTable *
GST_GES_API GHashTable *
ges_track_element_get_all_control_bindings (GESTrackElement * trackelement);
GST_EXPORT gboolean
GST_GES_API gboolean
ges_track_element_remove_control_binding (GESTrackElement * object,
const gchar * property_name);
G_END_DECLS

View file

@ -81,35 +81,35 @@ struct _GESTrackClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
const GstCaps* ges_track_get_caps (GESTrack *track);
GST_EXPORT
GST_GES_API
GList* ges_track_get_elements (GESTrack *track);
GST_EXPORT
GST_GES_API
const GESTimeline* ges_track_get_timeline (GESTrack *track);
GST_EXPORT
GST_GES_API
gboolean ges_track_commit (GESTrack *track);
GST_EXPORT
GST_GES_API
void ges_track_set_timeline (GESTrack *track, GESTimeline *timeline);
GST_EXPORT
GST_GES_API
gboolean ges_track_add_element (GESTrack *track, GESTrackElement *object);
GST_EXPORT
GST_GES_API
gboolean ges_track_remove_element (GESTrack *track, GESTrackElement *object);
GST_EXPORT
GST_GES_API
void ges_track_set_create_element_for_gap_func (GESTrack *track, GESCreateElementForGapFunc func);
GST_EXPORT
GST_GES_API
void ges_track_set_mixing (GESTrack *track, gboolean mixing);
GST_EXPORT
GST_GES_API
gboolean ges_track_get_mixing (GESTrack *track);
GST_EXPORT
GST_GES_API
void ges_track_set_restriction_caps (GESTrack *track, const GstCaps *caps);
GST_EXPORT
GST_GES_API
void ges_track_update_restriction_caps (GESTrack *track, const GstCaps *caps);
/* standard methods */
GST_EXPORT
GST_GES_API
GType ges_track_get_type (void);
GST_EXPORT
GST_GES_API
GESTrack* ges_track_new (GESTrackType type, GstCaps * caps);
G_END_DECLS

View file

@ -78,12 +78,12 @@ struct _GESTransitionClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_transition_clip_get_type (void);
GST_EXPORT
GST_GES_API
GESTransitionClip *ges_transition_clip_new (GESVideoStandardTransitionType vtype);
GST_EXPORT
GST_GES_API
GESTransitionClip *ges_transition_clip_new_for_nick (char *nick);
G_END_DECLS

View file

@ -81,7 +81,7 @@ struct _GESTransitionClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_transition_get_type (void);
G_END_DECLS

View file

@ -22,6 +22,7 @@
#define __GES_TYPES_H__
#include <glib.h>
#include <ges/ges-prelude.h>
G_BEGIN_DECLS

View file

@ -43,7 +43,7 @@ G_BEGIN_DECLS
typedef struct _GESUriClipAssetPrivate GESUriClipAssetPrivate;
GST_EXPORT
GST_GES_API
GType ges_uri_clip_asset_get_type (void);
struct _GESUriClipAsset
@ -68,23 +68,23 @@ struct _GESUriClipAssetClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GstDiscovererInfo *ges_uri_clip_asset_get_info (const GESUriClipAsset * self);
GST_EXPORT
GST_GES_API
GstClockTime ges_uri_clip_asset_get_duration (GESUriClipAsset *self);
GST_EXPORT
GST_GES_API
gboolean ges_uri_clip_asset_is_image (GESUriClipAsset *self);
GST_EXPORT
GST_GES_API
void ges_uri_clip_asset_new (const gchar *uri,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GST_EXPORT
GST_GES_API
GESUriClipAsset* ges_uri_clip_asset_request_sync (const gchar *uri, GError **error);
GST_EXPORT
GST_GES_API
void ges_uri_clip_asset_class_set_timeout (GESUriClipAssetClass *klass,
GstClockTime timeout);
GST_EXPORT
GST_GES_API
const GList * ges_uri_clip_asset_get_stream_assets (GESUriClipAsset *self);
#define GES_TYPE_URI_SOURCE_ASSET ges_uri_source_asset_get_type()
@ -101,7 +101,7 @@ const GList * ges_uri_clip_asset_get_stream_assets (GESUriClipAsset *self);
typedef struct _GESUriSourceAssetPrivate GESUriSourceAssetPrivate;
GST_EXPORT
GST_GES_API
GType ges_uri_source_asset_get_type (void);
struct _GESUriSourceAsset
@ -121,11 +121,11 @@ struct _GESUriSourceAssetClass
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GstDiscovererStreamInfo * ges_uri_source_asset_get_stream_info (GESUriSourceAsset *asset);
GST_EXPORT
GST_GES_API
const gchar * ges_uri_source_asset_get_stream_uri (GESUriSourceAsset *asset);
GST_EXPORT
GST_GES_API
const GESUriClipAsset *ges_uri_source_asset_get_filesource_asset (GESUriSourceAsset *asset);
G_END_DECLS

View file

@ -69,24 +69,24 @@ struct _GESUriClipClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_uri_clip_get_type (void);
GST_EXPORT void
GST_GES_API void
ges_uri_clip_set_mute (GESUriClip * self, gboolean mute);
GST_EXPORT void
GST_GES_API void
ges_uri_clip_set_is_image (GESUriClip * self,
gboolean is_image);
GST_EXPORT
GST_GES_API
gboolean ges_uri_clip_is_muted (GESUriClip * self);
GST_EXPORT
GST_GES_API
gboolean ges_uri_clip_is_image (GESUriClip * self);
GST_EXPORT
GST_GES_API
const gchar *ges_uri_clip_get_uri (GESUriClip * self);
GST_EXPORT
GST_GES_API
GESUriClip* ges_uri_clip_new (const gchar *uri);
G_END_DECLS

View file

@ -26,11 +26,11 @@
G_BEGIN_DECLS
GST_EXPORT
GST_GES_API
GESTimeline * ges_timeline_new_audio_video (void);
GST_EXPORT
GST_GES_API
gboolean ges_pspec_equal (gconstpointer key_spec_1, gconstpointer key_spec_2);
GST_EXPORT
GST_GES_API
guint ges_pspec_hash (gconstpointer key_spec);

View file

@ -88,7 +88,7 @@ struct _GESVideoSourceClass {
} ABI;
};
GST_EXPORT
GST_GES_API
GType ges_video_source_get_type (void);
G_END_DECLS

View file

@ -67,13 +67,13 @@ struct _GESVideoTestSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_video_test_source_get_type (void);
GST_EXPORT void
GST_GES_API void
ges_video_test_source_set_pattern(GESVideoTestSource *self,
GESVideoTestPattern pattern);
GST_EXPORT GESVideoTestPattern
GST_GES_API GESVideoTestPattern
ges_video_test_source_get_pattern (GESVideoTestSource *source);
G_END_DECLS

View file

@ -54,10 +54,10 @@ struct _GESVideoTrack
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_video_track_get_type (void) G_GNUC_CONST;
GST_EXPORT
GST_GES_API
GESVideoTrack * ges_video_track_new (void);
G_END_DECLS

View file

@ -75,27 +75,27 @@ struct _GESVideoTransitionClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_video_transition_get_type (void);
GST_EXPORT
GST_GES_API
GESVideoTransition* ges_video_transition_new (void);
GST_EXPORT
GST_GES_API
gboolean ges_video_transition_set_transition_type (GESVideoTransition * self,
GESVideoStandardTransitionType type);
GST_EXPORT GESVideoStandardTransitionType
GST_GES_API GESVideoStandardTransitionType
ges_video_transition_get_transition_type (GESVideoTransition * trans);
GST_EXPORT
GST_GES_API
void ges_video_transition_set_border (GESVideoTransition * self,
guint value);
GST_EXPORT
GST_GES_API
gint ges_video_transition_get_border (GESVideoTransition * self);
GST_EXPORT
GST_GES_API
void ges_video_transition_set_inverted (GESVideoTransition * self,
gboolean inverted);
GST_EXPORT
GST_GES_API
gboolean ges_video_transition_is_inverted (GESVideoTransition * self);
G_END_DECLS

View file

@ -69,7 +69,7 @@ struct _GESVideoUriSourceClass {
gpointer _ges_reserved[GES_PADDING];
};
GST_EXPORT
GST_GES_API
GType ges_video_uri_source_get_type (void);
G_END_DECLS

View file

@ -48,7 +48,7 @@ typedef struct
gpointer _ges_reserved[GES_PADDING];
} GESXmlFormatterClass;
GST_EXPORT
GST_GES_API
GType ges_xml_formatter_get_type (void);
G_END_DECLS

View file

@ -20,9 +20,11 @@
#ifndef __GES_H__
#define __GES_H__
#include <glib.h>
#include <gst/gst.h>
#include <ges/ges-prelude.h>
#include <ges/ges-types.h>
#include <ges/ges-enums.h>
@ -85,18 +87,18 @@
G_BEGIN_DECLS
GST_EXPORT
GST_GES_API
gboolean ges_init (void);
GST_EXPORT
GST_GES_API
gboolean ges_init_check (int *argc, char **argv[], GError ** err);
GST_EXPORT
GST_GES_API
void ges_deinit (void);
GST_EXPORT
GST_GES_API
void ges_version (guint * major, guint * minor, guint * micro,
guint * nano);
GST_EXPORT GOptionGroup *
GST_GES_API GOptionGroup *
ges_init_get_option_group (void);
GST_EXPORT
GST_GES_API
gboolean ges_validate_register_action_types (void);
G_END_DECLS

View file

@ -67,6 +67,7 @@ ges_sources = [
ges_headers = [
'ges-types.h',
'ges.h',
'ges-prelude.h',
'ges-enums.h',
'ges-gerror.h',
'ges-meta-container.h',