--- /dev/null
+
+lib_LTLIBRARIES = libges-@GST_MAJORMINOR@.la
+
+CLEANFILES = $(BUILT_SOURCES)
+
+libges_@GST_MAJORMINOR@_la_SOURCES = \
+ ges.c \
+ ges-simple-timeline-layer.c \
+ ges-timeline.c \
+ ges-timeline-layer.c \
+ ges-timeline-object.c \
+ ges-timeline-pipeline.c \
+ ges-timeline-source.c \
+ ges-timeline-transition.c \
+ ges-track.c \
+ ges-track-object.c
+
+libges_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/ges/
+libges_@GST_MAJORMINOR@include_HEADERS = \
+ ges.h \
+ ges-simple-timeline-layer.h \
+ ges-timeline.h \
+ ges-timeline-layer.h \
+ ges-timeline-object.h \
+ ges-timeline-pipeline.h \
+ ges-timeline-source.h \
+ ges-timeline-transition.h \
+ ges-track.h \
+ ges-track-object.h
+
+
+libges_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
+libges_@GST_MAJORMINOR@_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS)
+libges_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-simple-timeline-layer.h"
+
+G_DEFINE_TYPE (GESSimpleTimelineLayer, ges_simple_timeline_layer,
+ GES_TYPE_TIMELINE_LAYER)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerPrivate))
+ typedef struct _GESSimpleTimelineLayerPrivate
+ GESSimpleTimelineLayerPrivate;
+
+ struct _GESSimpleTimelineLayerPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_simple_timeline_layer_get_property (GObject * object,
+ guint property_id, GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_simple_timeline_layer_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_simple_timeline_layer_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->dispose (object);
+}
+
+static void
+ges_simple_timeline_layer_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->finalize (object);
+}
+
+static void
+ges_simple_timeline_layer_class_init (GESSimpleTimelineLayerClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESSimpleTimelineLayerPrivate));
+
+ object_class->get_property = ges_simple_timeline_layer_get_property;
+ object_class->set_property = ges_simple_timeline_layer_set_property;
+ object_class->dispose = ges_simple_timeline_layer_dispose;
+ object_class->finalize = ges_simple_timeline_layer_finalize;
+}
+
+static void
+ges_simple_timeline_layer_init (GESSimpleTimelineLayer * self)
+{
+}
+
+GESSimpleTimelineLayer *
+ges_simple_timeline_layer_new (void)
+{
+ return g_object_new (GES_TYPE_SIMPLE_TIMELINE_LAYER, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_SIMPLE_TIMELINE_LAYER
+#define _GES_SIMPLE_TIMELINE_LAYER
+
+#include <glib-object.h>
+#include "ges-timeline-layer.h"
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_SIMPLE_TIMELINE_LAYER ges_simple_timeline_layer_get_type()
+
+#define GES_SIMPLE_TIMELINE_LAYER(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayer))
+
+#define GES_SIMPLE_TIMELINE_LAYER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerClass))
+
+#define GES_IS_SIMPLE_TIMELINE_LAYER(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER))
+
+#define GES_IS_SIMPLE_TIMELINE_LAYER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_SIMPLE_TIMELINE_LAYER))
+
+#define GES_SIMPLE_TIMELINE_LAYER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerClass))
+
+typedef struct _GESSimpleTimelineLayer GESSimpleTimelineLayer;
+typedef struct _GESSimpleTimelineLayerClass GESSimpleTimelineLayerClass;
+
+struct _GESSimpleTimelineLayer {
+ GESTimelineLayer parent;
+};
+
+struct _GESSimpleTimelineLayerClass {
+ GESTimelineLayerClass parent_class;
+};
+
+GType ges_simple_timeline_layer_get_type (void);
+
+GESSimpleTimelineLayer* ges_simple_timeline_layer_new (void);
+
+gboolean
+ges_simple_timeline_layer_add_object (GESSimpleTimelineLayer *layer, GESTimelineObject *object, gint position);
+ges_simple_timeline_layer_remove_object (GESSimpleTimelineLayer *layer, GESTimelineObject *object);
+ges_simple_timeline_layer_move_object (GESSimpleTimelineLayer *layer, GESTimelineObject, gint newposition);
+
+G_END_DECLS
+
+#endif /* _GES_SIMPLE_TIMELINE_LAYER */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline-layer.h"
+
+/**
+ * GESTimelineLayer
+ *
+ * Responsible for the ordering of the various contained TimelineObject(s)
+ */
+
+G_DEFINE_TYPE (GESTimelineLayer, ges_timeline_layer, G_TYPE_OBJECT)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerPrivate))
+ typedef struct _GESTimelineLayerPrivate GESTimelineLayerPrivate;
+
+ struct _GESTimelineLayerPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_timeline_layer_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_layer_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_layer_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_layer_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_layer_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_layer_class_init (GESTimelineLayerClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelineLayerPrivate));
+
+ object_class->get_property = ges_timeline_layer_get_property;
+ object_class->set_property = ges_timeline_layer_set_property;
+ object_class->dispose = ges_timeline_layer_dispose;
+ object_class->finalize = ges_timeline_layer_finalize;
+}
+
+static void
+ges_timeline_layer_init (GESTimelineLayer * self)
+{
+}
+
+GESTimelineLayer *
+ges_timeline_layer_new (void)
+{
+ return g_object_new (GES_TYPE_TIMELINE_LAYER, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE_LAYER
+#define _GES_TIMELINE_LAYER
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TIMELINE_LAYER ges_timeline_layer_get_type()
+
+#define GES_TIMELINE_LAYER(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_LAYER, GESTimelineLayer))
+
+#define GES_TIMELINE_LAYER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerClass))
+
+#define GES_IS_TIMELINE_LAYER(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_LAYER))
+
+#define GES_IS_TIMELINE_LAYER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_LAYER))
+
+#define GES_TIMELINE_LAYER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerClass))
+
+typedef struct _GESTimelineLayer GESTimelineLayer;
+typedef struct _GESTimelineLayerClass GESTimelineLayerClass;
+
+struct _GESTimelineLayer {
+ GObject parent;
+};
+
+struct _GESTimelineLayerClass {
+ GObjectClass parent_class;
+};
+
+GType ges_timeline_layer_get_type (void);
+
+GESTimelineLayer* ges_timeline_layer_new (void);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE_LAYER */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline-object.h"
+
+/**
+ * GESTimelineObject
+ *
+ * Responsible for creating the TrackObject(s) for given TimelineTrack(s)
+ *
+ * Keeps a reference to the TrackObject(s) it created and sets/updates their properties.
+ */
+
+
+G_DEFINE_TYPE (GESTimelineObject, ges_timeline_object, G_TYPE_OBJECT)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectPrivate))
+ typedef struct _GESTimelineObjectPrivate GESTimelineObjectPrivate;
+
+ struct _GESTimelineObjectPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_timeline_object_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_object_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_object_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_object_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_object_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_object_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_object_class_init (GESTimelineObjectClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelineObjectPrivate));
+
+ object_class->get_property = ges_timeline_object_get_property;
+ object_class->set_property = ges_timeline_object_set_property;
+ object_class->dispose = ges_timeline_object_dispose;
+ object_class->finalize = ges_timeline_object_finalize;
+}
+
+static void
+ges_timeline_object_init (GESTimelineObject * self)
+{
+}
+
+GESTimelineObject *
+ges_timeline_object_new (void)
+{
+ return g_object_new (GES_TYPE_TIMELINE_OBJECT, NULL);
+}
+
+/**
+ * ges_timeline_object_create_track_object:
+ * @object: The origin #GESTimelineObject
+ * @track: The #GESTrack to create a #GESTrackObject for.
+ *
+ * Creates a #GESTrackObject for the provided @track.
+ *
+ * Returns: A #GESTrackObject. Returns NULL if the #GESTrackObject could not
+ * be created.
+ */
+
+GESTrackObject *
+ges_timeline_object_create_track_object (GESTimelineObject * object,
+ GESTrack * track)
+{
+ /* FIXME : IMPLEMENT */
+
+ /* implemented by subclasses */
+
+ /* Keep track of the created TrackObject(s) */
+
+ return NULL;
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE_OBJECT
+#define _GES_TIMELINE_OBJECT
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TIMELINE_OBJECT ges_timeline_object_get_type()
+
+#define GES_TIMELINE_OBJECT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_OBJECT, GESTimelineObject))
+
+#define GES_TIMELINE_OBJECT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectClass))
+
+#define GES_IS_TIMELINE_OBJECT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_OBJECT))
+
+#define GES_IS_TIMELINE_OBJECT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_OBJECT))
+
+#define GES_TIMELINE_OBJECT_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectClass))
+
+typedef struct _GESTimelineObject GESTimelineObject;
+typedef struct _GESTimelineObjectClass GESTimelineObjectClass;
+
+struct _GESTimelineObject {
+ GObject parent;
+
+ /* start, inpoint, duration and fullduration are in nanoseconds */
+ guint64 start; /* position (in time) of the object in the layer */
+ guint64 inpoint; /* in-point */
+ guint64 duration; /* duration of the object used in the layer */
+ guint32 priority; /* priority of the object in the layer (0:top priority) */
+
+ guint64 fullduration; /* Full usable duration of the object (-1: no duration) */
+};
+
+struct _GESTimelineObjectClass {
+ GObjectClass parent_class;
+};
+
+GType ges_timeline_object_get_type (void);
+
+GESTimelineObject* ges_timeline_object_new (void);
+
+GESTrackObject * ges_timeline_object_create_track_object (GESTimelineObject * object,
+ GESTrack * track);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE_OBJECT */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline-pipeline.h"
+
+/* TimelinePipeline
+ *
+ */
+
+G_DEFINE_TYPE (GESTimelinePipeline, ges_timeline_pipeline, GST_TYPE_PIPELINE)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelinePrivate))
+ typedef struct _GESTimelinePipelinePrivate GESTimelinePipelinePrivate;
+
+ struct _GESTimelinePipelinePrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_timeline_pipeline_get_property (GObject * object,
+ guint property_id, GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_pipeline_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_pipeline_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_pipeline_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_pipeline_class_init (GESTimelinePipelineClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelinePipelinePrivate));
+
+ object_class->get_property = ges_timeline_pipeline_get_property;
+ object_class->set_property = ges_timeline_pipeline_set_property;
+ object_class->dispose = ges_timeline_pipeline_dispose;
+ object_class->finalize = ges_timeline_pipeline_finalize;
+}
+
+static void
+ges_timeline_pipeline_init (GESTimelinePipeline * self)
+{
+}
+
+GESTimelinePipeline *
+ges_timeline_pipeline_new (void)
+{
+ return g_object_new (GEST_TYPE_TIMELINE_PIPELINE, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE_PIPELINE
+#define _GES_TIMELINE_PIPELINE
+
+#include <glib-object.h>
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GEST_TYPE_TIMELINE_PIPELINE ges_timeline_pipeline_get_type()
+
+#define GEST_TIMELINE_PIPELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipeline))
+
+#define GEST_TIMELINE_PIPELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelineClass))
+
+#define GEST_IS_TIMELINE_PIPELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEST_TYPE_TIMELINE_PIPELINE))
+
+#define GEST_IS_TIMELINE_PIPELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GEST_TYPE_TIMELINE_PIPELINE))
+
+#define GEST_TIMELINE_PIPELINE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelineClass))
+
+typedef struct _GESTimelinePipeline GESTimelinePipeline;
+typedef struct _GESTimelinePipelineClass GESTimelinePipelineClass;
+
+struct _GESTimelinePipeline {
+ GstPipeline parent;
+};
+
+struct _GESTimelinePipelineClass {
+ GstPipelineClass parent_class;
+};
+
+GType ges_timeline_pipeline_get_type (void);
+
+GESTimelinePipeline* ges_timeline_pipeline_new (void);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE_PIPELINE */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline-object.h"
+#include "ges-timeline-source.h"
+
+G_DEFINE_TYPE (GESTimelineSource, ges_timeline_source, GES_TYPE_TIMELINE_OBJECT)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourcePrivate))
+ typedef struct _GESTimelineSourcePrivate GESTimelineSourcePrivate;
+
+ struct _GESTimelineSourcePrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_timeline_source_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_source_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_source_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_source_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_source_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_source_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_source_class_init (GESTimelineSourceClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelineSourcePrivate));
+
+ object_class->get_property = ges_timeline_source_get_property;
+ object_class->set_property = ges_timeline_source_set_property;
+ object_class->dispose = ges_timeline_source_dispose;
+ object_class->finalize = ges_timeline_source_finalize;
+}
+
+static void
+ges_timeline_source_init (GESTimelineSource * self)
+{
+}
+
+GESTimelineSource *
+ges_timeline_source_new (void)
+{
+ return g_object_new (GES_TYPE_TIMELINE_SOURCE, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE_SOURCE
+#define _GES_TIMELINE_SOURCE
+
+#include <glib-object.h>
+#include <ges-timeline-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TIMELINE_SOURCE ges_timeline_source_get_type()
+
+#define GES_TIMELINE_SOURCE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_SOURCE, GESTimelineSource))
+
+#define GES_TIMELINE_SOURCE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourceClass))
+
+#define GES_IS_TIMELINE_SOURCE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_SOURCE))
+
+#define GES_IS_TIMELINE_SOURCE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_SOURCE))
+
+#define GES_TIMELINE_SOURCE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourceClass))
+
+typedef struct _GESTimelineSource GESTimelineSource;
+typedef struct _GESTimelineSourceClass GESTimelineSourceClass;
+
+struct _GESTimelineSource {
+ GESTimelineObject parent;
+};
+
+struct _GESTimelineSourceClass {
+ GESTimelineObjectClass parent_class;
+};
+
+GType ges_timeline_source_get_type (void);
+
+GESTimelineSource* ges_timeline_source_new (void);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE_SOURCE */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline-transition.h"
+
+G_DEFINE_TYPE (GESTimelineTransition, ges_timeline_transition,
+ GES_TYPE_TIMELINE_OBJECT)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionPrivate))
+ typedef struct _GESTimelineTransitionPrivate GESTimelineTransitionPrivate;
+
+ struct _GESTimelineTransitionPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_timeline_transition_get_property (GObject * object,
+ guint property_id, GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_transition_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_transition_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_transition_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_transition_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_transition_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelineTransitionPrivate));
+
+ object_class->get_property = ges_timeline_transition_get_property;
+ object_class->set_property = ges_timeline_transition_set_property;
+ object_class->dispose = ges_timeline_transition_dispose;
+ object_class->finalize = ges_timeline_transition_finalize;
+}
+
+static void
+ges_timeline_transition_init (GESTimelineTransition * self)
+{
+}
+
+GESTimelineTransition *
+ges_timeline_transition_new (void)
+{
+ return g_object_new (GES_TYPE_TIMELINE_TRANSITION, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE_TRANSITION
+#define _GES_TIMELINE_TRANSITION
+
+#include <glib-object.h>
+#include <ges-timeline-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TIMELINE_TRANSITION ges_timeline_transition_get_type()
+
+#define GES_TIMELINE_TRANSITION(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransition))
+
+#define GES_TIMELINE_TRANSITION_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionClass))
+
+#define GES_IS_TIMELINE_TRANSITION(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_TRANSITION))
+
+#define GES_IS_TIMELINE_TRANSITION_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_TRANSITION))
+
+#define GES_TIMELINE_TRANSITION_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionClass))
+
+typedef struct _GESTimelineTransition GESTimelineTransition;
+typedef struct _GESTimelineTransitionClass GESTimelineTransitionClass;
+
+struct _GESTimelineTransition {
+ GESTimelineObject parent;
+};
+
+struct _GESTimelineTransitionClass {
+ GESTimelineObjectClass parent_class;
+};
+
+GType ges_timeline_transition_get_type (void);
+
+GESTimelineTransition* ges_timeline_transition_new (void);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE_TRANSITION */
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-timeline.h"
+
+/**
+ * GESTimelinePipeline
+ *
+ * Top-level container for pipelines
+ *
+ * Contains a list of TimelineLayer which users should use to arrange the
+ * various timeline objects.
+ *
+ */
+
+G_DEFINE_TYPE (GESTimeline, ges_timeline, GST_TYPE_BIN)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE, GESTimelinePrivate))
+ typedef struct _GESTimelinePrivate GESTimelinePrivate;
+
+ struct _GESTimelinePrivate
+ {
+ GList *tracks; /* TimelineTracks */
+ };
+
+ static void
+ ges_timeline_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_timeline_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_parent_class)->dispose (object);
+}
+
+static void
+ges_timeline_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_timeline_parent_class)->finalize (object);
+}
+
+static void
+ges_timeline_class_init (GESTimelineClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTimelinePrivate));
+
+ object_class->get_property = ges_timeline_get_property;
+ object_class->set_property = ges_timeline_set_property;
+ object_class->dispose = ges_timeline_dispose;
+ object_class->finalize = ges_timeline_finalize;
+}
+
+static void
+ges_timeline_init (GESTimeline * self)
+{
+ self->layers = NULL;
+ self->tracks = NULL;
+}
+
+GESTimeline *
+ges_timeline_new (void)
+{
+ return g_object_new (GES_TYPE_TIMELINE, NULL);
+}
+
+GESTimeline *
+ges_timeline_load_from_uri (gchar * uri)
+{
+ /* FIXME : IMPLEMENT */
+ return NULL;
+}
+
+gboolean
+ges_timeline_save (GESTimeline * timeline, gchar * uri)
+{
+ /* FIXME : IMPLEMENT */
+ return FALSE;
+}
+
+gboolean
+ges_timeline_add_layer (GESTimeline * timeline, GESTimelineLayer * layer)
+{
+ /* FIXME : IMPLEMENT */
+
+ /* Add to the list of layers, make sure we don't already control it */
+
+ /* Assign Tracks to it */
+
+ return FALSE;
+}
+
+gboolean
+ges_timeline_remove_layer (GESTimeline * timeline, GESTimelineLayer * layer)
+{
+ /* FIXME : IMPLEMENT */
+
+ /* Unassign tracks from the given layer */
+ return FALSE;
+}
+
+gboolean
+ges_timeline_add_track (GESTimeline * timeline, GESTrack * track)
+{
+ /* FIXME : IMPLEMENT */
+
+ /* Add to the list of tracks, make sure we don't already control it */
+
+
+ return FALSE;
+}
+
+gboolean
+ges_timeline_remove_track (GESTimeline * timeline, GESTrack * track)
+{
+ /* FIXME : IMPLEMENT */
+
+ /* Signal track removal to all layers/objects */
+
+ /* */
+ return FALSE;
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TIMELINE
+#define _GES_TIMELINE
+
+#include <glib-object.h>
+#include <gst/gst.h>
+#include <ges/ges-timeline-layer.h>
+#include <ges/ges-track.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TIMELINE ges_timeline_get_type()
+
+#define GES_TIMELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE, GESTimeline))
+
+#define GES_TIMELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE, GESTimelineClass))
+
+#define GES_IS_TIMELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE))
+
+#define GES_IS_TIMELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE))
+
+#define GES_TIMELINE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE, GESTimelineClass))
+
+typedef struct _GESTimeline GESTimeline;
+typedef struct _GESTimelineClass GESTimelineClass;
+
+struct _GESTimeline {
+ GstBin parent;
+
+ GList *layers; /* TimelineLayer(s) ordered by priority */
+ GList *tracks; /* TimelineTrack(s) */
+};
+
+struct _GESTimelineClass {
+ GstBinClass parent_class;
+};
+
+GType ges_timeline_get_type (void);
+
+GESTimeline* ges_timeline_new (void);
+
+
+GESTimeline* ges_timeline_load_from_uri (gchar *uri);
+
+gboolean ges_timeline_save (GESTimeline *timeline, gchar *uri);
+
+gboolean ges_timeline_add_layer (GESTimeline *timeline, GESTimelineLayer *layer);
+gboolean ges_timeline_remove_layer (GESTimeline *timeline, GESTimelineLayer *layer);
+
+gboolean ges_timeline_add_track (GESTimeline *timeline, GESTrack *track);
+gboolean ges_timeline_remove_track (GESTimeline *timeline, GESTrack *track);
+
+G_END_DECLS
+
+#endif /* _GES_TIMELINE */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-track-object.h"
+
+static GQuark _start_quark;
+static GQuark _inpoint_quark;
+static GQuark _duration_quark;
+static GQuark _priority_quark;
+
+#define _do_init \
+{ \
+ gint i; \
+ \
+ _start_quark = g_quark_from_static_string ("start"); \
+ _inpoint_quark = g_quark_from_static_string ("inpoint"); \
+ _duration_quark = g_quark_from_static_string ("duration"); \
+ _priority_quark = g_quark_from_static_string ("priority"); \
+}
+G_DEFINE_TYPE_WITH_CODE (GESTrackObject, ges_track_object, G_TYPE_OBJECT,
+ _do_init)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TRACK_OBJECT, GESTrackObjectPrivate))
+ enum
+ {
+ PROP_0,
+ PROP_START,
+ PROP_INPOINT,
+ PROP_DURATION,
+ PROP_PRIORITY,
+ }
+
+ typedef struct _GESTrackObjectPrivate GESTrackObjectPrivate;
+
+ struct _GESTrackObjectPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_track_object_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+ {
+ GESTrackObject *tobj = GES_TRACK_OBJECT (object);
+
+ switch (property_id) {
+ case PROP_START:
+ g_value_set_uint64 (value, tobj->start);
+ break;
+ case PROP_INPOINT:
+ g_value_set_uint64 (value, tobj->inpoint);
+ break;
+ case PROP_DURATION:
+ g_value_set_uint64 (value, tobj->duration);
+ break;
+ case PROP_PRIORITY:
+ g_value_set_uint (value, tobj->priority);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+ }
+
+ static void
+ ges_track_object_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+ {
+ GESTrackObject *tobj = GES_TRACK_OBJECT (object);
+
+ switch (property_id) {
+ case PROP_START:
+ ges_track_object_set_start_internal (tobj,
+ g_value_get_uint64 (value));
+ break;
+ case PROP_INPOINT:
+ ges_track_object_set_inpoint_internal (tobj,
+ g_value_get_uint64 (value));
+ break;
+ case PROP_DURATION:
+ ges_track_object_set_duration_internal (tobj,
+ g_value_get_uint64 (value));
+ break;
+ case PROP_PRIORITY:
+ ges_track_object_set_priority_internal (tobj,
+ g_value_get_uint (value));
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+ }
+
+ static void ges_track_object_dispose (GObject * object)
+ {
+ G_OBJECT_CLASS (ges_track_object_parent_class)->dispose (object);
+ }
+
+ static void ges_track_object_finalize (GObject * object)
+ {
+ G_OBJECT_CLASS (ges_track_object_parent_class)->finalize (object);
+ }
+
+ static void ges_track_object_class_init (GESTrackObjectClass * klass)
+ {
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTrackObjectPrivate));
+
+ object_class->get_property = ges_track_object_get_property;
+ object_class->set_property = ges_track_object_set_property;
+ object_class->dispose = ges_track_object_dispose;
+ object_class->finalize = ges_track_object_finalize;
+
+ g_object_class_install_property (object_class, PROP_START,
+ g_param_spec_uint64 ("start", "Start",
+ "The position in the container", 0, G_MAXUINT64, 0,
+ G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_INPOINT,
+ g_param_spec_uint64 ("inpoint", "In-point", "The in-point", 0,
+ G_MAXUINT64, 0, G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_DURATION,
+ g_param_spec_uint64 ("duration", "Duration", "The duration to use",
+ 0, G_MAXUINT64, 0, G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_PRIORITY,
+ g_param_spec_uint ("priority", "Priority",
+ "The priority of the object", 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE));
+ }
+
+ static void ges_track_object_init (GESTrackObject * self)
+ {
+ }
+
+ GESTrackObject *ges_track_object_new (GESTimelineObject * timelineobj,
+ GESTrack * track)
+ {
+ GESTrackObject *obj;
+
+ obj = g_object_new (GES_TYPE_TRACK_OBJECT, NULL);
+
+ /* Set the timeline object and track */
+ obj->timelineobj = timelineobj;
+ obj->track = track;
+
+ /* Create the associated GnlObject */
+ ges_track_object_create_gnl_object (obj);
+ }
+
+ gboolean
+ ges_track_object_set_start_internal (GESTrackObject * object,
+ guint64 start) {
+ g_return_val_if_fail (object->gnlobject, FALSE);
+
+ if (G_UNLIKELY (start == object->start))
+ return FALSE;
+
+ g_object_set (object->gnlobject, "start", start, NULL);
+ return TRUE;
+ };
+
+ gboolean
+ ges_track_object_set_inpoint_internal (GESTrackObject * object,
+ guint64 inpoint) {
+ guint64 dur;
+
+ g_return_val_if_fail (object->gnlobject, FALSE);
+
+ if (G_UNLIKELY (inpoint == object->inpoint))
+ return FALSE;
+
+ /* Calculate new media-start/duration/media-duration */
+ dur = object->inpoint - inpoint + object->duration;
+
+ g_object_set (object->gnlobject, "media-start", inpoint, "duration", dur,
+ "media-duration", dur, NULL);
+ return TRUE;
+ }
+
+ gboolean
+ ges_track_object_set_duration_internal (GESTrackObject * object,
+ guint64 duration) {
+ g_return_val_if_fail (object->gnlobject, FALSE);
+
+ if (G_UNLIKELY (duration == object->duration))
+ return FALSE;
+
+ g_object_set (object->gnlobject, "duration", duration, "media-duration",
+ duration, NULL);
+ return TRUE;
+ }
+
+ gboolean
+ ges_track_object_set_priority_internal (GESTrackObject * object,
+ guint32 priority) {
+ g_return_val_if_fail (object->gnlobject, FALSE);
+
+ if (G_UNLIKELY (priority == object->priority))
+ return FALSE;
+
+ g_object_set (object->gnlobject, "priority", priority, NULL);
+ return TRUE;
+ }
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TRACK_OBJECT
+#define _GES_TRACK_OBJECT
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TRACK_OBJECT ges_track_object_get_type()
+
+#define GES_TRACK_OBJECT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObject))
+
+#define GES_TRACK_OBJECT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
+
+#define GES_IS_TRACK_OBJECT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TRACK_OBJECT))
+
+#define GES_IS_TRACK_OBJECT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TRACK_OBJECT))
+
+#define GES_TRACK_OBJECT_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
+
+typedef struct _GESTrackObject GESTrackObject;
+typedef struct _GESTrackObjectClass GESTrackObjectClass;
+
+struct _GESTrackObject {
+ GObject parent;
+
+ GESTimelineObject *timelineobj; /* The associated timeline object */
+ GESTrack *track; /* The associated Track */
+
+ /* Cached values of the gnlobject properties */
+ guint64 start; /* position (in time) of the object in the layer */
+ guint64 inpoint; /* in-point */
+ guint64 duration; /* duration of the object used in the layer */
+ guint32 priority; /* priority of the object in the layer (0:top priority) */
+
+ GstElement *gnlobject; /* The associated GnlObject */
+};
+
+struct _GESTrackObjectClass {
+ GObjectClass parent_class;
+
+ /* signal callbacks */
+ void (*changed) (GESTrackObject * object);
+
+ /* virtual methods */
+ gboolean (*create_gnl_object) (GESTrackObject * object);
+};
+
+GType ges_track_object_get_type (void);
+
+GESTrackObject* ges_track_object_new (GESTimelineObject *timelineobj, GESTrack *track);
+
+gboolean ges_track_object_create_gnl_object (GESTrackObject * object);
+
+/* Private methods for GESTimelineObject's usage only */
+gboolean ges_track_object_set_start_internal (GESTrackObject * object, guint64 start);
+gboolean ges_track_object_set_inpoint_internal (GESTrackObject * object, guint64 inpoint);
+gboolean ges_track_object_set_duration_internal (GESTrackObject * object, guint64 duration);
+gboolean ges_track_object_set_priority_internal (GESTrackObject * object, guint32 priority);
+
+G_END_DECLS
+
+#endif /* _GES_TRACK_OBJECT */
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ges-track.h"
+
+/**
+ * GESTrack
+ *
+ * Corresponds to one output format (i.e. audio OR video)
+ *
+ * Contains the compatible TrackObject(s)
+ */
+
+G_DEFINE_TYPE (GESTrack, ges_track, GST_TYPE_BIN)
+#define GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TRACK, GESTrackPrivate))
+ typedef struct _GESTrackPrivate GESTrackPrivate;
+
+ struct _GESTrackPrivate
+ {
+ int dummy;
+ };
+
+ static void
+ ges_track_get_property (GObject * object, guint property_id,
+ GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_track_set_property (GObject * object, guint property_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ switch (property_id) {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
+}
+
+static void
+ges_track_dispose (GObject * object)
+{
+ G_OBJECT_CLASS (ges_track_parent_class)->dispose (object);
+}
+
+static void
+ges_track_finalize (GObject * object)
+{
+ G_OBJECT_CLASS (ges_track_parent_class)->finalize (object);
+}
+
+static void
+ges_track_class_init (GESTrackClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (GESTrackPrivate));
+
+ object_class->get_property = ges_track_get_property;
+ object_class->set_property = ges_track_set_property;
+ object_class->dispose = ges_track_dispose;
+ object_class->finalize = ges_track_finalize;
+}
+
+static void
+ges_track_init (GESTrack * self)
+{
+}
+
+GESTrack *
+ges_track_new (void)
+{
+ return g_object_new (GES_TYPE_TRACK, NULL);
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _GES_TRACK
+#define _GES_TRACK
+
+#include <glib-object.h>
+#include <gst/gst.h>
+#include <ges-track-object.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TRACK ges_track_get_type()
+
+#define GES_TRACK(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TRACK, GESTrack))
+
+#define GES_TRACK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TRACK, GESTrackClass))
+
+#define GES_IS_TRACK(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TRACK))
+
+#define GES_IS_TRACK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TRACK))
+
+#define GES_TRACK_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK, GESTrackClass))
+
+typedef struct _GESTrack GESTrack;
+typedef struct _GESTrackClass GESTrackClass;
+
+struct _GESTrack {
+ GstBin parent;
+
+ GnlComposition * composition; /* The composition associated with this track */
+};
+
+struct _GESTrackClass {
+ GstBinClass parent_class;
+};
+
+GType ges_track_get_type (void);
+
+GESTrack* ges_track_new (void);
+
+gboolean ges_track_add_object (GESTrack *track, GESTrackObject * object);
+
+G_END_DECLS
+
+#endif /* _GES_TRACK */
+
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <ges/ges.h>
+
+GST_DEBUG_CATEGORY (ges_debug);
+
+void
+ges_init (void)
+{
+ /* initialize debugging category */
+ GST_DEBUG_CATEGORY_INIT (ges_debug, "ges", GST_DEBUG_FG_YELLOW,
+ "GStreamer Editing Services");
+}
--- /dev/null
+/* GStreamer Editing Services
+ * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
+ *
+ * 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., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GES_H__
+#define __GES_H__
+
+#include <glib.h>
+#include <gst/gst.h>
+
+#include <ges/ges-simple-timeline-layer.h>
+#include <ges/ges-timeline.h>
+#include <ges/ges-timeline-layer.h>
+#include <ges/ges-timeline-object.h>
+#include <ges/ges-timeline-pipeline.h>
+#include <ges/ges-timeline-source.h>
+#include <ges/ges-timeline-transition.h>
+#include <ges/ges-track.h>
+
+GST_DEBUG_CATEGORY_EXTERN (ges_debug);
+#define GST_CAT_DEFAULT ges_debug
+
+G_BEGIN_DECLS
+
+void ges_init (void);
+
+G_END_DECLS
+
+#endif /* __GES_H__ */
+++ /dev/null
-
-lib_LTLIBRARIES = libges-@GST_MAJORMINOR@.la
-
-CLEANFILES = $(BUILT_SOURCES)
-
-libges_@GST_MAJORMINOR@_la_SOURCES = \
- ges.c \
- ges-simple-timeline-layer.c \
- ges-timeline.c \
- ges-timeline-layer.c \
- ges-timeline-object.c \
- ges-timeline-pipeline.c \
- ges-timeline-source.c \
- ges-timeline-transition.c \
- ges-track.c \
- ges-track-object.c
-
-libges_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/ges/
-libges_@GST_MAJORMINOR@include_HEADERS = \
- ges.h \
- ges-simple-timeline-layer.h \
- ges-timeline.h \
- ges-timeline-layer.h \
- ges-timeline-object.h \
- ges-timeline-pipeline.h \
- ges-timeline-source.h \
- ges-timeline-transition.h \
- ges-track.h \
- ges-track-object.h
-
-
-libges_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
-libges_@GST_MAJORMINOR@_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS)
-libges_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-simple-timeline-layer.h"
-
-G_DEFINE_TYPE (GESSimpleTimelineLayer, ges_simple_timeline_layer,
- GES_TYPE_TIMELINE_LAYER)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerPrivate))
- typedef struct _GESSimpleTimelineLayerPrivate
- GESSimpleTimelineLayerPrivate;
-
- struct _GESSimpleTimelineLayerPrivate
- {
- int dummy;
- };
-
- static void
- ges_simple_timeline_layer_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_simple_timeline_layer_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_simple_timeline_layer_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->dispose (object);
-}
-
-static void
-ges_simple_timeline_layer_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->finalize (object);
-}
-
-static void
-ges_simple_timeline_layer_class_init (GESSimpleTimelineLayerClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESSimpleTimelineLayerPrivate));
-
- object_class->get_property = ges_simple_timeline_layer_get_property;
- object_class->set_property = ges_simple_timeline_layer_set_property;
- object_class->dispose = ges_simple_timeline_layer_dispose;
- object_class->finalize = ges_simple_timeline_layer_finalize;
-}
-
-static void
-ges_simple_timeline_layer_init (GESSimpleTimelineLayer * self)
-{
-}
-
-GESSimpleTimelineLayer *
-ges_simple_timeline_layer_new (void)
-{
- return g_object_new (GES_TYPE_SIMPLE_TIMELINE_LAYER, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_SIMPLE_TIMELINE_LAYER
-#define _GES_SIMPLE_TIMELINE_LAYER
-
-#include <glib-object.h>
-#include "ges-timeline-layer.h"
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_SIMPLE_TIMELINE_LAYER ges_simple_timeline_layer_get_type()
-
-#define GES_SIMPLE_TIMELINE_LAYER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayer))
-
-#define GES_SIMPLE_TIMELINE_LAYER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerClass))
-
-#define GES_IS_SIMPLE_TIMELINE_LAYER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER))
-
-#define GES_IS_SIMPLE_TIMELINE_LAYER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_SIMPLE_TIMELINE_LAYER))
-
-#define GES_SIMPLE_TIMELINE_LAYER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerClass))
-
-typedef struct _GESSimpleTimelineLayer GESSimpleTimelineLayer;
-typedef struct _GESSimpleTimelineLayerClass GESSimpleTimelineLayerClass;
-
-struct _GESSimpleTimelineLayer {
- GESTimelineLayer parent;
-};
-
-struct _GESSimpleTimelineLayerClass {
- GESTimelineLayerClass parent_class;
-};
-
-GType ges_simple_timeline_layer_get_type (void);
-
-GESSimpleTimelineLayer* ges_simple_timeline_layer_new (void);
-
-gboolean
-ges_simple_timeline_layer_add_object (GESSimpleTimelineLayer *layer, GESTimelineObject *object, gint position);
-ges_simple_timeline_layer_remove_object (GESSimpleTimelineLayer *layer, GESTimelineObject *object);
-ges_simple_timeline_layer_move_object (GESSimpleTimelineLayer *layer, GESTimelineObject, gint newposition);
-
-G_END_DECLS
-
-#endif /* _GES_SIMPLE_TIMELINE_LAYER */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline-layer.h"
-
-/**
- * GESTimelineLayer
- *
- * Responsible for the ordering of the various contained TimelineObject(s)
- */
-
-G_DEFINE_TYPE (GESTimelineLayer, ges_timeline_layer, G_TYPE_OBJECT)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerPrivate))
- typedef struct _GESTimelineLayerPrivate GESTimelineLayerPrivate;
-
- struct _GESTimelineLayerPrivate
- {
- int dummy;
- };
-
- static void
- ges_timeline_layer_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_layer_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_layer_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_layer_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_layer_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_layer_class_init (GESTimelineLayerClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelineLayerPrivate));
-
- object_class->get_property = ges_timeline_layer_get_property;
- object_class->set_property = ges_timeline_layer_set_property;
- object_class->dispose = ges_timeline_layer_dispose;
- object_class->finalize = ges_timeline_layer_finalize;
-}
-
-static void
-ges_timeline_layer_init (GESTimelineLayer * self)
-{
-}
-
-GESTimelineLayer *
-ges_timeline_layer_new (void)
-{
- return g_object_new (GES_TYPE_TIMELINE_LAYER, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE_LAYER
-#define _GES_TIMELINE_LAYER
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TIMELINE_LAYER ges_timeline_layer_get_type()
-
-#define GES_TIMELINE_LAYER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_LAYER, GESTimelineLayer))
-
-#define GES_TIMELINE_LAYER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerClass))
-
-#define GES_IS_TIMELINE_LAYER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_LAYER))
-
-#define GES_IS_TIMELINE_LAYER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_LAYER))
-
-#define GES_TIMELINE_LAYER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerClass))
-
-typedef struct _GESTimelineLayer GESTimelineLayer;
-typedef struct _GESTimelineLayerClass GESTimelineLayerClass;
-
-struct _GESTimelineLayer {
- GObject parent;
-};
-
-struct _GESTimelineLayerClass {
- GObjectClass parent_class;
-};
-
-GType ges_timeline_layer_get_type (void);
-
-GESTimelineLayer* ges_timeline_layer_new (void);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE_LAYER */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline-object.h"
-
-/**
- * GESTimelineObject
- *
- * Responsible for creating the TrackObject(s) for given TimelineTrack(s)
- *
- * Keeps a reference to the TrackObject(s) it created and sets/updates their properties.
- */
-
-
-G_DEFINE_TYPE (GESTimelineObject, ges_timeline_object, G_TYPE_OBJECT)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectPrivate))
- typedef struct _GESTimelineObjectPrivate GESTimelineObjectPrivate;
-
- struct _GESTimelineObjectPrivate
- {
- int dummy;
- };
-
- static void
- ges_timeline_object_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_object_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_object_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_object_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_object_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_object_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_object_class_init (GESTimelineObjectClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelineObjectPrivate));
-
- object_class->get_property = ges_timeline_object_get_property;
- object_class->set_property = ges_timeline_object_set_property;
- object_class->dispose = ges_timeline_object_dispose;
- object_class->finalize = ges_timeline_object_finalize;
-}
-
-static void
-ges_timeline_object_init (GESTimelineObject * self)
-{
-}
-
-GESTimelineObject *
-ges_timeline_object_new (void)
-{
- return g_object_new (GES_TYPE_TIMELINE_OBJECT, NULL);
-}
-
-/**
- * ges_timeline_object_create_track_object:
- * @object: The origin #GESTimelineObject
- * @track: The #GESTrack to create a #GESTrackObject for.
- *
- * Creates a #GESTrackObject for the provided @track.
- *
- * Returns: A #GESTrackObject. Returns NULL if the #GESTrackObject could not
- * be created.
- */
-
-GESTrackObject *
-ges_timeline_object_create_track_object (GESTimelineObject * object,
- GESTrack * track)
-{
- /* FIXME : IMPLEMENT */
-
- /* implemented by subclasses */
-
- /* Keep track of the created TrackObject(s) */
-
- return NULL;
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE_OBJECT
-#define _GES_TIMELINE_OBJECT
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TIMELINE_OBJECT ges_timeline_object_get_type()
-
-#define GES_TIMELINE_OBJECT(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_OBJECT, GESTimelineObject))
-
-#define GES_TIMELINE_OBJECT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectClass))
-
-#define GES_IS_TIMELINE_OBJECT(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_OBJECT))
-
-#define GES_IS_TIMELINE_OBJECT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_OBJECT))
-
-#define GES_TIMELINE_OBJECT_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_OBJECT, GESTimelineObjectClass))
-
-typedef struct _GESTimelineObject GESTimelineObject;
-typedef struct _GESTimelineObjectClass GESTimelineObjectClass;
-
-struct _GESTimelineObject {
- GObject parent;
-
- /* start, inpoint, duration and fullduration are in nanoseconds */
- guint64 start; /* position (in time) of the object in the layer */
- guint64 inpoint; /* in-point */
- guint64 duration; /* duration of the object used in the layer */
- guint32 priority; /* priority of the object in the layer (0:top priority) */
-
- guint64 fullduration; /* Full usable duration of the object (-1: no duration) */
-};
-
-struct _GESTimelineObjectClass {
- GObjectClass parent_class;
-};
-
-GType ges_timeline_object_get_type (void);
-
-GESTimelineObject* ges_timeline_object_new (void);
-
-GESTrackObject * ges_timeline_object_create_track_object (GESTimelineObject * object,
- GESTrack * track);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE_OBJECT */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline-pipeline.h"
-
-/* TimelinePipeline
- *
- */
-
-G_DEFINE_TYPE (GESTimelinePipeline, ges_timeline_pipeline, GST_TYPE_PIPELINE)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelinePrivate))
- typedef struct _GESTimelinePipelinePrivate GESTimelinePipelinePrivate;
-
- struct _GESTimelinePipelinePrivate
- {
- int dummy;
- };
-
- static void
- ges_timeline_pipeline_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_pipeline_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_pipeline_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_pipeline_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_pipeline_class_init (GESTimelinePipelineClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelinePipelinePrivate));
-
- object_class->get_property = ges_timeline_pipeline_get_property;
- object_class->set_property = ges_timeline_pipeline_set_property;
- object_class->dispose = ges_timeline_pipeline_dispose;
- object_class->finalize = ges_timeline_pipeline_finalize;
-}
-
-static void
-ges_timeline_pipeline_init (GESTimelinePipeline * self)
-{
-}
-
-GESTimelinePipeline *
-ges_timeline_pipeline_new (void)
-{
- return g_object_new (GEST_TYPE_TIMELINE_PIPELINE, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE_PIPELINE
-#define _GES_TIMELINE_PIPELINE
-
-#include <glib-object.h>
-#include <gst/gst.h>
-
-G_BEGIN_DECLS
-
-#define GEST_TYPE_TIMELINE_PIPELINE ges_timeline_pipeline_get_type()
-
-#define GEST_TIMELINE_PIPELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipeline))
-
-#define GEST_TIMELINE_PIPELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelineClass))
-
-#define GEST_IS_TIMELINE_PIPELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEST_TYPE_TIMELINE_PIPELINE))
-
-#define GEST_IS_TIMELINE_PIPELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GEST_TYPE_TIMELINE_PIPELINE))
-
-#define GEST_TIMELINE_PIPELINE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelineClass))
-
-typedef struct _GESTimelinePipeline GESTimelinePipeline;
-typedef struct _GESTimelinePipelineClass GESTimelinePipelineClass;
-
-struct _GESTimelinePipeline {
- GstPipeline parent;
-};
-
-struct _GESTimelinePipelineClass {
- GstPipelineClass parent_class;
-};
-
-GType ges_timeline_pipeline_get_type (void);
-
-GESTimelinePipeline* ges_timeline_pipeline_new (void);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE_PIPELINE */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline-object.h"
-#include "ges-timeline-source.h"
-
-G_DEFINE_TYPE (GESTimelineSource, ges_timeline_source, GES_TYPE_TIMELINE_OBJECT)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourcePrivate))
- typedef struct _GESTimelineSourcePrivate GESTimelineSourcePrivate;
-
- struct _GESTimelineSourcePrivate
- {
- int dummy;
- };
-
- static void
- ges_timeline_source_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_source_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_source_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_source_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_source_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_source_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_source_class_init (GESTimelineSourceClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelineSourcePrivate));
-
- object_class->get_property = ges_timeline_source_get_property;
- object_class->set_property = ges_timeline_source_set_property;
- object_class->dispose = ges_timeline_source_dispose;
- object_class->finalize = ges_timeline_source_finalize;
-}
-
-static void
-ges_timeline_source_init (GESTimelineSource * self)
-{
-}
-
-GESTimelineSource *
-ges_timeline_source_new (void)
-{
- return g_object_new (GES_TYPE_TIMELINE_SOURCE, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE_SOURCE
-#define _GES_TIMELINE_SOURCE
-
-#include <glib-object.h>
-#include <ges-timeline-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TIMELINE_SOURCE ges_timeline_source_get_type()
-
-#define GES_TIMELINE_SOURCE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_SOURCE, GESTimelineSource))
-
-#define GES_TIMELINE_SOURCE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourceClass))
-
-#define GES_IS_TIMELINE_SOURCE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_SOURCE))
-
-#define GES_IS_TIMELINE_SOURCE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_SOURCE))
-
-#define GES_TIMELINE_SOURCE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourceClass))
-
-typedef struct _GESTimelineSource GESTimelineSource;
-typedef struct _GESTimelineSourceClass GESTimelineSourceClass;
-
-struct _GESTimelineSource {
- GESTimelineObject parent;
-};
-
-struct _GESTimelineSourceClass {
- GESTimelineObjectClass parent_class;
-};
-
-GType ges_timeline_source_get_type (void);
-
-GESTimelineSource* ges_timeline_source_new (void);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE_SOURCE */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline-transition.h"
-
-G_DEFINE_TYPE (GESTimelineTransition, ges_timeline_transition,
- GES_TYPE_TIMELINE_OBJECT)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionPrivate))
- typedef struct _GESTimelineTransitionPrivate GESTimelineTransitionPrivate;
-
- struct _GESTimelineTransitionPrivate
- {
- int dummy;
- };
-
- static void
- ges_timeline_transition_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_transition_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_transition_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_transition_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_transition_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_transition_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelineTransitionPrivate));
-
- object_class->get_property = ges_timeline_transition_get_property;
- object_class->set_property = ges_timeline_transition_set_property;
- object_class->dispose = ges_timeline_transition_dispose;
- object_class->finalize = ges_timeline_transition_finalize;
-}
-
-static void
-ges_timeline_transition_init (GESTimelineTransition * self)
-{
-}
-
-GESTimelineTransition *
-ges_timeline_transition_new (void)
-{
- return g_object_new (GES_TYPE_TIMELINE_TRANSITION, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE_TRANSITION
-#define _GES_TIMELINE_TRANSITION
-
-#include <glib-object.h>
-#include <ges-timeline-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TIMELINE_TRANSITION ges_timeline_transition_get_type()
-
-#define GES_TIMELINE_TRANSITION(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransition))
-
-#define GES_TIMELINE_TRANSITION_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionClass))
-
-#define GES_IS_TIMELINE_TRANSITION(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_TRANSITION))
-
-#define GES_IS_TIMELINE_TRANSITION_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_TRANSITION))
-
-#define GES_TIMELINE_TRANSITION_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_TRANSITION, GESTimelineTransitionClass))
-
-typedef struct _GESTimelineTransition GESTimelineTransition;
-typedef struct _GESTimelineTransitionClass GESTimelineTransitionClass;
-
-struct _GESTimelineTransition {
- GESTimelineObject parent;
-};
-
-struct _GESTimelineTransitionClass {
- GESTimelineObjectClass parent_class;
-};
-
-GType ges_timeline_transition_get_type (void);
-
-GESTimelineTransition* ges_timeline_transition_new (void);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE_TRANSITION */
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-timeline.h"
-
-/**
- * GESTimelinePipeline
- *
- * Top-level container for pipelines
- *
- * Contains a list of TimelineLayer which users should use to arrange the
- * various timeline objects.
- *
- */
-
-G_DEFINE_TYPE (GESTimeline, ges_timeline, GST_TYPE_BIN)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE, GESTimelinePrivate))
- typedef struct _GESTimelinePrivate GESTimelinePrivate;
-
- struct _GESTimelinePrivate
- {
- GList *tracks; /* TimelineTracks */
- };
-
- static void
- ges_timeline_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_timeline_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_parent_class)->dispose (object);
-}
-
-static void
-ges_timeline_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_timeline_parent_class)->finalize (object);
-}
-
-static void
-ges_timeline_class_init (GESTimelineClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTimelinePrivate));
-
- object_class->get_property = ges_timeline_get_property;
- object_class->set_property = ges_timeline_set_property;
- object_class->dispose = ges_timeline_dispose;
- object_class->finalize = ges_timeline_finalize;
-}
-
-static void
-ges_timeline_init (GESTimeline * self)
-{
- self->layers = NULL;
- self->tracks = NULL;
-}
-
-GESTimeline *
-ges_timeline_new (void)
-{
- return g_object_new (GES_TYPE_TIMELINE, NULL);
-}
-
-GESTimeline *
-ges_timeline_load_from_uri (gchar * uri)
-{
- /* FIXME : IMPLEMENT */
- return NULL;
-}
-
-gboolean
-ges_timeline_save (GESTimeline * timeline, gchar * uri)
-{
- /* FIXME : IMPLEMENT */
- return FALSE;
-}
-
-gboolean
-ges_timeline_add_layer (GESTimeline * timeline, GESTimelineLayer * layer)
-{
- /* FIXME : IMPLEMENT */
-
- /* Add to the list of layers, make sure we don't already control it */
-
- /* Assign Tracks to it */
-
- return FALSE;
-}
-
-gboolean
-ges_timeline_remove_layer (GESTimeline * timeline, GESTimelineLayer * layer)
-{
- /* FIXME : IMPLEMENT */
-
- /* Unassign tracks from the given layer */
- return FALSE;
-}
-
-gboolean
-ges_timeline_add_track (GESTimeline * timeline, GESTrack * track)
-{
- /* FIXME : IMPLEMENT */
-
- /* Add to the list of tracks, make sure we don't already control it */
-
-
- return FALSE;
-}
-
-gboolean
-ges_timeline_remove_track (GESTimeline * timeline, GESTrack * track)
-{
- /* FIXME : IMPLEMENT */
-
- /* Signal track removal to all layers/objects */
-
- /* */
- return FALSE;
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TIMELINE
-#define _GES_TIMELINE
-
-#include <glib-object.h>
-#include <gst/gst.h>
-#include <ges/ges-timeline-layer.h>
-#include <ges/ges-track.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TIMELINE ges_timeline_get_type()
-
-#define GES_TIMELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE, GESTimeline))
-
-#define GES_TIMELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE, GESTimelineClass))
-
-#define GES_IS_TIMELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE))
-
-#define GES_IS_TIMELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE))
-
-#define GES_TIMELINE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE, GESTimelineClass))
-
-typedef struct _GESTimeline GESTimeline;
-typedef struct _GESTimelineClass GESTimelineClass;
-
-struct _GESTimeline {
- GstBin parent;
-
- GList *layers; /* TimelineLayer(s) ordered by priority */
- GList *tracks; /* TimelineTrack(s) */
-};
-
-struct _GESTimelineClass {
- GstBinClass parent_class;
-};
-
-GType ges_timeline_get_type (void);
-
-GESTimeline* ges_timeline_new (void);
-
-
-GESTimeline* ges_timeline_load_from_uri (gchar *uri);
-
-gboolean ges_timeline_save (GESTimeline *timeline, gchar *uri);
-
-gboolean ges_timeline_add_layer (GESTimeline *timeline, GESTimelineLayer *layer);
-gboolean ges_timeline_remove_layer (GESTimeline *timeline, GESTimelineLayer *layer);
-
-gboolean ges_timeline_add_track (GESTimeline *timeline, GESTrack *track);
-gboolean ges_timeline_remove_track (GESTimeline *timeline, GESTrack *track);
-
-G_END_DECLS
-
-#endif /* _GES_TIMELINE */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-track-object.h"
-
-static GQuark _start_quark;
-static GQuark _inpoint_quark;
-static GQuark _duration_quark;
-static GQuark _priority_quark;
-
-#define _do_init \
-{ \
- gint i; \
- \
- _start_quark = g_quark_from_static_string ("start"); \
- _inpoint_quark = g_quark_from_static_string ("inpoint"); \
- _duration_quark = g_quark_from_static_string ("duration"); \
- _priority_quark = g_quark_from_static_string ("priority"); \
-}
-G_DEFINE_TYPE_WITH_CODE (GESTrackObject, ges_track_object, G_TYPE_OBJECT,
- _do_init)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TRACK_OBJECT, GESTrackObjectPrivate))
- enum
- {
- PROP_0,
- PROP_START,
- PROP_INPOINT,
- PROP_DURATION,
- PROP_PRIORITY,
- }
-
- typedef struct _GESTrackObjectPrivate GESTrackObjectPrivate;
-
- struct _GESTrackObjectPrivate
- {
- int dummy;
- };
-
- static void
- ges_track_object_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
- {
- GESTrackObject *tobj = GES_TRACK_OBJECT (object);
-
- switch (property_id) {
- case PROP_START:
- g_value_set_uint64 (value, tobj->start);
- break;
- case PROP_INPOINT:
- g_value_set_uint64 (value, tobj->inpoint);
- break;
- case PROP_DURATION:
- g_value_set_uint64 (value, tobj->duration);
- break;
- case PROP_PRIORITY:
- g_value_set_uint (value, tobj->priority);
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
- }
-
- static void
- ges_track_object_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
- {
- GESTrackObject *tobj = GES_TRACK_OBJECT (object);
-
- switch (property_id) {
- case PROP_START:
- ges_track_object_set_start_internal (tobj,
- g_value_get_uint64 (value));
- break;
- case PROP_INPOINT:
- ges_track_object_set_inpoint_internal (tobj,
- g_value_get_uint64 (value));
- break;
- case PROP_DURATION:
- ges_track_object_set_duration_internal (tobj,
- g_value_get_uint64 (value));
- break;
- case PROP_PRIORITY:
- ges_track_object_set_priority_internal (tobj,
- g_value_get_uint (value));
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
- }
-
- static void ges_track_object_dispose (GObject * object)
- {
- G_OBJECT_CLASS (ges_track_object_parent_class)->dispose (object);
- }
-
- static void ges_track_object_finalize (GObject * object)
- {
- G_OBJECT_CLASS (ges_track_object_parent_class)->finalize (object);
- }
-
- static void ges_track_object_class_init (GESTrackObjectClass * klass)
- {
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTrackObjectPrivate));
-
- object_class->get_property = ges_track_object_get_property;
- object_class->set_property = ges_track_object_set_property;
- object_class->dispose = ges_track_object_dispose;
- object_class->finalize = ges_track_object_finalize;
-
- g_object_class_install_property (object_class, PROP_START,
- g_param_spec_uint64 ("start", "Start",
- "The position in the container", 0, G_MAXUINT64, 0,
- G_PARAM_READWRITE));
- g_object_class_install_property (object_class, PROP_INPOINT,
- g_param_spec_uint64 ("inpoint", "In-point", "The in-point", 0,
- G_MAXUINT64, 0, G_PARAM_READWRITE));
- g_object_class_install_property (object_class, PROP_DURATION,
- g_param_spec_uint64 ("duration", "Duration", "The duration to use",
- 0, G_MAXUINT64, 0, G_PARAM_READWRITE));
- g_object_class_install_property (object_class, PROP_PRIORITY,
- g_param_spec_uint ("priority", "Priority",
- "The priority of the object", 0, G_MAXUINT, 0,
- G_PARAM_READWRITE));
- }
-
- static void ges_track_object_init (GESTrackObject * self)
- {
- }
-
- GESTrackObject *ges_track_object_new (GESTimelineObject * timelineobj,
- GESTrack * track)
- {
- GESTrackObject *obj;
-
- obj = g_object_new (GES_TYPE_TRACK_OBJECT, NULL);
-
- /* Set the timeline object and track */
- obj->timelineobj = timelineobj;
- obj->track = track;
-
- /* Create the associated GnlObject */
- ges_track_object_create_gnl_object (obj);
- }
-
- gboolean
- ges_track_object_set_start_internal (GESTrackObject * object,
- guint64 start) {
- g_return_val_if_fail (object->gnlobject, FALSE);
-
- if (G_UNLIKELY (start == object->start))
- return FALSE;
-
- g_object_set (object->gnlobject, "start", start, NULL);
- return TRUE;
- };
-
- gboolean
- ges_track_object_set_inpoint_internal (GESTrackObject * object,
- guint64 inpoint) {
- guint64 dur;
-
- g_return_val_if_fail (object->gnlobject, FALSE);
-
- if (G_UNLIKELY (inpoint == object->inpoint))
- return FALSE;
-
- /* Calculate new media-start/duration/media-duration */
- dur = object->inpoint - inpoint + object->duration;
-
- g_object_set (object->gnlobject, "media-start", inpoint, "duration", dur,
- "media-duration", dur, NULL);
- return TRUE;
- }
-
- gboolean
- ges_track_object_set_duration_internal (GESTrackObject * object,
- guint64 duration) {
- g_return_val_if_fail (object->gnlobject, FALSE);
-
- if (G_UNLIKELY (duration == object->duration))
- return FALSE;
-
- g_object_set (object->gnlobject, "duration", duration, "media-duration",
- duration, NULL);
- return TRUE;
- }
-
- gboolean
- ges_track_object_set_priority_internal (GESTrackObject * object,
- guint32 priority) {
- g_return_val_if_fail (object->gnlobject, FALSE);
-
- if (G_UNLIKELY (priority == object->priority))
- return FALSE;
-
- g_object_set (object->gnlobject, "priority", priority, NULL);
- return TRUE;
- }
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TRACK_OBJECT
-#define _GES_TRACK_OBJECT
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TRACK_OBJECT ges_track_object_get_type()
-
-#define GES_TRACK_OBJECT(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObject))
-
-#define GES_TRACK_OBJECT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
-
-#define GES_IS_TRACK_OBJECT(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TRACK_OBJECT))
-
-#define GES_IS_TRACK_OBJECT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TRACK_OBJECT))
-
-#define GES_TRACK_OBJECT_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
-
-typedef struct _GESTrackObject GESTrackObject;
-typedef struct _GESTrackObjectClass GESTrackObjectClass;
-
-struct _GESTrackObject {
- GObject parent;
-
- GESTimelineObject *timelineobj; /* The associated timeline object */
- GESTrack *track; /* The associated Track */
-
- /* Cached values of the gnlobject properties */
- guint64 start; /* position (in time) of the object in the layer */
- guint64 inpoint; /* in-point */
- guint64 duration; /* duration of the object used in the layer */
- guint32 priority; /* priority of the object in the layer (0:top priority) */
-
- GstElement *gnlobject; /* The associated GnlObject */
-};
-
-struct _GESTrackObjectClass {
- GObjectClass parent_class;
-
- /* signal callbacks */
- void (*changed) (GESTrackObject * object);
-
- /* virtual methods */
- gboolean (*create_gnl_object) (GESTrackObject * object);
-};
-
-GType ges_track_object_get_type (void);
-
-GESTrackObject* ges_track_object_new (GESTimelineObject *timelineobj, GESTrack *track);
-
-gboolean ges_track_object_create_gnl_object (GESTrackObject * object);
-
-/* Private methods for GESTimelineObject's usage only */
-gboolean ges_track_object_set_start_internal (GESTrackObject * object, guint64 start);
-gboolean ges_track_object_set_inpoint_internal (GESTrackObject * object, guint64 inpoint);
-gboolean ges_track_object_set_duration_internal (GESTrackObject * object, guint64 duration);
-gboolean ges_track_object_set_priority_internal (GESTrackObject * object, guint32 priority);
-
-G_END_DECLS
-
-#endif /* _GES_TRACK_OBJECT */
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "ges-track.h"
-
-/**
- * GESTrack
- *
- * Corresponds to one output format (i.e. audio OR video)
- *
- * Contains the compatible TrackObject(s)
- */
-
-G_DEFINE_TYPE (GESTrack, ges_track, GST_TYPE_BIN)
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TRACK, GESTrackPrivate))
- typedef struct _GESTrackPrivate GESTrackPrivate;
-
- struct _GESTrackPrivate
- {
- int dummy;
- };
-
- static void
- ges_track_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_track_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- }
-}
-
-static void
-ges_track_dispose (GObject * object)
-{
- G_OBJECT_CLASS (ges_track_parent_class)->dispose (object);
-}
-
-static void
-ges_track_finalize (GObject * object)
-{
- G_OBJECT_CLASS (ges_track_parent_class)->finalize (object);
-}
-
-static void
-ges_track_class_init (GESTrackClass * klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (klass, sizeof (GESTrackPrivate));
-
- object_class->get_property = ges_track_get_property;
- object_class->set_property = ges_track_set_property;
- object_class->dispose = ges_track_dispose;
- object_class->finalize = ges_track_finalize;
-}
-
-static void
-ges_track_init (GESTrack * self)
-{
-}
-
-GESTrack *
-ges_track_new (void)
-{
- return g_object_new (GES_TYPE_TRACK, NULL);
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef _GES_TRACK
-#define _GES_TRACK
-
-#include <glib-object.h>
-#include <gst/gst.h>
-#include <ges-track-object.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_TRACK ges_track_get_type()
-
-#define GES_TRACK(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TRACK, GESTrack))
-
-#define GES_TRACK_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TRACK, GESTrackClass))
-
-#define GES_IS_TRACK(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TRACK))
-
-#define GES_IS_TRACK_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TRACK))
-
-#define GES_TRACK_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK, GESTrackClass))
-
-typedef struct _GESTrack GESTrack;
-typedef struct _GESTrackClass GESTrackClass;
-
-struct _GESTrack {
- GstBin parent;
-
- GnlComposition * composition; /* The composition associated with this track */
-};
-
-struct _GESTrackClass {
- GstBinClass parent_class;
-};
-
-GType ges_track_get_type (void);
-
-GESTrack* ges_track_new (void);
-
-gboolean ges_track_add_object (GESTrack *track, GESTrackObject * object);
-
-G_END_DECLS
-
-#endif /* _GES_TRACK */
-
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include <ges/ges.h>
-
-GST_DEBUG_CATEGORY (ges_debug);
-
-void
-ges_init (void)
-{
- /* initialize debugging category */
- GST_DEBUG_CATEGORY_INIT (ges_debug, "ges", GST_DEBUG_FG_YELLOW,
- "GStreamer Editing Services");
-}
+++ /dev/null
-/* GStreamer Editing Services
- * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
- *
- * 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., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef __GES_H__
-#define __GES_H__
-
-#include <glib.h>
-#include <gst/gst.h>
-
-#include <ges/ges-simple-timeline-layer.h>
-#include <ges/ges-timeline.h>
-#include <ges/ges-timeline-layer.h>
-#include <ges/ges-timeline-object.h>
-#include <ges/ges-timeline-pipeline.h>
-#include <ges/ges-timeline-source.h>
-#include <ges/ges-timeline-transition.h>
-#include <ges/ges-track.h>
-
-GST_DEBUG_CATEGORY_EXTERN (ges_debug);
-#define GST_CAT_DEFAULT ges_debug
-
-G_BEGIN_DECLS
-
-void ges_init (void);
-
-G_END_DECLS
-
-#endif /* __GES_H__ */