<chapter>
<title>Assets</title>
<xi:include href="xml/ges-asset-clip.xml"/>
- <xi:include href="xml/ges-asset-track-object.xml"/>
+ <xi:include href="xml/ges-track-element-asset.xml"/>
<xi:include href="xml/ges-uri-clip-asset.xml"/>
<xi:include href="xml/ges-asset-track-file-source.xml"/>
<xi:include href="xml/ges-project.xml"/>
</SECTION>
<SECTION>
-<FILE>ges-asset-track-object</FILE>
-<TITLE>GESAssetTrackElement</TITLE>
-GESAssetTrackElement
-ges_asset_track_element_get_type
-ges_asset_track_element_get_track_type
-ges_asset_track_element_set_track_type
+<FILE>ges-track-element-asset</FILE>
+<TITLE>GESTrackElementAsset</TITLE>
+GESTrackElementAsset
+ges_track_element_asset_get_type
+ges_track_element_asset_get_track_type
+ges_track_element_asset_set_track_type
<SUBSECTION Standard>
-GESAssetTrackElementPrivate
-GES_ASSET_TRACK_ELEMENT
-GES_TYPE_ASSET_TRACK_ELEMENT
-GES_ASSET_TRACK_ELEMENT_CLASS
-GES_IS_ASSET_TRACK_ELEMENT
-GES_IS_ASSET_TRACK_ELEMENT_CLASS
-GES_ASSET_TRACK_ELEMENT_GET_CLASS
+GESTrackElementAssetPrivate
+GES_TRACK_ELEMENT_ASSET
+GES_TYPE_TRACK_ELEMENT_ASSET
+GES_TRACK_ELEMENT_ASSET_CLASS
+GES_IS_TRACK_ELEMENT_ASSET
+GES_IS_TRACK_ELEMENT_ASSET_CLASS
+GES_TRACK_ELEMENT_ASSET_GET_CLASS
</SECTION>
<SECTION>
ges-asset.c \
ges-uri-asset.c \
ges-asset-clip.c \
- ges-asset-track-object.c \
+ ges-track-element-asset.c \
ges-extractable.c \
ges-project.c \
ges-base-xml-formatter.c \
ges-asset.h \
ges-uri-asset.h \
ges-asset-clip.h \
- ges-asset-track-object.h \
+ ges-track-element-asset.h \
ges-extractable.h \
ges-project.h \
ges-base-xml-formatter.h \
+++ /dev/null
-/* GStreamer Editing Services
- *
- * Copyright (C) 2012 Thibault Saunier <thibault.saunier@collabora.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_ASSET_TRACK_ELEMENT_
-#define _GES_ASSET_TRACK_ELEMENT_
-
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <ges/ges-types.h>
-#include <ges/ges-asset.h>
-
-G_BEGIN_DECLS
-
-#define GES_TYPE_ASSET_TRACK_ELEMENT ges_asset_track_element_get_type()
-#define GES_ASSET_TRACK_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElement))
-#define GES_ASSET_TRACK_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementClass))
-#define GES_IS_ASSET_TRACK_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_ASSET_TRACK_ELEMENT))
-#define GES_IS_ASSET_TRACK_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_ASSET_TRACK_ELEMENT))
-#define GES_ASSET_TRACK_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementClass))
-
-typedef struct _GESAssetTrackElementPrivate GESAssetTrackElementPrivate;
-
-GType ges_asset_track_element_get_type (void);
-
-struct _GESAssetTrackElement
-{
- GESAsset parent;
-
- /* <private> */
- GESAssetTrackElementPrivate *priv;
-
- /* Padding for API extension */
- gpointer __ges_reserved[GES_PADDING];
-};
-
-struct _GESAssetTrackElementClass
-{
- GESAssetClass parent_class;
-
- gpointer _ges_reserved[GES_PADDING];
-};
-
-const GESTrackType ges_asset_track_element_get_track_type (GESAssetTrackElement *asset);
-void ges_asset_track_element_set_track_type (GESAssetTrackElement * asset, GESTrackType type);
-
-G_END_DECLS
-#endif /* _GES_ASSET_TRACK_ELEMENT */
-
*/
/**
- * SECTION: ges-asset-track-object
+ * SECTION: ges-track-element-asset
* @short_description: A GESAsset subclass specialized in GESTrackElement extraction
*/
-#include "ges-asset-track-object.h"
+#include "ges-track-element-asset.h"
enum
{
static GParamSpec *properties[PROP_LAST];
-G_DEFINE_TYPE (GESAssetTrackElement, ges_asset_track_element, GES_TYPE_ASSET);
+G_DEFINE_TYPE (GESTrackElementAsset, ges_track_element_asset, GES_TYPE_ASSET);
-struct _GESAssetTrackElementPrivate
+struct _GESTrackElementAssetPrivate
{
GESTrackType type;
};
_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GESAssetTrackElement *asset = GES_ASSET_TRACK_ELEMENT (object);
+ GESTrackElementAsset *asset = GES_TRACK_ELEMENT_ASSET (object);
switch (property_id) {
case PROP_TRACK_TYPE:
_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GESAssetTrackElement *asset = GES_ASSET_TRACK_ELEMENT (object);
+ GESTrackElementAsset *asset = GES_TRACK_ELEMENT_ASSET (object);
switch (property_id) {
case PROP_TRACK_TYPE:
}
static void
-ges_asset_track_element_class_init (GESAssetTrackElementClass * klass)
+ges_track_element_asset_class_init (GESTrackElementAssetClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (GESAssetTrackElementPrivate));
+ g_type_class_add_private (klass, sizeof (GESTrackElementAssetPrivate));
object_class->get_property = _get_property;
object_class->set_property = _set_property;
}
static void
-ges_asset_track_element_init (GESAssetTrackElement * self)
+ges_track_element_asset_init (GESTrackElementAsset * self)
{
- GESAssetTrackElementPrivate *priv;
+ GESTrackElementAssetPrivate *priv;
priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
- GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementPrivate);
+ GES_TYPE_TRACK_ELEMENT_ASSET, GESTrackElementAssetPrivate);
priv->type = GES_TRACK_TYPE_UNKNOWN;
}
/**
- * ges_asset_track_element_set_track_type:
+ * ges_track_element_asset_set_track_type:
* @asset: A #GESAssetObject
* @type: A #GESTrackType
*
* should get into
*/
void
-ges_asset_track_element_set_track_type (GESAssetTrackElement * asset,
+ges_track_element_asset_set_track_type (GESTrackElementAsset * asset,
GESTrackType type)
{
- g_return_if_fail (GES_IS_ASSET_TRACK_ELEMENT (asset));
+ g_return_if_fail (GES_IS_TRACK_ELEMENT_ASSET (asset));
asset->priv->type = type;
}
/**
- * ges_asset_track_element_get_track_type:
+ * ges_track_element_asset_get_track_type:
* @asset: A #GESAssetObject
*
* Get the GESAssetTrackType the #GESTrackElement extracted from @self
* Returns: a #GESTrackType
*/
const GESTrackType
-ges_asset_track_element_get_track_type (GESAssetTrackElement * asset)
+ges_track_element_asset_get_track_type (GESTrackElementAsset * asset)
{
- g_return_val_if_fail (GES_IS_ASSET_TRACK_ELEMENT (asset),
+ g_return_val_if_fail (GES_IS_TRACK_ELEMENT_ASSET (asset),
GES_TRACK_TYPE_UNKNOWN);
return asset->priv->type;
--- /dev/null
+/* GStreamer Editing Services
+ *
+ * Copyright (C) 2012 Thibault Saunier <thibault.saunier@collabora.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_ELEMENT_ASSET_
+#define _GES_TRACK_ELEMENT_ASSET_
+
+#include <glib-object.h>
+#include <gio/gio.h>
+#include <ges/ges-types.h>
+#include <ges/ges-asset.h>
+
+G_BEGIN_DECLS
+
+#define GES_TYPE_TRACK_ELEMENT_ASSET ges_track_element_asset_get_type()
+#define GES_TRACK_ELEMENT_ASSET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TRACK_ELEMENT_ASSET, GESTrackElementAsset))
+#define GES_TRACK_ELEMENT_ASSET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TRACK_ELEMENT_ASSET, GESTrackElementAssetClass))
+#define GES_IS_TRACK_ELEMENT_ASSET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TRACK_ELEMENT_ASSET))
+#define GES_IS_TRACK_ELEMENT_ASSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TRACK_ELEMENT_ASSET))
+#define GES_TRACK_ELEMENT_ASSET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_ELEMENT_ASSET, GESTrackElementAssetClass))
+
+typedef struct _GESTrackElementAssetPrivate GESTrackElementAssetPrivate;
+
+GType ges_track_element_asset_get_type (void);
+
+struct _GESTrackElementAsset
+{
+ GESAsset parent;
+
+ /* <private> */
+ GESTrackElementAssetPrivate *priv;
+
+ /* Padding for API extension */
+ gpointer __ges_reserved[GES_PADDING];
+};
+
+struct _GESTrackElementAssetClass
+{
+ GESAssetClass parent_class;
+
+ gpointer _ges_reserved[GES_PADDING];
+};
+
+const GESTrackType ges_track_element_asset_get_track_type (GESTrackElementAsset *asset);
+void ges_track_element_asset_set_track_type (GESTrackElementAsset * asset, GESTrackType type);
+
+G_END_DECLS
+#endif /* _GES_TRACK_ELEMENT_ASSET */
+
typedef struct _GESUriClipAsset GESUriClipAsset;
typedef struct _GESUriClipAssetClass GESUriClipAssetClass;
-typedef struct _GESAssetTrackElement GESAssetTrackElement;
-typedef struct _GESAssetTrackElementClass GESAssetTrackElementClass;
+typedef struct _GESTrackElementAsset GESTrackElementAsset;
+typedef struct _GESTrackElementAssetClass GESTrackElementAssetClass;
typedef struct _GESUriSourceAsset GESUriSourceAsset;
typedef struct _GESUriSourceAssetClass GESUriSourceAssetClass;
#include <gst/pbutils/pbutils.h>
#include "ges.h"
#include "ges-internal.h"
-#include "ges-asset-track-object.h"
+#include "ges-track-element-asset.h"
static GHashTable *parent_newparent_table = NULL;
static void
priv_tckasset->uri = ges_asset_get_id (GES_ASSET (asset));
priv_tckasset->sinfo = g_object_ref (sinfo);
priv_tckasset->parent_asset = asset;
- ges_asset_track_element_set_track_type (GES_ASSET_TRACK_ELEMENT
+ ges_track_element_asset_set_track_type (GES_TRACK_ELEMENT_ASSET
(tck_filesource_asset), type);
priv->asset_trackfilesources = g_list_append (priv->asset_trackfilesources,
*/
G_DEFINE_TYPE (GESUriSourceAsset, ges_uri_source_asset,
- GES_TYPE_ASSET_TRACK_ELEMENT);
+ GES_TYPE_TRACK_ELEMENT_ASSET);
static GESExtractable *
_extract (GESAsset * asset, GError ** error)
#include <ges/ges-types.h>
#include <ges/ges-asset.h>
#include <ges/ges-asset-clip.h>
-#include <ges/ges-asset-track-object.h>
+#include <ges/ges-track-element-asset.h>
G_BEGIN_DECLS
#define GES_TYPE_URI_CLIP_ASSET ges_uri_clip_asset_get_type()
struct _GESUriSourceAsset
{
- GESAssetTrackElement parent;
+ GESTrackElementAsset parent;
/* <private> */
GESUriSourceAssetPrivate *priv;
struct _GESUriSourceAssetClass
{
- GESAssetTrackElementClass parent_class;
+ GESTrackElementAssetClass parent_class;
gpointer _ges_reserved[GES_PADDING];
};
#include "ges-source-clip.h"
#include "ges-uri-source.h"
#include "ges-uri-asset.h"
-#include "ges-asset-track-object.h"
+#include "ges-track-element-asset.h"
#include "ges-extractable.h"
#include "ges-track-image-source.h"
#include "ges-audio-test-source.h"
ges_uri_clip_asset_get_stream_assets (GES_URI_CLIP_ASSET
(GES_TIMELINE_ELEMENT (obj)->asset));
for (tmp = stream_assets; tmp; tmp = tmp->next) {
- GESAssetTrackElement *asset = GES_ASSET_TRACK_ELEMENT (tmp->data);
+ GESTrackElementAsset *asset = GES_TRACK_ELEMENT_ASSET (tmp->data);
- if (ges_asset_track_element_get_track_type (asset) == type)
+ if (ges_track_element_asset_get_track_type (asset) == type)
res = g_list_prepend (res, ges_asset_extract (GES_ASSET (asset), NULL));
}
if (ges_track_element_get_track_type (GES_TRACK_ELEMENT (self)) ==
GES_TRACK_TYPE_UNKNOWN) {
ges_track_element_set_track_type (GES_TRACK_ELEMENT (self),
- ges_asset_track_element_get_track_type (GES_ASSET_TRACK_ELEMENT
+ ges_track_element_asset_get_track_type (GES_TRACK_ELEMENT_ASSET
(asset)));
}
}
#include <ges/ges-screenshot.h>
#include <ges/ges-asset.h>
#include <ges/ges-asset-clip.h>
-#include <ges/ges-asset-track-object.h>
+#include <ges/ges-track-element-asset.h>
#include <ges/ges-uri-asset.h>
#include <ges/ges-project.h>
#include <ges/ges-extractable.h>