command-line-formatter: Stop uselessly looping over options
[platform/upstream/gstreamer.git] / ges / ges-test-clip.h
1 /* GStreamer Editing Services
2  * Copyright (C) 2009 Brandon Lewis <brandon.lewis@collabora.co.uk>
3  *               2009 Nokia Corporation
4  * Copyright (C) 2020 Igalia S.L
5  *     Author: 2020 Thibault Saunier <tsaunier@igalia.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #pragma once
24
25
26 #include <glib-object.h>
27 #include <ges/ges-enums.h>
28 #include <ges/ges-types.h>
29 #include <ges/ges-source-clip.h>
30 #include <ges/ges-track.h>
31
32 G_BEGIN_DECLS
33
34 #define GES_TYPE_TEST_CLIP ges_test_clip_get_type()
35 GES_DECLARE_TYPE(TestClip, test_clip, TEST_CLIP);
36
37 /**
38  * GESTestClip:
39  */
40
41 struct _GESTestClip {
42
43   GESSourceClip parent;
44
45   /*< private >*/
46   GESTestClipPrivate *priv;
47
48   /* Padding for API extension */
49   gpointer _ges_reserved[GES_PADDING];
50 };
51
52 /**
53  * GESTestClipClass:
54  */
55
56 struct _GESTestClipClass {
57   /*< private >*/
58   GESSourceClipClass parent_class;
59
60   /* Padding for API extension */
61   gpointer _ges_reserved[GES_PADDING];
62 };
63
64 GES_API void
65 ges_test_clip_set_mute (GESTestClip * self, gboolean mute);
66
67 GES_API void
68 ges_test_clip_set_vpattern (GESTestClip * self,
69     GESVideoTestPattern vpattern);
70
71 GES_API void
72 ges_test_clip_set_frequency (GESTestClip * self, gdouble freq);
73
74 GES_API void
75 ges_test_clip_set_volume (GESTestClip * self,
76     gdouble volume);
77
78
79 GES_API GESVideoTestPattern
80 ges_test_clip_get_vpattern (GESTestClip * self);
81
82 GES_API
83 gboolean ges_test_clip_is_muted (GESTestClip * self);
84 GES_API
85 gdouble ges_test_clip_get_frequency (GESTestClip * self);
86 GES_API
87 gdouble ges_test_clip_get_volume (GESTestClip * self);
88
89 GES_API
90 GESTestClip* ges_test_clip_new (void);
91 GES_API
92 GESTestClip* ges_test_clip_new_for_nick(gchar * nick);
93
94 G_END_DECLS