completion: Update to new gstreamer core helpers
[platform/upstream/gstreamer.git] / ges / ges-effect.h
1 /* GStreamer Editing Services
2  * Copyright (C) 2010 Thibault Saunier <thibault.saunier@collabora.co.uk>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef _GES_EFFECT
21 #define _GES_EFFECT
22
23 #include <glib-object.h>
24 #include <ges/ges-types.h>
25 #include <ges/ges-base-effect.h>
26
27 G_BEGIN_DECLS
28 #define GES_TYPE_EFFECT ges_effect_get_type()
29
30 #define GES_EFFECT(obj) \
31   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_EFFECT, GESEffect))
32
33 #define GES_EFFECT_CLASS(klass) \
34   (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_EFFECT, GESEffectClass))
35
36 #define GES_IS_EFFECT(obj) \
37   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_EFFECT))
38
39 #define GES_IS_EFFECT_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_EFFECT))
41
42 #define GES_EFFECT_GET_CLASS(obj) \
43   (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_EFFECT, GESEffectClass))
44
45
46 typedef struct _GESEffectPrivate   GESEffectPrivate;
47
48 /**
49  * GESEffect:
50  *
51  */
52 struct _GESEffect
53 {
54   /*< private > */
55   GESBaseEffect parent;
56   GESEffectPrivate *priv;
57
58   /* Padding for API extension */
59   gpointer _ges_reserved[GES_PADDING];
60 };
61
62 /**
63  * GESEffectClass:
64  * @parent_class: parent class
65  */
66
67 struct _GESEffectClass
68 {
69   /*< private > */
70   GESBaseEffectClass parent_class;
71
72   GList *rate_properties;
73
74   /* Padding for API extension */
75   gpointer _ges_reserved[GES_PADDING];
76
77 };
78
79 GType ges_effect_get_type (void);
80
81 GESEffect*
82 ges_effect_new (const gchar * bin_description);
83
84 gboolean
85 ges_effect_class_register_rate_property (GESEffectClass *klass, const gchar *element_name, const gchar *property_name);
86
87 G_END_DECLS
88 #endif /* _GES_EFFECT */