Cleanup a few things on the way.
And move ges-track-element deprecations to a dedicated header file
GES_API
GESContainer *ges_container_group (GList *containers);
-GES_API
+GES_DEPRECATED_FOR(ges_timeline_element_edit)
gboolean ges_container_edit (GESContainer * container,
GList * layers, gint new_layer_priority,
GESEditMode mode,
if (!(gst_uri_has_protocol (uri, "file"))) {
gchar *proto = gst_uri_get_protocol (uri);
- GST_ERROR ("Unspported protocol '%s'", proto);
+ GST_ERROR ("Unsupported protocol '%s'", proto);
g_free (proto);
return FALSE;
}
*
* Returns: TRUE if the timeline data was successfully loaded from the URI,
* else FALSE.
+ *
+ * Deprecated: 1.18: Use @ges_timeline_load_from_uri
*/
gboolean
*
* Returns: TRUE if the timeline data was successfully saved to the URI
* else FALSE.
+ *
+ * Deprecated: 1.18: Use @ges_timeline_save_to_uri
*/
gboolean
*
* Returns: TRUE if the @timeline was properly loaded from the given @uri,
* else FALSE.
- *
- * Deprecated: 1.16: Use @ges_timeline_load_from_uri
**/
typedef gboolean (*GESFormatterLoadFromURIMethod) (GESFormatter *formatter,
GESTimeline *timeline,
*
* Returns: TRUE if the @timeline was properly stored to the given @uri,
* else FALSE.
- *
- * Deprecated: 1.16: Use @ges_timeline_save_to_uri
*/
typedef gboolean (*GESFormatterSaveToURIMethod) (GESFormatter *formatter,
GESTimeline *timeline, const gchar * uri, gboolean overwrite,
GES_API
gboolean ges_formatter_can_save_uri (const gchar * uri, GError **error);
-GES_API
+GES_DEPRECATED_FOR(ges_timeline_load_from_uri)
gboolean ges_formatter_load_from_uri (GESFormatter * formatter,
GESTimeline *timeline,
const gchar *uri,
GError **error);
-GES_API
+GES_DEPRECATED_FOR(ges_timeline_save_to_uri)
gboolean ges_formatter_save_to_uri (GESFormatter * formatter,
GESTimeline *timeline,
const gchar *uri,
gboolean ges_layer_remove_clip (GESLayer * layer,
GESClip * clip);
-GES_API
+GES_DEPRECATED_FOR(ges_timeline_move_layer)
void ges_layer_set_priority (GESLayer * layer,
guint priority);
# endif
#endif
+#ifndef GST_DISABLE_DEPRECATED
+#define GES_DEPRECATED GES_API
+#define GES_DEPRECATED_FOR(f) GES_API
+#else
+#define GES_DEPRECATED G_DEPRECATED GES_API
+#define GES_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GES_API
+#endif
+
#endif /* __GST_GES_PRELUDE_H__ */
G_BEGIN_DECLS
-GES_API GstSample *
+GES_DEPRECATED GstSample *
ges_play_sink_convert_frame (GstElement * playsink, GstCaps * caps);
G_END_DECLS
*
* Sets the priority of the object within the containing layer
*
- * Deprecated: All priority management is done by GES itself now.
+ * Deprecated:1.10: All priority management is done by GES itself now.
* To set #GESEffect priorities #ges_clip_set_top_effect_index should
* be used.
*
GES_API
gboolean ges_timeline_element_set_max_duration (GESTimelineElement *self,
GstClockTime maxduration);
-GES_API
+GES_DEPRECATED
gboolean ges_timeline_element_set_priority (GESTimelineElement *self,
guint32 priority);
GES_API
ges_title_clip_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GESTitleClip *uriclip = GES_TITLE_CLIP (object);
-
switch (property_id) {
case PROP_TEXT:
- ges_title_clip_set_text (uriclip, g_value_get_string (value));
- break;
case PROP_FONT_DESC:
- ges_title_clip_set_font_desc (uriclip, g_value_get_string (value));
- break;
case PROP_HALIGNMENT:
- ges_title_clip_set_halignment (uriclip, g_value_get_enum (value));
- break;
case PROP_VALIGNMENT:
- ges_title_clip_set_valignment (uriclip, g_value_get_enum (value));
- break;
case PROP_COLOR:
- ges_title_clip_set_color (uriclip, g_value_get_uint (value));
- break;
case PROP_BACKGROUND:
- ges_title_clip_set_background (uriclip, g_value_get_uint (value));
- break;
case PROP_XPOS:
- ges_title_clip_set_xpos (uriclip, g_value_get_double (value));
- break;
case PROP_YPOS:
- ges_title_clip_set_ypos (uriclip, g_value_get_double (value));
+ ges_timeline_element_set_child_property (GES_TIMELINE_ELEMENT (object),
+ pspec->name, value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
GST_DEBUG_OBJECT (self, "text:%s", text);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data, "text", text, NULL);
+ ges_timeline_element_set_child_properties (tmp->data, "text", text, NULL);
}
}
GST_DEBUG_OBJECT (self, "font_desc:%s", font_desc);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data,
+ ges_timeline_element_set_child_properties (tmp->data,
"font-desc", font_desc, NULL);
}
}
GST_DEBUG_OBJECT (self, "halign:%d", halign);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data,
+ ges_timeline_element_set_child_properties (tmp->data,
"halignment", halign, NULL);
}
}
GST_DEBUG_OBJECT (self, "valign:%d", valign);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data,
+ ges_timeline_element_set_child_properties (tmp->data,
"valignment", valign, NULL);
}
}
GST_DEBUG_OBJECT (self, "color:%d", color);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data, "color", color, NULL);
+ ges_timeline_element_set_child_properties (tmp->data, "color", color, NULL);
}
}
GST_DEBUG_OBJECT (self, "background:%d", background);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data,
+ ges_timeline_element_set_child_properties (tmp->data,
"foreground-color", background, NULL);
}
}
-
/**
* ges_title_clip_set_xpos:
* @self: the #GESTitleClip* to set
GST_DEBUG_OBJECT (self, "xpos:%f", position);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data, "xpos", position, NULL);
+ ges_timeline_element_set_child_properties (tmp->data, "xpos", position,
+ NULL);
}
}
GST_DEBUG_OBJECT (self, "ypos:%f", position);
for (tmp = self->priv->track_titles; tmp; tmp = tmp->next) {
- ges_track_element_set_child_properties (tmp->data, "ypos", position, NULL);
+ ges_timeline_element_set_child_properties (tmp->data, "ypos", position,
+ NULL);
}
}
{
gchar *text;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"text", &text, NULL);
return text;
{
gchar *font_desc;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"font-desc", &font_desc, NULL);
return font_desc;
{
GESTextHAlign halign;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"halignment", &halign, NULL);
return halign;
{
GESTextVAlign valign;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"valignment", &valign, NULL);
return valign;
{
guint32 color;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"color", &color, NULL);
return color;
{
guint32 color;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"foreground-color", &color, NULL);
return color;
{
gdouble xpos;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"xpos", &xpos, NULL);
return xpos;
{
gdouble ypos;
- ges_track_element_get_child_properties (self->priv->track_titles->data,
+ ges_timeline_element_get_child_properties (self->priv->track_titles->data,
"ypos", &ypos, NULL);
return ypos;
GES_API
GType ges_title_clip_get_type (void);
-GES_API void
-ges_title_clip_set_text( GESTitleClip * self,
- const gchar * text);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_text( GESTitleClip * self, const gchar * text);
-GES_API void
-ges_title_clip_set_font_desc (GESTitleClip * self,
- const gchar * font_desc);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_font_desc (GESTitleClip * self, const gchar * font_desc);
-GES_API void
-ges_title_clip_set_valignment (GESTitleClip * self,
- GESTextVAlign valign);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_valignment (GESTitleClip * self, GESTextVAlign valign);
-GES_API void
-ges_title_clip_set_halignment (GESTitleClip * self,
- GESTextHAlign halign);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_halignment (GESTitleClip * self, GESTextHAlign halign);
-GES_API void
-ges_title_clip_set_color (GESTitleClip * self,
- guint32 color);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_color (GESTitleClip * self, guint32 color);
-GES_API void
-ges_title_clip_set_background (GESTitleClip * self,
- guint32 background);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_background (GESTitleClip * self, guint32 background);
-GES_API void
-ges_title_clip_set_xpos (GESTitleClip * self,
- gdouble position);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_xpos (GESTitleClip * self, gdouble position);
-GES_API void
-ges_title_clip_set_ypos (GESTitleClip * self,
- gdouble position);
+G_DEPRECATED_FOR(ges_timeline_element_set_children_properties) void
+ges_title_clip_set_ypos (GESTitleClip * self, gdouble position);
-GES_API const gchar*
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) const gchar*
ges_title_clip_get_font_desc (GESTitleClip * self);
-GES_API GESTextVAlign
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) GESTextVAlign
ges_title_clip_get_valignment (GESTitleClip * self);
-GES_API GESTextHAlign
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) GESTextHAlign
ges_title_clip_get_halignment (GESTitleClip * self);
-GES_API const guint32
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) const guint32
ges_title_clip_get_text_color (GESTitleClip * self);
-GES_API const guint32
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) const guint32
ges_title_clip_get_background_color (GESTitleClip * self);
-GES_API const gdouble
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) const gdouble
ges_title_clip_get_xpos (GESTitleClip * self);
-GES_API const gdouble
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties) const gdouble
ges_title_clip_get_ypos (GESTitleClip * self);
-GES_API
+G_DEPRECATED_FOR(ges_timeline_element_get_children_properties)
const gchar* ges_title_clip_get_text (GESTitleClip * self);
GES_API
--- /dev/null
+#pragma once
+
+GES_DEPRECATED_FOR(ges_track_element_get_nleobject)
+GstElement * ges_track_element_get_gnlobject (GESTrackElement * object);
+
+
+GES_DEPRECATED_FOR(ges_timeline_element_list_children_properties)
+GParamSpec **
+ges_track_element_list_children_properties (GESTrackElement *object,
+ guint *n_properties);
+
+GES_DEPRECATED_FOR(ges_timeline_element_lookup_child)
+gboolean ges_track_element_lookup_child (GESTrackElement *object,
+ const gchar *prop_name,
+ GstElement **element,
+ GParamSpec **pspec);
+
+GES_DEPRECATED_FOR(ges_timeline_element_get_child_property_valist)
+void
+ges_track_element_get_child_property_valist (GESTrackElement * object,
+ const gchar * first_property_name,
+ va_list var_args);
+
+GES_DEPRECATED_FOR(ges_timeline_element_get_child_properties)
+void ges_track_element_get_child_properties (GESTrackElement *object,
+ const gchar * first_property_name,
+ ...) G_GNUC_NULL_TERMINATED;
+
+GES_DEPRECATED_FOR(ges_timeline_element_set_child_property_valist)
+void
+ges_track_element_set_child_property_valist (GESTrackElement * object,
+ const gchar * first_property_name,
+ va_list var_args);
+
+GES_DEPRECATED_FOR(ges_timeline_element_set_child_property_by_spec)
+void
+ges_track_element_set_child_property_by_pspec (GESTrackElement * object,
+ GParamSpec * pspec,
+ GValue * value);
+
+GES_DEPRECATED_FOR(ges_timeline_element_set_child_properties)
+void
+ges_track_element_set_child_properties (GESTrackElement * object,
+ const gchar * first_property_name,
+ ...) G_GNUC_NULL_TERMINATED;
+
+GES_DEPRECATED_FOR(ges_timeline_element_set_child_property)
+gboolean ges_track_element_set_child_property (GESTrackElement *object,
+ const gchar *property_name,
+ GValue * value);
+
+GES_DEPRECATED_FOR(ges_timeline_element_get_child_property)
+gboolean ges_track_element_get_child_property (GESTrackElement *object,
+ const gchar *property_name,
+ GValue * value);
+
+GES_DEPRECATED_FOR(ges_timeline_element_edit)
+gboolean
+ges_track_element_edit (GESTrackElement * object,
+ GList *layers, GESEditMode mode,
+ GESEdge edge, guint64 position);
GES_API
GstElement * ges_track_element_get_nleobject (GESTrackElement * object);
-GES_API
-GstElement * ges_track_element_get_gnlobject (GESTrackElement * object);
GES_API
GstElement * ges_track_element_get_element (GESTrackElement * object);
GES_API
gboolean ges_track_element_is_active (GESTrackElement * object);
-GES_API GParamSpec **
-ges_track_element_list_children_properties (GESTrackElement *object,
- guint *n_properties);
-
-GES_API
-gboolean ges_track_element_lookup_child (GESTrackElement *object,
- const gchar *prop_name,
- GstElement **element,
- GParamSpec **pspec);
-
GES_API void
ges_track_element_get_child_property_by_pspec (GESTrackElement * object,
GParamSpec * pspec,
GValue * value);
-GES_API void
-ges_track_element_get_child_property_valist (GESTrackElement * object,
- const gchar * first_property_name,
- va_list var_args);
-
-GES_API
-void ges_track_element_get_child_properties (GESTrackElement *object,
- const gchar * first_property_name,
- ...) G_GNUC_NULL_TERMINATED;
-
-GES_API void
-ges_track_element_set_child_property_valist (GESTrackElement * object,
- const gchar * first_property_name,
- va_list var_args);
-
-GES_API void
-ges_track_element_set_child_property_by_pspec (GESTrackElement * object,
- GParamSpec * pspec,
- GValue * value);
-
-GES_API
-void ges_track_element_set_child_properties (GESTrackElement * object,
- const gchar * first_property_name,
- ...) G_GNUC_NULL_TERMINATED;
-
-GES_API
-gboolean ges_track_element_set_child_property (GESTrackElement *object,
- const gchar *property_name,
- GValue * value);
-
-GES_API
-gboolean ges_track_element_get_child_property (GESTrackElement *object,
- const gchar *property_name,
- GValue * value);
-
-GES_API gboolean
-ges_track_element_edit (GESTrackElement * object,
- GList *layers, GESEditMode mode,
- GESEdge edge, guint64 position);
-
GES_API gboolean
ges_track_element_set_control_source (GESTrackElement *object,
GstControlSource *source,
GES_API gboolean
ges_track_element_remove_control_binding (GESTrackElement * object,
const gchar * property_name);
+
+#include "ges-track-element-deprecated.h"
+
G_END_DECLS
#endif /* _GES_TRACK_ELEMENT */
'ges-audio-track.h',
'ges-video-track.h',
'ges-track-element.h',
+ 'ges-track-element-deprecated.h',
'ges-source.h',
'ges-operation.h',
'ges-video-source.h',