1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) 2013 Mathieu Duponchelle <mduponchelle1@gmail.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/>.";
22 #include <glib-object.h>
25 #include "ges-track.h"
29 #define GES_TYPE_SMART_MIXER (ges_smart_mixer_get_type ())
30 #define GES_SMART_MIXER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_SMART_MIXER, GESSmartMixer))
31 #define GES_SMART_MIXER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_SMART_MIXER, GESSmartMixerClass))
32 #define GES_IS_SMART_MIXER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_SMART_MIXER))
33 #define GES_IS_SMART_MIXER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_SMART_MIXER))
34 #define GES_SMART_MIXER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_SMART_MIXER, GESSmartMixerClass))
36 typedef struct _GESSmartMixerClass GESSmartMixerClass;
37 typedef struct _GESSmartMixer GESSmartMixer;
39 struct _GESSmartMixerClass
41 GstBinClass parent_class;
43 gpointer _ges_reserved[GES_PADDING];
48 GstBin parent_instance;
50 GHashTable *pads_infos;
56 gboolean is_transition;
58 gpointer _ges_reserved[GES_PADDING];
62 GType ges_smart_mixer_get_type (void) G_GNUC_CONST;
64 G_GNUC_INTERNAL GstPad *
65 ges_smart_mixer_get_mixer_pad (GESSmartMixer *self, GstPad **mixerpad);
68 GstElement* ges_smart_mixer_new (GESTrack *track);