Debian Codegraph @

gstreamer/gstreamermm/enums.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_ENUMS_H
3 #define _GSTREAMERMM_ENUMS_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/gst.h>
29
30
31 // Plug-in C enums used in the plug-in signals that are shared need to be
32 // declared. This one is is shared between decodebin2 and uridecodebin so it
33 // is difficult for it to be generated.
34 enum GstAutoplugSelectResult
35 {
36 GST_AUTOPLUG_SELECT_TRY,
37 GST_AUTOPLUG_SELECT_EXPOSE,
38 GST_AUTOPLUG_SELECT_SKIP
39 };
40
41 enum GstMultiHandleSinkClientStatus
42 {
43 GST_CLIENT_STATUS_OK,
44 GST_CLIENT_STATUS_CLOSED,
45 GST_CLIENT_STATUS_REMOVED,
46 GST_CLIENT_STATUS_SLOW,
47 GST_CLIENT_STATUS_ERROR,
48 GST_CLIENT_STATUS_DUPLICATE,
49 GST_CLIENT_STATUS_FLUSHING
50 };
51
52 enum GstMultiHandleSinkSyncMethod
53 {
54 GST_SYNC_METHOD_LATEST,
55 GST_SYNC_METHOD_NEXT_KEYFRAME,
56 GST_SYNC_METHOD_LATEST_KEYFRAME,
57 GST_SYNC_METHOD_BURST,
58 GST_SYNC_METHOD_BURST_KEYFRAME,
59 GST_SYNC_METHOD_BURST_WITH_KEYFRAME
60 };
61
62 namespace Gst
63 {
64
65 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
66
67 /**
68 * @var State STATE_VOID_PENDING
69 * No pending state.
70 *
71 * @var State STATE_NULL
72 * The <tt>nullptr</tt> state or initial state of an element.
73 *
74 * @var State STATE_READY
75 * The element is ready to go to PAUSED.
76 *
77 * @var State STATE_PAUSED
78 * The element is PAUSED, it is ready to accept and
79 * process data. Sink elements however only accept one
80 * buffer and then block.
81 *
82 * @var State STATE_PLAYING
83 * The element is PLAYING, the Gst::Clock is running and
84 * the data is flowing.
85 *
86 * @enum State
87 *
88 * The possible states an element can be in. States can be changed using
89 * Gst::Element::set_state() and checked using Gst::Element::get_state().
90 *
91 * @ingroup gstreamermmEnums
92 */
93 enum State
94 {
95 STATE_VOID_PENDING,
96 STATE_NULL,
97 STATE_READY,
98 STATE_PAUSED,
99 STATE_PLAYING
100 };
101
102 } // namespace Gst
103
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
105 namespace Glib
106 {
107
108 template <>
109 class Value<Gst::State> : public Glib::Value_Enum<Gst::State>
110 {
111 public:
112 static GType value_type() G_GNUC_CONST;
113 };
114
115 } // namespace Glib
116 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
117
118 namespace Gst
119 {
120
121
122 // Plug-in non-genereated enums. Handled manually and not generated because
123 // they are shared by more than one plug-in:
124 /**
125 *
126 * @ingroup gstreamermmEnums
127 */
128 enum AutoplugSelectResult
129 {
130 AUTOPLUG_SELECT_TRY,
131 AUTOPLUG_SELECT_EXPOSE,
132 AUTOPLUG_SELECT_SKIP
133 };
134
135 } // namespace Gst
136
137 #ifndef DOXYGEN_SHOULD_SKIP_THIS
138 namespace Glib
139 {
140
141 template <>
142 class Value<Gst::AutoplugSelectResult> : public Glib::Value_Enum<Gst::AutoplugSelectResult>
143 {
144 public:
145 static GType value_type() G_GNUC_CONST;
146 };
147
148 } // namespace Glib
149 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
150
151 namespace Gst
152 {
153
154
155 /**
156 *
157 * @ingroup gstreamermmEnums
158 */
159 enum MultiHandleSinkClientStatus
160 {
161 CLIENT_STATUS_OK,
162 CLIENT_STATUS_CLOSED,
163 CLIENT_STATUS_REMOVED,
164 CLIENT_STATUS_SLOW,
165 CLIENT_STATUS_ERROR,
166 CLIENT_STATUS_DUPLICATE,
167 CLIENT_STATUS_FLUSHING
168 };
169
170 } // namespace Gst
171
172 #ifndef DOXYGEN_SHOULD_SKIP_THIS
173 namespace Glib
174 {
175
176 template <>
177 class Value<Gst::MultiHandleSinkClientStatus> : public Glib::Value_Enum<Gst::MultiHandleSinkClientStatus>
178 {
179 public:
180 static GType value_type() G_GNUC_CONST;
181 };
182
183 } // namespace Glib
184 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
185
186 namespace Gst
187 {
188
189
190 /**
191 *
192 * @ingroup gstreamermmEnums
193 */
194 enum MultiHandleSinkSyncMethod
195 {
196 SYNC_METHOD_LATEST,
197 SYNC_METHOD_NEXT_KEYFRAME,
198 SYNC_METHOD_LATEST_KEYFRAME,
199 SYNC_METHOD_BURST,
200 SYNC_METHOD_BURST_KEYFRAME,
201 SYNC_METHOD_BURST_WITH_KEYFRAME
202 };
203
204 } // namespace Gst
205
206 #ifndef DOXYGEN_SHOULD_SKIP_THIS
207 namespace Glib
208 {
209
210 template <>
211 class Value<Gst::MultiHandleSinkSyncMethod> : public Glib::Value_Enum<Gst::MultiHandleSinkSyncMethod>
212 {
213 public:
214 static GType value_type() G_GNUC_CONST;
215 };
216
217 } // namespace Glib
218 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
219
220 namespace Gst
221 {
222
223
224 /**
225 *
226 * @ingroup gstreamermmEnums
227 * @par Bitwise operators:
228 * <tt>%PlayFlags operator|(PlayFlags, PlayFlags)</tt><br>
229 * <tt>%PlayFlags operator&(PlayFlags, PlayFlags)</tt><br>
230 * <tt>%PlayFlags operator^(PlayFlags, PlayFlags)</tt><br>
231 * <tt>%PlayFlags operator~(PlayFlags)</tt><br>
232 * <tt>%PlayFlags& operator|=(PlayFlags&, PlayFlags)</tt><br>
233 * <tt>%PlayFlags& operator&=(PlayFlags&, PlayFlags)</tt><br>
234 * <tt>%PlayFlags& operator^=(PlayFlags&, PlayFlags)</tt><br>
235 */
236 enum PlayFlags
237 {
238 PLAY_FLAG_VIDEO = (1 << 0),
239 PLAY_FLAG_AUDIO = (1 << 1),
240 PLAY_FLAG_TEXT = (1 << 2),
241 PLAY_FLAG_VIS = (1 << 3),
242 PLAY_FLAG_SOFT_VOLUME = (1 << 4),
243 PLAY_FLAG_NATIVE_AUDIO = (1 << 5),
244 PLAY_FLAG_NATIVE_VIDEO = (1 << 6),
245 PLAY_FLAG_DOWNLOAD = (1 << 7),
246 PLAY_FLAG_BUFFERING = (1 << 8),
247 PLAY_FLAG_DEINTERLACE = (1 << 9),
248 PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10),
249 PLAY_FLAG_FORCE_FILTERS = (1 << 11)
250 };
251
252 /** @ingroup gstreamermmEnums */
253 inline PlayFlags operator|(PlayFlags lhs, PlayFlags rhs)
254 { return static_cast<PlayFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
255
256 /** @ingroup gstreamermmEnums */
257 inline PlayFlags operator&(PlayFlags lhs, PlayFlags rhs)
258 { return static_cast<PlayFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
259
260 /** @ingroup gstreamermmEnums */
261 inline PlayFlags operator^(PlayFlags lhs, PlayFlags rhs)
262 { return static_cast<PlayFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
263
264 /** @ingroup gstreamermmEnums */
265 inline PlayFlags operator~(PlayFlags flags)
266 { return static_cast<PlayFlags>(~static_cast<unsigned>(flags)); }
267
268 /** @ingroup gstreamermmEnums */
269 inline PlayFlags& operator|=(PlayFlags& lhs, PlayFlags rhs)
270 { return (lhs = static_cast<PlayFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
271
272 /** @ingroup gstreamermmEnums */
273 inline PlayFlags& operator&=(PlayFlags& lhs, PlayFlags rhs)
274 { return (lhs = static_cast<PlayFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
275
276 /** @ingroup gstreamermmEnums */
277 inline PlayFlags& operator^=(PlayFlags& lhs, PlayFlags rhs)
278 { return (lhs = static_cast<PlayFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
279
280 } // namespace Gst
281
282 #ifndef DOXYGEN_SHOULD_SKIP_THIS
283 namespace Glib
284 {
285
286 template <>
287 class Value<Gst::PlayFlags> : public Glib::Value_Flags<Gst::PlayFlags>
288 {
289 public:
290 static GType value_type() G_GNUC_CONST;
291 };
292
293 } // namespace Glib
294 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
295
296 namespace Gst
297 {
298
299
300 } //namespace Gst
301
302
303 #endif /* _GSTREAMERMM_ENUMS_H */
304