1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
4 * Copyright (C) 2013 Thibault Saunier <thibault.saunier@collabora.com>
6 * gst-editing-services is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * gst-editing-services is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.";
20 #ifndef _GES_AUTO_TRANSITION_H_
21 #define _GES_AUTO_TRANSITION_H_
23 #include <glib-object.h>
24 #include "ges-track-element.h"
26 #include "ges-layer.h"
30 #define GES_TYPE_AUTO_TRANSITION (ges_auto_transition_get_type ())
31 #define GES_AUTO_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_AUTO_TRANSITION, GESAutoTransition))
32 #define GES_AUTO_TRANSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_AUTO_TRANSITION, GESAutoTransitionClass))
33 #define GES_IS_AUTO_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_AUTO_TRANSITION))
34 #define GES_IS_AUTO_TRANSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_AUTO_TRANSITION))
35 #define GES_AUTO_TRANSITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_AUTO_TRANSITION, GESAutoTransitionClass))
37 typedef struct _GESAutoTransitionClass GESAutoTransitionClass;
38 typedef struct _GESAutoTransition GESAutoTransition;
42 struct _GESAutoTransitionClass
44 GObjectClass parent_class;
46 /* Padding for API extension */
47 gpointer _ges_reserved[GES_PADDING];
50 struct _GESAutoTransition
52 GObject parent_instance;
54 /* <read only and construct only> */
55 GESTrackElement *previous_source;
56 GESTrackElement *next_source;
57 GESTrackElement *transition;
61 GESClip *previous_clip;
63 GESClip *transition_clip;
68 /* Padding for API extension */
69 gpointer _ges_reserved[GES_PADDING];
72 G_GNUC_INTERNAL GType ges_auto_transition_get_type (void) G_GNUC_CONST;
74 G_GNUC_INTERNAL void ges_auto_transition_update (GESAutoTransition *self);
75 G_GNUC_INTERNAL GESAutoTransition * ges_auto_transition_new (GESTrackElement * transition,
76 GESTrackElement * previous_source,
77 GESTrackElement * next_source);
80 #endif /* _GES_AUTO_TRANSITION_H_ */