2015-03-24 13:13:54 +00:00
|
|
|
/* GStreamer Editing Services
|
|
|
|
* Copyright (C) 2015 Mathieu Duponchelle <mathieu.duponchelle@opencreed.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., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2020-07-08 12:01:58 +00:00
|
|
|
#include <ges/ges.h>
|
2019-10-17 14:21:28 +00:00
|
|
|
#include <gst/pbutils/pbutils.h>
|
2015-03-24 13:13:54 +00:00
|
|
|
#include <gst/pbutils/encoding-profile.h>
|
|
|
|
|
2021-01-15 18:03:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gboolean mute;
|
|
|
|
gboolean disable_mixing;
|
|
|
|
gchar *save_path;
|
|
|
|
gchar *save_only_path;
|
|
|
|
gchar *load_path;
|
|
|
|
GESTrackType track_types;
|
|
|
|
gboolean needs_set_state;
|
|
|
|
gboolean smartrender;
|
|
|
|
gchar *scenario;
|
|
|
|
gchar *testfile;
|
|
|
|
gchar *format;
|
|
|
|
gchar *outputuri;
|
|
|
|
gchar *encoding_profile;
|
2021-08-10 21:25:06 +00:00
|
|
|
gchar *profile_from;
|
2021-01-15 18:03:20 +00:00
|
|
|
gchar *videosink;
|
|
|
|
gchar *audiosink;
|
|
|
|
gboolean list_transitions;
|
|
|
|
gboolean inspect_action_type;
|
|
|
|
gchar *sanitized_timeline;
|
|
|
|
gchar *video_track_caps;
|
|
|
|
gchar *audio_track_caps;
|
|
|
|
gboolean embed_nesteds;
|
2021-08-10 21:10:43 +00:00
|
|
|
gboolean enable_validate;
|
2021-01-15 18:03:20 +00:00
|
|
|
|
|
|
|
gboolean ignore_eos;
|
|
|
|
gboolean interactive;
|
2021-08-10 21:54:47 +00:00
|
|
|
gboolean forward_tags;
|
2021-01-15 18:03:20 +00:00
|
|
|
} GESLauncherParsedOptions;
|
|
|
|
|
|
|
|
gchar * sanitize_timeline_description (gchar **args, GESLauncherParsedOptions *opts);
|
2019-05-01 21:28:26 +00:00
|
|
|
gboolean get_flags_from_string (GType type, const gchar * str_flags, guint *val);
|
2015-03-24 13:13:54 +00:00
|
|
|
gchar * ensure_uri (const gchar * location);
|
|
|
|
GstEncodingProfile * parse_encoding_profile (const gchar * format);
|
|
|
|
void print_enum (GType enum_type);
|
2019-10-17 14:21:28 +00:00
|
|
|
|
2020-10-18 14:08:36 +00:00
|
|
|
void ges_print (GstDebugColorFlags c, gboolean err, gboolean nline, const gchar * format, va_list var_args);
|
|
|
|
void ges_ok (const gchar * format, ...);
|
|
|
|
void ges_warn (const gchar * format, ...);
|
|
|
|
void ges_printerr (const gchar * format, ...);
|
2019-10-17 14:21:28 +00:00
|
|
|
|
|
|
|
gchar * get_file_extension (gchar * uri);
|
2020-07-08 12:01:58 +00:00
|
|
|
void describe_encoding_profile (GstEncodingProfile *profile);
|
2020-10-18 14:08:36 +00:00
|
|
|
void print_timeline(GESTimeline *timeline);
|