2013-01-15 13:52:17 +00:00
|
|
|
/*
|
|
|
|
* gst-editing-services
|
|
|
|
* Copyright (C) <2013> Thibault Saunier <thibault.saunier@collabora.com>
|
|
|
|
* <2013> Collabora Ltd.
|
|
|
|
*
|
|
|
|
* gst-editing-services is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* gst-editing-services 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-03-17 21:13:51 +00:00
|
|
|
#pragma once
|
2013-01-15 13:52:17 +00:00
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include "ges-enums.h"
|
|
|
|
#include "ges-types.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GES_TYPE_TIMELINE_ELEMENT (ges_timeline_element_get_type ())
|
2020-03-17 18:51:39 +00:00
|
|
|
GES_DECLARE_TYPE(TimelineElement, timeline_element, TIMELINE_ELEMENT);
|
2013-01-15 13:52:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_START:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-15 13:52:17 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:start of @obj.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_START(obj) (((GESTimelineElement*)obj)->start)
|
|
|
|
|
2013-03-23 04:31:23 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_END:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-03-23 04:31:23 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The end position of @obj: #GESTimelineElement:start +
|
|
|
|
* #GESTimelineElement:duration.
|
2013-03-23 04:31:23 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_END(obj) ((((GESTimelineElement*)obj)->start) + (((GESTimelineElement*)obj)->duration))
|
|
|
|
|
2013-01-15 13:52:17 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_INPOINT:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-15 13:52:17 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:in-point of @obj.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_INPOINT(obj) (((GESTimelineElement*)obj)->inpoint)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_DURATION:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-15 13:52:17 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:duration of @obj.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_DURATION(obj) (((GESTimelineElement*)obj)->duration)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_MAX_DURATION:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-15 13:52:17 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:max-duration of @obj.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_MAX_DURATION(obj) (((GESTimelineElement*)obj)->maxduration)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_PRIORITY:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-15 13:52:17 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:priority of @obj.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_PRIORITY(obj) (((GESTimelineElement*)obj)->priority)
|
|
|
|
|
2019-03-01 22:08:39 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_NO_LAYER_PRIORITY:
|
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* Layer priority when a timeline element is not in any layer.
|
2019-03-01 22:08:39 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_NO_LAYER_PRIORITY ((guint32) -1)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_LAYER_PRIORITY:
|
|
|
|
* @obj: The object to retrieve the layer priority from
|
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* See #ges_timeline_element_get_layer_priority.
|
2019-03-01 22:08:39 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_LAYER_PRIORITY(obj) (ges_timeline_element_get_layer_priority(((GESTimelineElement*)obj)))
|
|
|
|
|
2013-01-20 15:58:05 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_PARENT:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-01-20 15:58:05 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:parent of @obj.
|
2013-01-20 15:58:05 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_PARENT(obj) (((GESTimelineElement*)obj)->parent)
|
2013-01-15 13:52:17 +00:00
|
|
|
|
2013-02-28 18:12:15 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_TIMELINE:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2013-02-28 18:12:15 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:timeline of @obj.
|
2013-02-28 18:12:15 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_TIMELINE(obj) (((GESTimelineElement*)obj)->timeline)
|
|
|
|
|
2014-02-18 14:14:40 +00:00
|
|
|
/**
|
|
|
|
* GES_TIMELINE_ELEMENT_NAME:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @obj: A #GESTimelineElement
|
2014-02-18 14:14:40 +00:00
|
|
|
*
|
2020-01-07 17:40:53 +00:00
|
|
|
* The #GESTimelineElement:name of @obj.
|
2014-02-18 14:14:40 +00:00
|
|
|
*/
|
|
|
|
#define GES_TIMELINE_ELEMENT_NAME(obj) (((GESTimelineElement*)obj)->name)
|
|
|
|
|
2013-03-01 22:18:10 +00:00
|
|
|
/**
|
|
|
|
* GESTimelineElement:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @parent: The #GESTimelineElement:parent of the element
|
2013-03-01 22:18:10 +00:00
|
|
|
* @asset: The #GESAsset from which the object has been extracted
|
2020-01-07 17:40:53 +00:00
|
|
|
* @start: The #GESTimelineElement:start of the element
|
|
|
|
* @inpoint: The #GESTimelineElement:in-point of the element
|
|
|
|
* @duration: The #GESTimelineElement:duration of the element
|
|
|
|
* @maxduration: The #GESTimelineElement:max-duration of the element
|
|
|
|
* @priority: The #GESTimelineElement:priority of the element
|
|
|
|
* @name: The #GESTimelineElement:name of the element
|
|
|
|
* @timeline: The #GESTimelineElement:timeline of the element
|
|
|
|
*
|
|
|
|
* All members can be read freely, but should usually not be written to.
|
|
|
|
* Subclasses may write to them, but should make sure to properly call
|
|
|
|
* g_object_notify().
|
2013-03-01 22:18:10 +00:00
|
|
|
*/
|
|
|
|
struct _GESTimelineElement
|
|
|
|
{
|
|
|
|
GInitiallyUnowned parent_instance;
|
|
|
|
|
|
|
|
/*< public > */
|
|
|
|
/*< read only >*/
|
|
|
|
GESTimelineElement *parent;
|
|
|
|
GESAsset *asset;
|
|
|
|
GstClockTime start;
|
|
|
|
GstClockTime inpoint;
|
|
|
|
GstClockTime duration;
|
|
|
|
GstClockTime maxduration;
|
|
|
|
guint32 priority;
|
|
|
|
GESTimeline *timeline;
|
2014-02-18 14:14:40 +00:00
|
|
|
gchar *name;
|
2013-03-01 22:18:10 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
GESTimelineElementPrivate *priv;
|
|
|
|
|
|
|
|
/* Padding for API extension */
|
|
|
|
gpointer _ges_reserved[GES_PADDING_LARGE];
|
|
|
|
};
|
|
|
|
|
2013-01-15 13:52:17 +00:00
|
|
|
/**
|
|
|
|
* GESTimelineElementClass:
|
2020-01-07 17:40:53 +00:00
|
|
|
* @set_parent: Method called just before the #GESTimelineElement:parent
|
|
|
|
* is set.
|
|
|
|
* @set_start: Method called just before the #GESTimelineElement:start is
|
2020-03-10 16:01:02 +00:00
|
|
|
* set. This method should check whether the #GESTimelineElement:start can
|
|
|
|
* be changed to the new value and to otherwise prepare the element in
|
|
|
|
* response to what the new value will be. A return of %FALSE means that
|
|
|
|
* the property should not be set. A return of %TRUE means that the
|
|
|
|
* property should be set to the value given to the setter and a notify
|
|
|
|
* emitted. A return of -1 means that the property should not be set but
|
|
|
|
* the setter should still return %TRUE (normally because the method
|
|
|
|
* already handled setting the value, potentially to a snapped value, and
|
|
|
|
* emitted the notify signal).
|
|
|
|
* #GESTimelineElement:duration is set. This method should check
|
|
|
|
* whether the #GESTimelineElement:duration can be changed to the new
|
|
|
|
* value and to otherwise prepare the element in response to what the new
|
|
|
|
* value will be. A return of %FALSE means that the property should not be
|
|
|
|
* set. A return of %TRUE means that the property should be set to the
|
|
|
|
* value given to the setter and a notify emitted. A return of -1 means
|
|
|
|
* that the property should not be set but the setter should still return
|
|
|
|
* %TRUE (normally because the method already handled setting the value,
|
|
|
|
* potentially to a snapped value, and emitted the notify signal).
|
2020-01-07 17:40:53 +00:00
|
|
|
* @set_inpoint: Method called just before the
|
2020-03-10 11:35:23 +00:00
|
|
|
* #GESTimelineElement:in-point is set to a new value. This method should
|
|
|
|
* not set the #GESTimelineElement:in-point itself, but should check
|
|
|
|
* whether it can be changed to the new value and to otherwise prepare the
|
|
|
|
* element in response to what the new value will be. A return of %FALSE
|
|
|
|
* means that the property should not be set.
|
2020-01-07 17:40:53 +00:00
|
|
|
* @set_max_duration: Method called just before the
|
2020-03-10 11:35:23 +00:00
|
|
|
* #GESTimelineElement:max-duration is set. This method should
|
|
|
|
* not set the #GESTimelineElement:max-duration itself, but should check
|
|
|
|
* whether it can be changed to the new value and to otherwise prepare the
|
|
|
|
* element in response to what the new value will be. A return of %FALSE
|
|
|
|
* means that the property should not be set.
|
2020-01-07 17:40:53 +00:00
|
|
|
* @set_priority: Method called just before the
|
|
|
|
* #GESTimelineElement:in-point is set.
|
|
|
|
* @ripple_end: Method to ripple an object on its #GES_EDGE_END edge.
|
|
|
|
* @roll_start: Method to roll an object on its #GES_EDGE_START edge.
|
|
|
|
* @roll_end: Method to roll an object on its #GES_EDGE_END edge.
|
|
|
|
* @trim: Method to trim an object.
|
|
|
|
* @deep_copy: Prepare @copy for pasting as a copy of @self. At least by
|
|
|
|
* copying the children properties of @self into @copy.
|
|
|
|
* @paste: Paste @self, which is the @copy prepared by @deep_copy, into
|
|
|
|
* the timeline at the given @paste_position, with @ref_element as a
|
|
|
|
* reference, which is the @self that was passed to @deep_copy.
|
|
|
|
* @lookup-child: Method to find a child with the child property.
|
|
|
|
* @prop_name. The default vmethod will return the first child that
|
|
|
|
* matches. Overwrite this with a call to the parent vmethod if you wish
|
|
|
|
* to redirect property names. Or overwrite to change which child is
|
|
|
|
* returned if multiple children share the same child property name.
|
|
|
|
* @get_track_types: Return a the track types for the element.
|
|
|
|
* @set_child_property: Method for setting the child property given by
|
|
|
|
* @pspec on @child to @value. Default implementation will use
|
|
|
|
* g_object_set_property().
|
|
|
|
* @get_layer_priority: Get the #GESLayer:priority of the layer that this
|
|
|
|
* element is part of.
|
2020-02-21 09:23:34 +00:00
|
|
|
* @list_children_properties: List the children properties that have been
|
|
|
|
* registered for the element. The default implementation is able to fetch
|
|
|
|
* all of these, so should be sufficient. If you overwrite this, you
|
|
|
|
* should still call the default implementation to get the full list, and
|
|
|
|
* then edit its content.
|
|
|
|
* @lookup_child: Find @child, and its registered child property @pspec,
|
|
|
|
* corresponding to the child property specified by @prop_name. The
|
|
|
|
* default implementation will search for the first child that matches. If
|
|
|
|
* you overwrite this, you will likely still want to call the default
|
|
|
|
* vmethod, which has access to the registered parameter specifications.
|
2020-01-07 17:40:53 +00:00
|
|
|
*
|
|
|
|
* The #GESTimelineElement base class. Subclasses should override at least
|
2013-01-15 13:52:17 +00:00
|
|
|
* @set_start @set_inpoint @set_duration @ripple @ripple_end @roll_start
|
2013-09-01 16:18:53 +00:00
|
|
|
* @roll_end and @trim.
|
|
|
|
*
|
|
|
|
* Vmethods in subclasses should apply all the operation they need to but
|
|
|
|
* the real method implementation is in charge of setting the proper field,
|
2020-01-07 17:40:53 +00:00
|
|
|
* and emitting the notify signal.
|
2013-01-15 13:52:17 +00:00
|
|
|
*/
|
|
|
|
struct _GESTimelineElementClass
|
|
|
|
{
|
|
|
|
GInitiallyUnownedClass parent_class;
|
|
|
|
|
2013-03-01 22:18:10 +00:00
|
|
|
/*< public > */
|
2013-09-01 16:18:53 +00:00
|
|
|
gboolean (*set_parent) (GESTimelineElement * self, GESTimelineElement *parent);
|
2013-01-15 13:52:17 +00:00
|
|
|
gboolean (*set_start) (GESTimelineElement * self, GstClockTime start);
|
|
|
|
gboolean (*set_inpoint) (GESTimelineElement * self, GstClockTime inpoint);
|
|
|
|
gboolean (*set_duration) (GESTimelineElement * self, GstClockTime duration);
|
|
|
|
gboolean (*set_max_duration) (GESTimelineElement * self, GstClockTime maxduration);
|
2016-08-11 14:54:08 +00:00
|
|
|
gboolean (*set_priority) (GESTimelineElement * self, guint32 priority); /* set_priority is now protected */
|
2013-01-15 13:52:17 +00:00
|
|
|
|
|
|
|
gboolean (*ripple) (GESTimelineElement *self, guint64 start);
|
|
|
|
gboolean (*ripple_end) (GESTimelineElement *self, guint64 end);
|
|
|
|
gboolean (*roll_start) (GESTimelineElement *self, guint64 start);
|
|
|
|
gboolean (*roll_end) (GESTimelineElement *self, guint64 end);
|
|
|
|
gboolean (*trim) (GESTimelineElement *self, guint64 start);
|
2015-02-19 15:30:18 +00:00
|
|
|
void (*deep_copy) (GESTimelineElement *self, GESTimelineElement *copy);
|
2016-01-01 10:56:27 +00:00
|
|
|
|
|
|
|
GESTimelineElement * (*paste) (GESTimelineElement *self,
|
|
|
|
GESTimelineElement *ref_element,
|
|
|
|
GstClockTime paste_position);
|
2015-02-19 15:30:18 +00:00
|
|
|
|
|
|
|
GParamSpec** (*list_children_properties) (GESTimelineElement * self, guint *n_properties);
|
|
|
|
gboolean (*lookup_child) (GESTimelineElement *self, const gchar *prop_name,
|
|
|
|
GObject **child, GParamSpec **pspec);
|
2018-03-31 14:24:23 +00:00
|
|
|
GESTrackType (*get_track_types) (GESTimelineElement * self);
|
2018-03-26 15:13:25 +00:00
|
|
|
void (*set_child_property) (GESTimelineElement * self, GObject *child,
|
|
|
|
GParamSpec *pspec, GValue *value);
|
2013-01-15 13:52:17 +00:00
|
|
|
|
2019-03-01 22:08:39 +00:00
|
|
|
guint32 (*get_layer_priority) (GESTimelineElement *self);
|
|
|
|
|
2013-03-01 22:18:10 +00:00
|
|
|
/*< private > */
|
2020-02-18 18:21:38 +00:00
|
|
|
gboolean (*get_natural_framerate) (GESTimelineElement * self, gint *framerate_n, gint *framerate_d);
|
2013-01-15 13:52:17 +00:00
|
|
|
/* Padding for API extension */
|
2020-02-18 18:21:38 +00:00
|
|
|
gpointer _ges_reserved[GES_PADDING_LARGE - 5];
|
2013-01-15 13:52:17 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GESTimelineElement * ges_timeline_element_get_toplevel_parent (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GESTimelineElement * ges_timeline_element_get_parent (GESTimelineElement * self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_parent (GESTimelineElement *self,
|
|
|
|
GESTimelineElement *parent);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_timeline (GESTimelineElement *self,
|
|
|
|
GESTimeline *timeline);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_start (GESTimelineElement *self,
|
|
|
|
GstClockTime start);
|
2018-11-05 12:57:25 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_inpoint (GESTimelineElement *self,
|
|
|
|
GstClockTime inpoint);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_duration (GESTimelineElement *self,
|
|
|
|
GstClockTime duration);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_max_duration (GESTimelineElement *self,
|
|
|
|
GstClockTime maxduration);
|
2019-08-20 21:46:09 +00:00
|
|
|
GES_DEPRECATED
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_priority (GESTimelineElement *self,
|
|
|
|
guint32 priority);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GstClockTime ges_timeline_element_get_start (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GstClockTime ges_timeline_element_get_inpoint (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GstClockTime ges_timeline_element_get_duration (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GstClockTime ges_timeline_element_get_max_duration (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GESTimeline * ges_timeline_element_get_timeline (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
guint32 ges_timeline_element_get_priority (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_ripple (GESTimelineElement *self,
|
|
|
|
GstClockTime start);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_ripple_end (GESTimelineElement *self,
|
|
|
|
GstClockTime end);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_roll_start (GESTimelineElement *self,
|
|
|
|
GstClockTime start);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_roll_end (GESTimelineElement *self,
|
|
|
|
GstClockTime end);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_trim (GESTimelineElement *self,
|
|
|
|
GstClockTime start);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GESTimelineElement * ges_timeline_element_copy (GESTimelineElement *self,
|
|
|
|
gboolean deep);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gchar * ges_timeline_element_get_name (GESTimelineElement *self);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_set_name (GESTimelineElement *self,
|
|
|
|
const gchar *name);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GParamSpec ** ges_timeline_element_list_children_properties (GESTimelineElement *self,
|
|
|
|
guint *n_properties);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
gboolean ges_timeline_element_lookup_child (GESTimelineElement *self,
|
|
|
|
const gchar *prop_name,
|
|
|
|
GObject **child,
|
|
|
|
GParamSpec **pspec);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
void ges_timeline_element_get_child_property_by_pspec (GESTimelineElement * self,
|
|
|
|
GParamSpec * pspec, GValue * value);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
void ges_timeline_element_get_child_property_valist (GESTimelineElement * self,
|
|
|
|
const gchar * first_property_name,
|
|
|
|
va_list var_args);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
void ges_timeline_element_get_child_properties (GESTimelineElement *self,
|
|
|
|
const gchar * first_property_name, ...) G_GNUC_NULL_TERMINATED;
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
void ges_timeline_element_set_child_property_valist (GESTimelineElement * self,
|
|
|
|
const gchar * first_property_name,
|
|
|
|
va_list var_args);
|
|
|
|
GES_API
|
|
|
|
void ges_timeline_element_set_child_property_by_pspec (GESTimelineElement * self,
|
|
|
|
GParamSpec * pspec,
|
|
|
|
const GValue * value);
|
|
|
|
GES_API
|
|
|
|
void ges_timeline_element_set_child_properties (GESTimelineElement * self,
|
|
|
|
const gchar * first_property_name,
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_set_child_property (GESTimelineElement *self,
|
|
|
|
const gchar *property_name,
|
|
|
|
const GValue * value);
|
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_get_child_property (GESTimelineElement *self,
|
|
|
|
const gchar *property_name,
|
|
|
|
GValue * value);
|
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_add_child_property (GESTimelineElement * self,
|
|
|
|
GParamSpec *pspec,
|
|
|
|
GObject *child);
|
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_remove_child_property (GESTimelineElement * self,
|
|
|
|
GParamSpec *pspec);
|
|
|
|
GES_API
|
|
|
|
GESTimelineElement * ges_timeline_element_paste (GESTimelineElement * self,
|
|
|
|
GstClockTime paste_position);
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API
|
2019-01-24 11:43:00 +00:00
|
|
|
GESTrackType ges_timeline_element_get_track_types (GESTimelineElement * self);
|
2020-02-18 18:21:38 +00:00
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_get_natural_framerate (GESTimelineElement *self,
|
|
|
|
gint *framerate_n,
|
|
|
|
gint *framerate_d);
|
2015-06-23 11:27:00 +00:00
|
|
|
|
2019-03-01 22:08:39 +00:00
|
|
|
GES_API
|
2019-05-01 16:09:45 +00:00
|
|
|
guint32 ges_timeline_element_get_layer_priority (GESTimelineElement * self);
|
|
|
|
|
|
|
|
GES_API
|
|
|
|
gboolean ges_timeline_element_edit (GESTimelineElement * self,
|
|
|
|
GList * layers,
|
|
|
|
gint64 new_layer_priority,
|
|
|
|
GESEditMode mode,
|
|
|
|
GESEdge edge,
|
|
|
|
guint64 position);
|
2013-01-15 13:52:17 +00:00
|
|
|
G_END_DECLS
|