2009-08-06 17:51:29 +00:00
|
|
|
/* GStreamer Editing Services
|
2009-11-30 14:14:25 +00:00
|
|
|
* Copyright (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk>
|
|
|
|
* 2009 Nokia Corporation
|
2009-08-06 17:51:29 +00:00
|
|
|
*
|
|
|
|
* 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
|
2012-11-04 00:25:20 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2009-08-06 17:51:29 +00:00
|
|
|
*/
|
|
|
|
|
2020-03-17 21:13:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2009-08-06 17:51:29 +00:00
|
|
|
#include <gst/gst.h>
|
2017-08-22 14:23:45 +00:00
|
|
|
#include <gst/pbutils/encoding-profile.h>
|
2012-09-01 02:36:37 +00:00
|
|
|
#include <gio/gio.h>
|
|
|
|
|
2020-03-17 18:51:39 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#ifndef GST_CAT_DEFAULT
|
|
|
|
#define GST_CAT_DEFAULT (_ges_debug ())
|
|
|
|
#endif
|
|
|
|
|
2012-04-24 00:52:45 +00:00
|
|
|
#include "ges-timeline.h"
|
2013-01-26 15:31:33 +00:00
|
|
|
#include "ges-track-element.h"
|
2013-01-15 13:52:17 +00:00
|
|
|
#include "ges-timeline-element.h"
|
2009-08-06 17:51:29 +00:00
|
|
|
|
2012-09-01 02:36:37 +00:00
|
|
|
#include "ges-asset.h"
|
2012-11-19 16:24:03 +00:00
|
|
|
#include "ges-base-xml-formatter.h"
|
2019-03-01 22:32:19 +00:00
|
|
|
#include "ges-timeline-tree.h"
|
2012-09-01 02:36:37 +00:00
|
|
|
|
2019-10-01 15:02:27 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
GstDebugCategory * _ges_debug (void);
|
|
|
|
|
2014-08-15 13:48:14 +00:00
|
|
|
/* The first 2 NLE priorities are used for:
|
2013-03-29 18:23:00 +00:00
|
|
|
* 0- The Mixing element
|
|
|
|
* 1- The Gaps
|
|
|
|
*/
|
2014-08-15 13:48:14 +00:00
|
|
|
#define MIN_NLE_PRIO 2
|
2013-01-04 16:11:51 +00:00
|
|
|
#define LAYER_HEIGHT 1000
|
|
|
|
|
2013-01-15 13:52:17 +00:00
|
|
|
#define _START(obj) GES_TIMELINE_ELEMENT_START (obj)
|
|
|
|
#define _INPOINT(obj) GES_TIMELINE_ELEMENT_INPOINT (obj)
|
|
|
|
#define _DURATION(obj) GES_TIMELINE_ELEMENT_DURATION (obj)
|
|
|
|
#define _MAXDURATION(obj) GES_TIMELINE_ELEMENT_MAX_DURATION (obj)
|
|
|
|
#define _PRIORITY(obj) GES_TIMELINE_ELEMENT_PRIORITY (obj)
|
2019-03-01 22:32:19 +00:00
|
|
|
#ifndef _END
|
2013-06-25 22:37:17 +00:00
|
|
|
#define _END(obj) (_START (obj) + _DURATION (obj))
|
2019-03-01 22:32:19 +00:00
|
|
|
#endif
|
2013-01-15 13:52:17 +00:00
|
|
|
#define _set_start0 ges_timeline_element_set_start
|
|
|
|
#define _set_inpoint0 ges_timeline_element_set_inpoint
|
|
|
|
#define _set_duration0 ges_timeline_element_set_duration
|
|
|
|
#define _set_priority0 ges_timeline_element_set_priority
|
|
|
|
|
2020-02-18 19:09:55 +00:00
|
|
|
#define DEFAULT_FRAMERATE_N 30
|
|
|
|
#define DEFAULT_FRAMERATE_D 1
|
|
|
|
#define DEFAULT_WIDTH 1280
|
|
|
|
#define DEFAULT_HEIGHT 720
|
|
|
|
|
2015-06-19 09:08:25 +00:00
|
|
|
#define GES_TIMELINE_ELEMENT_FORMAT \
|
2019-02-09 03:07:08 +00:00
|
|
|
"s<%p>" \
|
|
|
|
" [ %" GST_TIME_FORMAT \
|
|
|
|
" (%" GST_TIME_FORMAT \
|
2019-03-01 22:32:19 +00:00
|
|
|
") - %" GST_TIME_FORMAT "(%" GST_TIME_FORMAT") layer: %" G_GINT32_FORMAT "] "
|
2015-06-19 09:08:25 +00:00
|
|
|
|
|
|
|
#define GES_TIMELINE_ELEMENT_ARGS(element) \
|
|
|
|
GES_TIMELINE_ELEMENT_NAME(element), element, \
|
|
|
|
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_START(element)), \
|
|
|
|
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_INPOINT(element)), \
|
2019-03-01 22:32:19 +00:00
|
|
|
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_DURATION(element)), \
|
|
|
|
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_MAX_DURATION(element)), \
|
|
|
|
GES_TIMELINE_ELEMENT_LAYER_PRIORITY(element)
|
|
|
|
|
|
|
|
#define GES_FORMAT GES_TIMELINE_ELEMENT_FORMAT
|
|
|
|
#define GES_ARGS GES_TIMELINE_ELEMENT_ARGS
|
2015-06-19 09:08:25 +00:00
|
|
|
|
timeline: re-handle clip children track selection
The way a clip's track elements are added to tracks was re-handled. This
doesn't affect the normal usage of a simple audio-video timeline, where
the tracks are added before any clips, but usage for multi-track
timelines has improved. The main changes are:
+ We can now handle a track being selected for more than one track,
including a full copy of their children properties and bindings.
(Previously broken.)
+ When a clip is split, we copy the new elements directly into the same
track, avoiding select-tracks-for-object.
+ When a clip is grouped or ungrouped, we avoid moving the elements to
or from tracks.
+ Added API to allow users to copy the core elements of a clip directly
into a track, complementing select-tracks-for-object.
+ Enforced the rule that a clip can only contain one core child in a
track, and all the non-core children must be added to tracks that
already contains a core child. This extends the previous condition
that two sources from the same clip should not be added to the same
track.
+ Made ges_track_add_element check that the newly added track element
does not break the configuration rules of the timeline.
+ When adding a track to a timeline, we only use
select-tracks-for-object to check whether track elements should be
added to the new track, not existing ones.
+ When removing a track from a timeline, we empty it of all the track
elements that are controlled by a clip. Thus, we ensure that a clip
only contains elements that are in the tracks of the same timeline, or
no track. Similarly, when removing a clip from a timeline.
+ We can now avoid unsupported timeline configurations when a layer is
added to a timeline, and already contains clips.
+ We can now avoid unsupported timeline configurations when a track is
added to a timeline, and the timeline already contains clips.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/84
2020-04-06 11:09:54 +00:00
|
|
|
#define GES_TRACK_ELEMENT_IS_CORE(child) \
|
|
|
|
(ges_track_element_get_creators (GES_TRACK_ELEMENT (child)) != NULL)
|
|
|
|
|
2020-02-28 14:47:25 +00:00
|
|
|
#define SUPRESS_UNUSED_WARNING(a) (void)a
|
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2019-03-01 22:32:19 +00:00
|
|
|
timeline_ripple_object (GESTimeline *timeline, GESTimelineElement *obj,
|
|
|
|
gint new_layer_priority,
|
|
|
|
GList * layers, GESEdge edge,
|
|
|
|
guint64 position);
|
2012-04-24 00:52:45 +00:00
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2013-01-26 15:31:33 +00:00
|
|
|
timeline_slide_object (GESTimeline *timeline, GESTrackElement *obj,
|
2012-04-24 00:52:45 +00:00
|
|
|
GList * layers, GESEdge edge, guint64 position);
|
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2019-03-01 22:32:19 +00:00
|
|
|
timeline_roll_object (GESTimeline *timeline, GESTimelineElement *obj,
|
|
|
|
GList * layers, GESEdge edge, guint64 position);
|
2012-04-24 00:52:45 +00:00
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2019-03-01 22:32:19 +00:00
|
|
|
timeline_trim_object (GESTimeline *timeline, GESTimelineElement * object,
|
|
|
|
guint32 new_layer_priority, GList * layers, GESEdge edge,
|
|
|
|
guint64 position);
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2013-03-01 01:27:50 +00:00
|
|
|
ges_timeline_trim_object_simple (GESTimeline * timeline, GESTimelineElement * obj,
|
2019-03-01 22:32:19 +00:00
|
|
|
guint32 new_layer_priority, GList * layers, GESEdge edge,
|
|
|
|
guint64 position, gboolean snapping);
|
2012-04-24 00:52:45 +00:00
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2013-03-01 01:27:50 +00:00
|
|
|
ges_timeline_move_object_simple (GESTimeline * timeline, GESTimelineElement * object,
|
2012-04-24 00:52:45 +00:00
|
|
|
GList * layers, GESEdge edge, guint64 position);
|
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
2019-03-01 22:32:19 +00:00
|
|
|
timeline_move_object (GESTimeline *timeline, GESTimelineElement * object,
|
|
|
|
guint32 new_layer_priority, GList * layers, GESEdge edge,
|
|
|
|
guint64 position);
|
2012-04-24 00:52:45 +00:00
|
|
|
|
2013-06-26 21:08:57 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
timeline_add_group (GESTimeline *timeline,
|
|
|
|
GESGroup *group);
|
2016-09-06 12:27:38 +00:00
|
|
|
G_GNUC_INTERNAL void
|
2013-06-26 21:08:57 +00:00
|
|
|
timeline_remove_group (GESTimeline *timeline,
|
|
|
|
GESGroup *group);
|
2016-09-06 12:27:38 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
timeline_emit_group_added (GESTimeline *timeline,
|
|
|
|
GESGroup *group);
|
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
timeline_emit_group_removed (GESTimeline * timeline,
|
|
|
|
GESGroup * group, GPtrArray * array);
|
2013-06-26 21:08:57 +00:00
|
|
|
|
2014-02-18 14:14:40 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
gboolean
|
|
|
|
timeline_add_element (GESTimeline *timeline,
|
|
|
|
GESTimelineElement *element);
|
|
|
|
G_GNUC_INTERNAL
|
|
|
|
gboolean
|
|
|
|
timeline_remove_element (GESTimeline *timeline,
|
|
|
|
GESTimelineElement *element);
|
|
|
|
|
2019-03-01 22:32:19 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
GNode *
|
|
|
|
timeline_get_tree (GESTimeline *timeline);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
|
|
|
timeline_update_transition (GESTimeline *timeline);
|
|
|
|
|
2014-09-19 15:12:18 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
|
|
|
timeline_fill_gaps (GESTimeline *timeline);
|
|
|
|
|
2018-03-18 14:03:00 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
timeline_create_transitions (GESTimeline * timeline, GESTrackElement * track_element);
|
|
|
|
|
2020-02-21 12:17:11 +00:00
|
|
|
G_GNUC_INTERNAL void timeline_get_framerate(GESTimeline *self, gint *fps_n,
|
|
|
|
gint *fps_d);
|
timeline: re-handle clip children track selection
The way a clip's track elements are added to tracks was re-handled. This
doesn't affect the normal usage of a simple audio-video timeline, where
the tracks are added before any clips, but usage for multi-track
timelines has improved. The main changes are:
+ We can now handle a track being selected for more than one track,
including a full copy of their children properties and bindings.
(Previously broken.)
+ When a clip is split, we copy the new elements directly into the same
track, avoiding select-tracks-for-object.
+ When a clip is grouped or ungrouped, we avoid moving the elements to
or from tracks.
+ Added API to allow users to copy the core elements of a clip directly
into a track, complementing select-tracks-for-object.
+ Enforced the rule that a clip can only contain one core child in a
track, and all the non-core children must be added to tracks that
already contains a core child. This extends the previous condition
that two sources from the same clip should not be added to the same
track.
+ Made ges_track_add_element check that the newly added track element
does not break the configuration rules of the timeline.
+ When adding a track to a timeline, we only use
select-tracks-for-object to check whether track elements should be
added to the new track, not existing ones.
+ When removing a track from a timeline, we empty it of all the track
elements that are controlled by a clip. Thus, we ensure that a clip
only contains elements that are in the tracks of the same timeline, or
no track. Similarly, when removing a clip from a timeline.
+ We can now avoid unsupported timeline configurations when a layer is
added to a timeline, and already contains clips.
+ We can now avoid unsupported timeline configurations when a track is
added to a timeline, and the timeline already contains clips.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/84
2020-04-06 11:09:54 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_timeline_set_moving_track_elements (GESTimeline * timeline, gboolean moving);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_timeline_add_clip (GESTimeline * timeline, GESClip * clip);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_timeline_remove_clip (GESTimeline * timeline, GESClip * clip);
|
2020-02-21 12:17:11 +00:00
|
|
|
|
2014-09-19 15:12:18 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
|
|
|
track_resort_and_fill_gaps (GESTrack *track);
|
|
|
|
|
2015-07-01 15:28:52 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
|
|
|
track_disable_last_gap (GESTrack *track, gboolean disabled);
|
|
|
|
|
2012-09-01 02:36:37 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_asset_cache_init (void);
|
2019-01-12 11:23:50 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_asset_cache_deinit (void);
|
2012-09-01 02:36:37 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_asset_set_id (GESAsset *asset, const gchar *id);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL void
|
2015-07-06 08:24:33 +00:00
|
|
|
ges_asset_cache_put (GESAsset * asset, GTask *task);
|
2012-09-01 02:36:37 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_asset_cache_set_loaded(GType extractable_type, const gchar * id, GError *error);
|
|
|
|
|
2020-03-04 11:31:32 +00:00
|
|
|
/* FIXME: marked as GES_API just so they can be used in tests! */
|
|
|
|
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API GESAsset*
|
2012-09-01 02:36:37 +00:00
|
|
|
ges_asset_cache_lookup(GType extractable_type, const gchar * id);
|
|
|
|
|
2018-03-13 14:14:57 +00:00
|
|
|
GES_API gboolean
|
2015-11-20 22:33:12 +00:00
|
|
|
ges_asset_try_proxy (GESAsset *asset, const gchar *new_id);
|
2012-09-01 02:36:37 +00:00
|
|
|
|
2020-03-04 11:31:32 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_asset_finish_proxy (GESAsset * proxy);
|
|
|
|
|
2012-09-01 02:36:37 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_asset_request_id_update (GESAsset *asset, gchar **proposed_id,
|
|
|
|
GError *error);
|
2016-01-25 14:57:22 +00:00
|
|
|
G_GNUC_INTERNAL gchar *
|
|
|
|
ges_effect_assect_id_get_type_and_bindesc (const char *id,
|
|
|
|
GESTrackType *track_type,
|
|
|
|
GError **error);
|
2012-09-10 00:12:06 +00:00
|
|
|
|
2017-02-24 18:44:36 +00:00
|
|
|
G_GNUC_INTERNAL void _ges_uri_asset_cleanup (void);
|
|
|
|
|
2019-01-28 08:12:54 +00:00
|
|
|
G_GNUC_INTERNAL gboolean _ges_uri_asset_ensure_setup (gpointer uriasset_class);
|
|
|
|
|
2012-09-10 00:12:06 +00:00
|
|
|
/* GESExtractable internall methods
|
|
|
|
*
|
|
|
|
* FIXME Check if that should be public later
|
|
|
|
*/
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL GType
|
2012-09-10 00:12:06 +00:00
|
|
|
ges_extractable_type_get_asset_type (GType type);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL gchar *
|
|
|
|
ges_extractable_type_check_id (GType type, const gchar *id, GError **error);
|
|
|
|
|
2020-02-07 12:39:39 +00:00
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL GParameter *
|
2012-09-10 00:12:06 +00:00
|
|
|
ges_extractable_type_get_parameters_from_id (GType type, const gchar *id,
|
|
|
|
guint *n_params);
|
2020-02-07 12:39:39 +00:00
|
|
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL GType
|
2012-09-10 00:12:06 +00:00
|
|
|
ges_extractable_get_real_extractable_type_for_id (GType type, const gchar * id);
|
|
|
|
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_extractable_register_metas (GType extractable_type, GESAsset *asset);
|
2012-09-02 12:14:27 +00:00
|
|
|
|
2012-11-19 16:24:03 +00:00
|
|
|
/************************************************
|
|
|
|
* *
|
|
|
|
* GESFormatter internal methods *
|
|
|
|
* *
|
|
|
|
************************************************/
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL void
|
2012-12-17 22:26:23 +00:00
|
|
|
ges_formatter_set_project (GESFormatter *formatter,
|
|
|
|
GESProject *project);
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL GESProject *
|
2012-12-17 22:26:23 +00:00
|
|
|
ges_formatter_get_project (GESFormatter *formatter);
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL GESAsset *
|
2015-02-23 13:48:18 +00:00
|
|
|
_find_formatter_asset_for_id (const gchar *id);
|
2012-12-17 22:26:23 +00:00
|
|
|
|
2012-11-19 16:24:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************
|
|
|
|
* *
|
|
|
|
* GESProject internal methods *
|
|
|
|
* *
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
/* FIXME This should probably become public, but we need to make sure it
|
2012-11-27 16:52:59 +00:00
|
|
|
* is the right API before doing so */
|
|
|
|
G_GNUC_INTERNAL gboolean ges_project_set_loaded (GESProject * project,
|
2019-07-11 19:54:27 +00:00
|
|
|
GESFormatter *formatter,
|
|
|
|
GError *error);
|
2012-11-27 16:52:59 +00:00
|
|
|
G_GNUC_INTERNAL gchar * ges_project_try_updating_id (GESProject *self,
|
|
|
|
GESAsset *asset,
|
|
|
|
GError *error);
|
2013-01-11 14:49:02 +00:00
|
|
|
G_GNUC_INTERNAL void ges_project_add_loading_asset (GESProject *project,
|
|
|
|
GType extractable_type,
|
|
|
|
const gchar *id);
|
2019-01-18 18:45:39 +00:00
|
|
|
G_GNUC_INTERNAL gchar* ges_uri_asset_try_update_id (GError *error, GESAsset *wrong_asset);
|
2012-11-19 16:24:03 +00:00
|
|
|
/************************************************
|
|
|
|
* *
|
|
|
|
* GESBaseXmlFormatter internal methods *
|
|
|
|
* *
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
/* FIXME GESBaseXmlFormatter is all internal for now, the API is not stable
|
|
|
|
* fo now, so do not expose it */
|
2013-01-20 15:42:29 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_clip (GESBaseXmlFormatter * self,
|
2012-11-19 16:24:03 +00:00
|
|
|
const gchar *id,
|
|
|
|
const char *asset_id,
|
|
|
|
GType type,
|
|
|
|
GstClockTime start,
|
|
|
|
GstClockTime inpoint,
|
|
|
|
GstClockTime duration,
|
|
|
|
guint layer_prio,
|
|
|
|
GESTrackType track_types,
|
|
|
|
GstStructure *properties,
|
2018-07-28 16:16:36 +00:00
|
|
|
GstStructure * children_properties,
|
2012-11-19 16:24:03 +00:00
|
|
|
const gchar *metadatas,
|
|
|
|
GError **error);
|
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_asset (GESBaseXmlFormatter * self,
|
|
|
|
const gchar * id,
|
|
|
|
GType extractable_type,
|
|
|
|
GstStructure *properties,
|
|
|
|
const gchar *metadatas,
|
2015-11-20 22:33:12 +00:00
|
|
|
const gchar *proxy_id,
|
2012-11-19 16:24:03 +00:00
|
|
|
GError **error);
|
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_layer (GESBaseXmlFormatter *self,
|
|
|
|
GType extractable_type,
|
|
|
|
guint priority,
|
|
|
|
GstStructure *properties,
|
|
|
|
const gchar *metadatas,
|
2020-03-06 21:56:52 +00:00
|
|
|
gchar **deactivated_tracks,
|
2012-11-19 16:24:03 +00:00
|
|
|
GError **error);
|
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_track (GESBaseXmlFormatter *self,
|
|
|
|
GESTrackType track_type,
|
|
|
|
GstCaps *caps,
|
|
|
|
const gchar *id,
|
|
|
|
GstStructure *properties,
|
|
|
|
const gchar *metadatas,
|
|
|
|
GError **error);
|
2014-10-27 15:51:42 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_encoding_profile(GESBaseXmlFormatter * self,
|
2012-11-19 16:24:03 +00:00
|
|
|
const gchar *type,
|
|
|
|
const gchar *parent,
|
|
|
|
const gchar * name,
|
|
|
|
const gchar * description,
|
|
|
|
GstCaps * format,
|
|
|
|
const gchar * preset,
|
2017-08-22 14:23:45 +00:00
|
|
|
GstStructure * preset_properties,
|
2012-11-19 16:24:03 +00:00
|
|
|
const gchar * preset_name,
|
|
|
|
guint id,
|
|
|
|
guint presence,
|
|
|
|
GstCaps * restriction,
|
|
|
|
guint pass,
|
|
|
|
gboolean variableframerate,
|
|
|
|
GstStructure * properties,
|
2015-05-07 08:52:18 +00:00
|
|
|
gboolean enabled,
|
2012-11-19 16:24:03 +00:00
|
|
|
GError ** error);
|
2013-07-08 22:31:30 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_track_element (GESBaseXmlFormatter *self,
|
2012-11-19 16:24:03 +00:00
|
|
|
GType effect_type,
|
|
|
|
const gchar *asset_id,
|
|
|
|
const gchar * track_id,
|
|
|
|
const gchar *timeline_obj_id,
|
|
|
|
GstStructure *children_properties,
|
|
|
|
GstStructure *properties,
|
|
|
|
const gchar *metadatas,
|
|
|
|
GError **error);
|
2013-03-30 17:54:50 +00:00
|
|
|
|
2013-09-13 23:35:55 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_source (GESBaseXmlFormatter *self,
|
|
|
|
const gchar * track_id,
|
2020-03-13 18:03:17 +00:00
|
|
|
GstStructure *children_properties,
|
|
|
|
GstStructure *properties);
|
2013-09-13 23:35:55 +00:00
|
|
|
|
2014-10-27 15:51:42 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_group (GESBaseXmlFormatter *self,
|
|
|
|
const gchar *name,
|
2019-01-15 12:38:14 +00:00
|
|
|
const gchar *properties,
|
|
|
|
const gchar *metadatas);
|
2014-10-27 15:51:42 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_last_group_add_child(GESBaseXmlFormatter *self,
|
|
|
|
const gchar * id,
|
|
|
|
const gchar * name);
|
|
|
|
|
2013-07-09 14:57:51 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_add_control_binding (GESBaseXmlFormatter * self,
|
2013-07-08 22:31:30 +00:00
|
|
|
const gchar * binding_type,
|
|
|
|
const gchar * source_type,
|
|
|
|
const gchar * property_name,
|
|
|
|
gint mode,
|
|
|
|
const gchar *track_id,
|
|
|
|
GSList * timed_values);
|
2013-03-30 17:54:50 +00:00
|
|
|
|
2019-07-08 00:55:53 +00:00
|
|
|
G_GNUC_INTERNAL void ges_base_xml_formatter_set_timeline_properties(GESBaseXmlFormatter * self,
|
|
|
|
GESTimeline *timeline,
|
|
|
|
const gchar *properties,
|
|
|
|
const gchar *metadatas);
|
|
|
|
G_GNUC_INTERNAL void ges_xml_formatter_deinit (void);
|
|
|
|
|
2015-02-26 20:14:31 +00:00
|
|
|
G_GNUC_INTERNAL gboolean set_property_foreach (GQuark field_id,
|
2012-11-19 16:24:03 +00:00
|
|
|
const GValue * value,
|
2017-08-22 14:23:45 +00:00
|
|
|
GObject * object);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL GstElement * get_element_for_encoding_profile (GstEncodingProfile *prof,
|
|
|
|
GstElementFactoryListType type);
|
2012-11-19 16:24:03 +00:00
|
|
|
|
|
|
|
/* Function to initialise GES */
|
|
|
|
G_GNUC_INTERNAL void _init_standard_transition_assets (void);
|
|
|
|
G_GNUC_INTERNAL void _init_formatter_assets (void);
|
2019-07-04 19:58:44 +00:00
|
|
|
G_GNUC_INTERNAL void _deinit_formatter_assets (void);
|
2012-11-19 16:24:03 +00:00
|
|
|
|
2013-01-10 14:15:32 +00:00
|
|
|
/* Utilities */
|
2013-01-15 13:52:17 +00:00
|
|
|
G_GNUC_INTERNAL gint element_start_compare (GESTimelineElement * a,
|
2013-03-23 04:33:39 +00:00
|
|
|
GESTimelineElement * b);
|
|
|
|
G_GNUC_INTERNAL gint element_end_compare (GESTimelineElement * a,
|
|
|
|
GESTimelineElement * b);
|
2014-06-16 09:38:29 +00:00
|
|
|
G_GNUC_INTERNAL GstElementFactory *
|
|
|
|
ges_get_compositor_factory (void);
|
2013-03-23 04:33:39 +00:00
|
|
|
|
2019-07-09 05:03:56 +00:00
|
|
|
G_GNUC_INTERNAL void
|
|
|
|
ges_idle_add (GSourceFunc func, gpointer udata, GDestroyNotify notify);
|
|
|
|
|
2020-02-21 12:17:11 +00:00
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_util_structure_get_clocktime (GstStructure *structure, const gchar *name,
|
|
|
|
GstClockTime *val, GESFrameNumber *frames);
|
|
|
|
|
2013-08-07 17:37:49 +00:00
|
|
|
|
2013-03-01 01:27:50 +00:00
|
|
|
/****************************************************
|
|
|
|
* GESContainer *
|
|
|
|
****************************************************/
|
2013-03-23 04:33:39 +00:00
|
|
|
G_GNUC_INTERNAL void _ges_container_sort_children (GESContainer *container);
|
|
|
|
G_GNUC_INTERNAL void _ges_container_sort_children_by_end (GESContainer *container);
|
2017-02-24 18:44:36 +00:00
|
|
|
G_GNUC_INTERNAL void _ges_container_set_height (GESContainer * container,
|
|
|
|
guint32 height);
|
|
|
|
G_GNUC_INTERNAL gint _ges_container_get_priority_offset (GESContainer * container,
|
|
|
|
GESTimelineElement *elem);
|
|
|
|
G_GNUC_INTERNAL void _ges_container_set_priority_offset (GESContainer * container,
|
|
|
|
GESTimelineElement *elem,
|
|
|
|
gint32 priority_offset);
|
|
|
|
|
2013-03-01 01:27:50 +00:00
|
|
|
|
2013-03-15 14:58:59 +00:00
|
|
|
/****************************************************
|
|
|
|
* GESClip *
|
|
|
|
****************************************************/
|
2015-06-25 08:28:41 +00:00
|
|
|
G_GNUC_INTERNAL void ges_clip_set_layer (GESClip *clip, GESLayer *layer);
|
|
|
|
G_GNUC_INTERNAL gboolean ges_clip_is_moving_from_layer (GESClip *clip);
|
|
|
|
G_GNUC_INTERNAL void ges_clip_set_moving_from_layer (GESClip *clip, gboolean is_moving);
|
|
|
|
G_GNUC_INTERNAL GESTrackElement* ges_clip_create_track_element (GESClip *clip, GESTrackType type);
|
|
|
|
G_GNUC_INTERNAL GList* ges_clip_create_track_elements (GESClip *clip, GESTrackType type);
|
2020-03-10 15:27:20 +00:00
|
|
|
G_GNUC_INTERNAL gboolean ges_clip_can_set_inpoint_of_child (GESClip * clip, GESTimelineElement * child, GstClockTime inpoint);
|
timeline: re-handle clip children track selection
The way a clip's track elements are added to tracks was re-handled. This
doesn't affect the normal usage of a simple audio-video timeline, where
the tracks are added before any clips, but usage for multi-track
timelines has improved. The main changes are:
+ We can now handle a track being selected for more than one track,
including a full copy of their children properties and bindings.
(Previously broken.)
+ When a clip is split, we copy the new elements directly into the same
track, avoiding select-tracks-for-object.
+ When a clip is grouped or ungrouped, we avoid moving the elements to
or from tracks.
+ Added API to allow users to copy the core elements of a clip directly
into a track, complementing select-tracks-for-object.
+ Enforced the rule that a clip can only contain one core child in a
track, and all the non-core children must be added to tracks that
already contains a core child. This extends the previous condition
that two sources from the same clip should not be added to the same
track.
+ Made ges_track_add_element check that the newly added track element
does not break the configuration rules of the timeline.
+ When adding a track to a timeline, we only use
select-tracks-for-object to check whether track elements should be
added to the new track, not existing ones.
+ When removing a track from a timeline, we empty it of all the track
elements that are controlled by a clip. Thus, we ensure that a clip
only contains elements that are in the tracks of the same timeline, or
no track. Similarly, when removing a clip from a timeline.
+ We can now avoid unsupported timeline configurations when a layer is
added to a timeline, and already contains clips.
+ We can now avoid unsupported timeline configurations when a track is
added to a timeline, and the timeline already contains clips.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/84
2020-04-06 11:09:54 +00:00
|
|
|
G_GNUC_INTERNAL gboolean ges_clip_can_set_track_of_child (GESClip * clip, GESTrackElement * child, GESTrack * tack);
|
|
|
|
G_GNUC_INTERNAL void ges_clip_empty_from_track (GESClip * clip, GESTrack * track);
|
2013-01-10 14:15:32 +00:00
|
|
|
|
2016-08-11 13:42:32 +00:00
|
|
|
/****************************************************
|
|
|
|
* GESLayer *
|
|
|
|
****************************************************/
|
|
|
|
G_GNUC_INTERNAL gboolean ges_layer_resync_priorities (GESLayer * layer);
|
2018-03-31 16:39:54 +00:00
|
|
|
G_GNUC_INTERNAL void layer_set_priority (GESLayer * layer, guint priority, gboolean emit);
|
2013-03-22 01:12:47 +00:00
|
|
|
|
|
|
|
/****************************************************
|
|
|
|
* GESTrackElement *
|
|
|
|
****************************************************/
|
2014-08-15 13:48:14 +00:00
|
|
|
#define NLE_OBJECT_TRACK_ELEMENT_QUARK (g_quark_from_string ("nle_object_track_element_quark"))
|
2013-03-29 18:23:00 +00:00
|
|
|
G_GNUC_INTERNAL gboolean ges_track_element_set_track (GESTrackElement * object, GESTrack * track);
|
2013-07-24 18:26:18 +00:00
|
|
|
G_GNUC_INTERNAL void ges_track_element_copy_properties (GESTimelineElement * element,
|
|
|
|
GESTimelineElement * elementcopy);
|
2020-03-06 21:56:52 +00:00
|
|
|
G_GNUC_INTERNAL void ges_track_element_set_layer_active (GESTrackElement *element, gboolean active);
|
2013-03-22 01:12:47 +00:00
|
|
|
|
2015-06-29 16:04:32 +00:00
|
|
|
G_GNUC_INTERNAL void ges_track_element_copy_bindings (GESTrackElement *element,
|
2020-03-02 12:56:03 +00:00
|
|
|
GESTrackElement *new_element,
|
|
|
|
guint64 position);
|
2020-03-18 15:56:06 +00:00
|
|
|
|
2020-03-25 18:49:16 +00:00
|
|
|
G_GNUC_INTERNAL void ges_track_element_add_creator (GESTrackElement * self,
|
|
|
|
GESClip * creator);
|
|
|
|
G_GNUC_INTERNAL void ges_track_element_clear_creators (GESTrackElement * self);
|
|
|
|
/* NOTE: Returned element is only valid for **pointer comparison** */
|
|
|
|
G_GNUC_INTERNAL GList * ges_track_element_get_creators (GESTrackElement * self);
|
2013-07-02 09:12:00 +00:00
|
|
|
|
2020-02-10 21:05:38 +00:00
|
|
|
G_GNUC_INTERNAL GstElement* ges_source_create_topbin(const gchar* bin_name, GstElement* sub_element, GPtrArray* elements);
|
|
|
|
G_GNUC_INTERNAL void ges_track_set_caps(GESTrack* track,
|
|
|
|
const GstCaps* caps);
|
2014-11-04 14:38:05 +00:00
|
|
|
G_GNUC_INTERNAL GstElement * ges_track_get_composition (GESTrack *track);
|
2013-08-17 12:57:15 +00:00
|
|
|
|
2013-12-24 14:34:51 +00:00
|
|
|
|
|
|
|
/*********************************************
|
|
|
|
* GESTrackElement subclasses contructores *
|
|
|
|
********************************************/
|
|
|
|
G_GNUC_INTERNAL GESAudioTestSource * ges_audio_test_source_new (void);
|
|
|
|
G_GNUC_INTERNAL GESAudioUriSource * ges_audio_uri_source_new (gchar *uri);
|
|
|
|
G_GNUC_INTERNAL GESVideoUriSource * ges_video_uri_source_new (gchar *uri);
|
|
|
|
G_GNUC_INTERNAL GESImageSource * ges_image_source_new (gchar *uri);
|
|
|
|
G_GNUC_INTERNAL GESTitleSource * ges_title_source_new (void);
|
|
|
|
G_GNUC_INTERNAL GESVideoTestSource * ges_video_test_source_new (void);
|
|
|
|
|
Handle changing playback rate
Before this patch, NLE and GES did not support NleOperations (respectively
GESEffects) that changed the speed/tempo/rate at which the source plays. For
example, the 'pitch' element can make audio play faster or slower. In GES 1.5.90
and before, an NleOperation containing the pitch element to change the rate (or
tempo) would cause a pipeline state change to PAUSED after that stack; that has
been fixed in 1.5.91 (see #755012 [0]). But even then, in 1.5.91 and later,
NleComposition would send segment events to its NleSources assuming that one
source second is equal to one pipeline second. The resulting early EOS event
(in the case of a source rate higher than 1.0) would cause it to switch stacks
too early, causing confusion in the timeline and spectacularly messed up
output.
This patch fixes that by searching for rate-changing elements in
GESTrackElements such as GESEffects. If such rate-changing elements are found,
their final effect on the playing rate is stored in the corresponding NleObject
as the 'media duration factor', named like this because the 'media duration',
or source duration, of an NleObject can be computed by multiplying the duration
with the media duration factor of that object and its parents (this is called
the 'recursive media duration factor'). For example, a 4-second NleSource with
an NleOperation with a media duration factor of 2.0 will have an 8-second media
duration, which means that for playing 4 seconds in the pipeline, the seek
event sent to it must span 8 seconds of media. (So, the 'duration' of an
NleObject or GES object always refers to its duration in the timeline, not the
media duration.)
To summarize:
* Rate-changing elements are registered in the GESEffectClass (pitch::tempo and
pitch::rate are registered by default);
* GESTimelineElement is responsible for detecting rate-changing elements and
computing the media_duration_factor;
* GESTrackElement is responsible for storing the media_duration_factor in
NleObject;
* NleComposition is responsible for the recursive_media_duration_factor;
* The latter property finally fixes media time computations in NleObject.
NLE and GES tests are included.
[0] https://bugzilla.gnome.org/show_bug.cgi?id=755012
Differential Revision: https://phabricator.freedesktop.org/D276
2015-12-20 13:03:57 +00:00
|
|
|
/****************************************************
|
|
|
|
* GESTimelineElement *
|
|
|
|
****************************************************/
|
2019-02-09 21:59:08 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
2019-03-01 22:32:19 +00:00
|
|
|
GES_CLIP_IS_MOVING = (1 << 0),
|
|
|
|
GES_TIMELINE_ELEMENT_SET_SIMPLE = (1 << 1),
|
2019-02-09 21:59:08 +00:00
|
|
|
} GESTimelineElementFlags;
|
|
|
|
|
Handle changing playback rate
Before this patch, NLE and GES did not support NleOperations (respectively
GESEffects) that changed the speed/tempo/rate at which the source plays. For
example, the 'pitch' element can make audio play faster or slower. In GES 1.5.90
and before, an NleOperation containing the pitch element to change the rate (or
tempo) would cause a pipeline state change to PAUSED after that stack; that has
been fixed in 1.5.91 (see #755012 [0]). But even then, in 1.5.91 and later,
NleComposition would send segment events to its NleSources assuming that one
source second is equal to one pipeline second. The resulting early EOS event
(in the case of a source rate higher than 1.0) would cause it to switch stacks
too early, causing confusion in the timeline and spectacularly messed up
output.
This patch fixes that by searching for rate-changing elements in
GESTrackElements such as GESEffects. If such rate-changing elements are found,
their final effect on the playing rate is stored in the corresponding NleObject
as the 'media duration factor', named like this because the 'media duration',
or source duration, of an NleObject can be computed by multiplying the duration
with the media duration factor of that object and its parents (this is called
the 'recursive media duration factor'). For example, a 4-second NleSource with
an NleOperation with a media duration factor of 2.0 will have an 8-second media
duration, which means that for playing 4 seconds in the pipeline, the seek
event sent to it must span 8 seconds of media. (So, the 'duration' of an
NleObject or GES object always refers to its duration in the timeline, not the
media duration.)
To summarize:
* Rate-changing elements are registered in the GESEffectClass (pitch::tempo and
pitch::rate are registered by default);
* GESTimelineElement is responsible for detecting rate-changing elements and
computing the media_duration_factor;
* GESTrackElement is responsible for storing the media_duration_factor in
NleObject;
* NleComposition is responsible for the recursive_media_duration_factor;
* The latter property finally fixes media time computations in NleObject.
NLE and GES tests are included.
[0] https://bugzilla.gnome.org/show_bug.cgi?id=755012
Differential Revision: https://phabricator.freedesktop.org/D276
2015-12-20 13:03:57 +00:00
|
|
|
G_GNUC_INTERNAL gdouble ges_timeline_element_get_media_duration_factor(GESTimelineElement *self);
|
2018-02-25 22:31:33 +00:00
|
|
|
G_GNUC_INTERNAL GESTimelineElement * ges_timeline_element_get_copied_from (GESTimelineElement *self);
|
2019-02-09 21:59:08 +00:00
|
|
|
G_GNUC_INTERNAL GESTimelineElementFlags ges_timeline_element_flags (GESTimelineElement *self);
|
|
|
|
G_GNUC_INTERNAL void ges_timeline_element_set_flags (GESTimelineElement *self, GESTimelineElementFlags flags);
|
2020-03-03 14:31:10 +00:00
|
|
|
G_GNUC_INTERNAL gboolean ges_timeline_element_add_child_property_full (GESTimelineElement *self,
|
|
|
|
GESTimelineElement *owner,
|
|
|
|
GParamSpec *pspec,
|
|
|
|
GObject *child);
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL GObject * ges_timeline_element_get_child_from_child_property (GESTimelineElement * self,
|
|
|
|
GParamSpec * pspec);
|
|
|
|
G_GNUC_INTERNAL GParamSpec ** ges_timeline_element_get_children_properties (GESTimelineElement * self,
|
|
|
|
guint * n_properties);
|
2019-02-09 21:59:08 +00:00
|
|
|
|
|
|
|
#define ELEMENT_FLAGS(obj) (ges_timeline_element_flags (GES_TIMELINE_ELEMENT(obj)))
|
|
|
|
#define ELEMENT_SET_FLAG(obj,flag) (ges_timeline_element_set_flags(GES_TIMELINE_ELEMENT(obj), (ELEMENT_FLAGS(obj) | (flag))))
|
|
|
|
#define ELEMENT_UNSET_FLAG(obj,flag) (ges_timeline_element_set_flags(GES_TIMELINE_ELEMENT(obj), (ELEMENT_FLAGS(obj) & ~(flag))))
|
|
|
|
#define ELEMENT_FLAG_IS_SET(obj,flag) ((ELEMENT_FLAGS (obj) & (flag)) == (flag))
|
Handle changing playback rate
Before this patch, NLE and GES did not support NleOperations (respectively
GESEffects) that changed the speed/tempo/rate at which the source plays. For
example, the 'pitch' element can make audio play faster or slower. In GES 1.5.90
and before, an NleOperation containing the pitch element to change the rate (or
tempo) would cause a pipeline state change to PAUSED after that stack; that has
been fixed in 1.5.91 (see #755012 [0]). But even then, in 1.5.91 and later,
NleComposition would send segment events to its NleSources assuming that one
source second is equal to one pipeline second. The resulting early EOS event
(in the case of a source rate higher than 1.0) would cause it to switch stacks
too early, causing confusion in the timeline and spectacularly messed up
output.
This patch fixes that by searching for rate-changing elements in
GESTrackElements such as GESEffects. If such rate-changing elements are found,
their final effect on the playing rate is stored in the corresponding NleObject
as the 'media duration factor', named like this because the 'media duration',
or source duration, of an NleObject can be computed by multiplying the duration
with the media duration factor of that object and its parents (this is called
the 'recursive media duration factor'). For example, a 4-second NleSource with
an NleOperation with a media duration factor of 2.0 will have an 8-second media
duration, which means that for playing 4 seconds in the pipeline, the seek
event sent to it must span 8 seconds of media. (So, the 'duration' of an
NleObject or GES object always refers to its duration in the timeline, not the
media duration.)
To summarize:
* Rate-changing elements are registered in the GESEffectClass (pitch::tempo and
pitch::rate are registered by default);
* GESTimelineElement is responsible for detecting rate-changing elements and
computing the media_duration_factor;
* GESTrackElement is responsible for storing the media_duration_factor in
NleObject;
* NleComposition is responsible for the recursive_media_duration_factor;
* The latter property finally fixes media time computations in NleObject.
NLE and GES tests are included.
[0] https://bugzilla.gnome.org/show_bug.cgi?id=755012
Differential Revision: https://phabricator.freedesktop.org/D276
2015-12-20 13:03:57 +00:00
|
|
|
|
2013-11-12 11:13:31 +00:00
|
|
|
/******************************
|
|
|
|
* GESMultiFile internal API *
|
|
|
|
******************************/
|
|
|
|
typedef struct GESMultiFileURI
|
|
|
|
{
|
|
|
|
gchar *location;
|
|
|
|
gint start;
|
|
|
|
gint end;
|
|
|
|
} GESMultiFileURI;
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL GESMultiFileURI * ges_multi_file_uri_new (const gchar * uri);
|
|
|
|
|
2020-02-19 21:06:26 +00:00
|
|
|
/******************************
|
|
|
|
* GESUriSource internal API *
|
|
|
|
******************************/
|
|
|
|
G_GNUC_INTERNAL gboolean
|
|
|
|
ges_video_uri_source_get_natural_size(GESVideoSource* source, gint* width, gint* height);
|
|
|
|
|
2020-02-28 14:47:25 +00:00
|
|
|
/**********************************
|
|
|
|
* GESTestClipAsset internal API *
|
|
|
|
**********************************/
|
|
|
|
G_GNUC_INTERNAL gboolean ges_test_clip_asset_get_natural_size(GESAsset *self,
|
|
|
|
gint *width,
|
|
|
|
gint *height);
|
|
|
|
|
2014-09-27 07:59:12 +00:00
|
|
|
/************************
|
|
|
|
* Our property masks *
|
|
|
|
************************/
|
|
|
|
#define GES_PARAM_NO_SERIALIZATION (1 << (G_PARAM_USER_SHIFT + 1))
|
|
|
|
|
2019-08-22 16:50:00 +00:00
|
|
|
/*******************************
|
|
|
|
* GESMarkerList serialization *
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
|
|
|
|
G_GNUC_INTERNAL gchar * ges_marker_list_serialize (const GValue * v);
|
|
|
|
G_GNUC_INTERNAL gboolean ges_marker_list_deserialize (GValue *dest, const gchar *s);
|
|
|
|
|
2014-08-15 13:48:14 +00:00
|
|
|
/********************
|
|
|
|
* Gnonlin helpers *
|
|
|
|
********************/
|
|
|
|
|
2015-09-18 08:01:44 +00:00
|
|
|
G_GNUC_INTERNAL gboolean ges_nle_composition_add_object (GstElement *comp, GstElement *object);
|
|
|
|
G_GNUC_INTERNAL gboolean ges_nle_composition_remove_object (GstElement *comp, GstElement *object);
|
|
|
|
G_GNUC_INTERNAL gboolean ges_nle_object_commit (GstElement * nlesource, gboolean recurse);
|
2014-08-15 13:48:14 +00:00
|
|
|
|
2016-04-25 12:11:00 +00:00
|
|
|
G_END_DECLS
|