63e21011b7db30cccd47c3c02029528178f751d0
[platform/upstream/gst-editing-services.git] / tools / utils.h
1 /* GStreamer Editing Services
2  * Copyright (C) 2015 Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #include <ges/ges.h>
21 #include <gst/pbutils/pbutils.h>
22 #include <gst/pbutils/encoding-profile.h>
23
24 gchar * sanitize_timeline_description (gchar **args);
25 gboolean get_flags_from_string (GType type, const gchar * str_flags, guint *val);
26 gchar * ensure_uri (const gchar * location);
27 GstEncodingProfile * parse_encoding_profile (const gchar * format);
28 void print_enum (GType enum_type);
29
30 void ges_print (GstDebugColorFlags c, gboolean err, gboolean nline, const gchar * format, va_list var_args);
31 void ges_ok (const gchar * format, ...);
32 void ges_warn (const gchar * format, ...);
33 void ges_printerr (const gchar * format, ...);
34
35 gchar * get_file_extension (gchar * uri);
36 void describe_encoding_profile (GstEncodingProfile *profile);
37 void print_timeline(GESTimeline *timeline);