Debian Codegraph @

gstreamer/gstreamermm/format.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/format.h`/
2 #ifndef _GSTREAMERMM_FORMAT_H
3 #define _GSTREAMERMM_FORMAT_Hcxx . . $ `gstreamer/gstreamermm/format.h:3:9`!
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 #include <glibmm/arrayhandle.h>
30
31
32 namespace Gstcxx . . $ Gst/
33 {
34
35 //Gst::IteratorBasic<> forward declaration.
36 template <class CppType>
37 class IteratorBasiccxx . . $ Gst/IteratorBasic#;
38
39 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
40
41 /**
42 * @var Format FORMAT_UNDEFINED
43 * Undefined format.
44 *
45 * @var Format FORMAT_DEFAULT
46 * The default format of the pad/element. This can be
47 * samples for raw audio, frames/fields for raw video (some, but not all,
48 * elements support this; use @a GST_FORMAT_TIME if you don't have a good
49 * reason to query for samples/frames).
50 *
51 * @var Format FORMAT_BYTES
52 * Bytes.
53 *
54 * @var Format FORMAT_TIME
55 * Time in nanoseconds.
56 *
57 * @var Format FORMAT_BUFFERS
58 * Buffers (few, if any, elements implement this as of
59 * May 2009).
60 *
61 * @var Format FORMAT_PERCENT
62 * Percentage of stream (few, if any, elements implement
63 * this as of May 2009).
64 *
65 * @enum Format
66 *
67 * Standard predefined formats
68 *
69 * @ingroup gstreamermmEnums
70 */
71 enum Formatcxx . . $ Gst/Format#
72 {
73 FORMAT_UNDEFINEDcxx . . $ Gst/FORMAT_UNDEFINED.,
74 FORMAT_DEFAULTcxx . . $ Gst/FORMAT_DEFAULT.,
75 FORMAT_BYTEScxx . . $ Gst/FORMAT_BYTES.,
76 FORMAT_TIMEcxx . . $ Gst/FORMAT_TIME.,
77 FORMAT_BUFFERScxx . . $ Gst/FORMAT_BUFFERS.,
78 FORMAT_PERCENTcxx . . $ Gst/FORMAT_PERCENT.
79 };
80
81 } // namespace Gst
82
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 namespace Glibcxx . . $ Glib/
85 {
86
87 template <>
88 class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format#> : public Glibcxx . . $ Glib/::Value_Enumcxx . . $ Glib/Value_Enum#<Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format#>
89 {
90 public:
91 static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
92 };
93
94 } // namespace Glib
95 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
96
97 namespace Gstcxx . . $ Gst/
98 {
99
100
101 /** A class to store the details of a Gst::Format retrieved by
102 * Gst::get_format_details().
103 */
104 class FormatDefinitioncxx . . $ Gst/FormatDefinition#
105 {
106 public:
107 #ifndef DOXYGEN_SHOULD_SKIP_THIS
108 using CppObjectTypecxx . . $ Gst/FormatDefinition#CppObjectType# = FormatDefinitioncxx . . $ Gst/FormatDefinition#;
109 using BaseObjectTypecxx . . $ Gst/FormatDefinition#BaseObjectType# = GstFormatDefinition;
110 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
111
112 private:
113
114
115 public:
116 /// Default constructor.
117 FormatDefinitioncxx . . $ Gst/FormatDefinition#FormatDefinition(49f6e7a06ebc5aa8).();
118
119 /** Constructs a Gst::FormatDefinition from a C GstFormatDefinition type.
120 * The @a castitem is left unaffected; its contents are simply copied.
121 * @param castitem The GstFormatDefinition to copy contents from.
122 */
123 explicit FormatDefinitioncxx . . $ Gst/FormatDefinition#FormatDefinition(aa2ef67b3da4bceb).(const GstFormatDefinition* castitem);
124
125 /// The unique id of this format.
126 Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# valuecxx . . $ Gst/FormatDefinition#value.;
127
128 /// A short nick of the format.
129 Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# nickcxx . . $ Gst/FormatDefinition#nick.;
130
131 /// A longer description of the format.
132 Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# descriptioncxx . . $ Gst/FormatDefinition#description.;
133
134 /// A quark for the nick.
135 Glibcxx . . $ Glib/::QueryQuarkcxx . . $ Glib/QueryQuark# quarkcxx . . $ Gst/FormatDefinition#quark.;
136
137
138 };
139
140 namespace Enumscxx . . $ Gst/Enums/
141 {
142
143 /** Gets a printable name for the given format. Do not modify or free.
144 *
145 * @param format A Gst::Format.
146 * @return The name of the format or an empty string if the format is unknown.
147 */
148 Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# get_namecxx . . $ Gst/Enums/get_name(fb479e03f6765b08).(Formatcxx . . $ Gst/Format# format);
149
150 /** Gets the unique quark for the given format.
151 *
152 * @param format A Gst::Format.
153 * @return The quark associated with the format or 0 if the format is unknown.
154 */
155 Glibcxx . . $ Glib/::QueryQuarkcxx . . $ Glib/QueryQuark# get_quarkcxx . . $ Gst/Enums/get_quark(d7b16d6b11a11481).(Formatcxx . . $ Gst/Format# format);
156
157 } //namespace Enums
158
159 /** Creates a new Gst::Format based on the nick or return an already
160 * registered format with that nick.
161 *
162 * @param nick The nick of the new format.
163 * @param description The description of the new format.
164 * @return A new Gst::Format or an already registered format with the same
165 * nick. MT safe.
166 */
167 Formatcxx . . $ Gst/Format# register_formatcxx . . $ Gst/register_format(f78dfb8c1209e94e).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& nick, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#&
168 description);
169
170 /** Returns the format registered with the given nick.
171 *
172 * @param nick The nick of the format.
173 * @return The format with nick or Gst::FORMAT_UNDEFINED if the format was not
174 * registered.
175 */
176 Formatcxx . . $ Gst/Format# get_formatcxx . . $ Gst/get_format(353ef6a66fa6a58a).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& nick);
177
178 /** Sees if the given format is inside the array of formats.
179 *
180 * @param formats The array of formats to search.
181 * @param format The format to find.
182 * @return true If the format is found inside the array.
183 */
184 bool formats_containcxx . . $ Gst/formats_contain(5674e73ea99a0ef0).(const Glibcxx . . $ Glib/::ArrayHandlecxx . . $ Glib/ArrayHandle#<Formatcxx . . $ Gst/Format#>& formats, Formatcxx . . $ Gst/Format# format);
185
186 /** Gets details about the given format.
187 *
188 * @param format The format to get details of.
189 * @param def The Gst::FormatDefinition in which to store the details of
190 * the format.
191 * @return true if successful, false otherwise. MT safe.
192 */
193 bool get_format_detailscxx . . $ Gst/get_format_details(e4765bb1b1986884).(Formatcxx . . $ Gst/Format# format, FormatDefinitioncxx . . $ Gst/FormatDefinition#& def);
194
195 /** Iterates all the registered formats. The format definitions are read
196 * only.
197 * @return a Gst::IteratorBasic of Gst::FormatDefinition.
198 */
199 IteratorBasiccxx . . $ Gst/IteratorBasic#<const FormatDefinitioncxx . . $ Gst/FormatDefinition#> iterate_format_definitionscxx . . $ Gst/iterate_format_definitions(43549bff93857311).();
200
201 } //namespace Gst
202
203
204 #endif /* _GSTREAMERMM_FORMAT_H */
205