| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/elementfactory.h`/ |
| 2 | #ifndef _GSTREAMERMM_ELEMENTFACTORY_H |
| 3 | #define _GSTREAMERMM_ELEMENTFACTORY_Hcxx . . $ `gstreamer/gstreamermm/elementfactory.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-2016 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 <gstreamermm/pad.h>cxx . . $ `<file>/gstreamer/gstreamermm/pad.h`/ |
| 30 | #include <gstreamermm/pluginfeature.h>cxx . . $ `<file>/gstreamer/gstreamermm/pluginfeature.h`/ |
| 31 | #include <gstreamermm/urihandler.h>cxx . . $ `<file>/gstreamer/gstreamermm/urihandler.h`/ |
| 32 | |
| 33 | |
| 34 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 35 | using GstElementFactorycxx . . $ GstElementFactory# = struct _GstElementFactorycxx . . $ _GstElementFactory#; |
| 36 | using GstElementFactoryClasscxx . . $ GstElementFactoryClass# = struct _GstElementFactoryClasscxx . . $ _GstElementFactoryClass#; |
| 37 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 38 | |
| 39 | |
| 40 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 41 | namespace Gstcxx . . $ Gst/ |
| 42 | { class ElementFactory_Classcxx . . $ Gst/ElementFactory_Class#; } // namespace Gst |
| 43 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 44 | |
| 45 | namespace Gstcxx . . $ Gst/ |
| 46 | { |
| 47 | |
| 48 | enum ElementFactoryListTypecxx . . $ Gst/ElementFactoryListType# |
| 49 | { |
| 50 | ELEMENT_FACTORY_TYPE_ANYcxx . . $ Gst/ELEMENT_FACTORY_TYPE_ANY., |
| 51 | ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKScxx . . $ Gst/ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS., |
| 52 | ELEMENT_FACTORY_TYPE_AUDIO_ENCODERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_AUDIO_ENCODER., |
| 53 | ELEMENT_FACTORY_TYPE_DECODABLEcxx . . $ Gst/ELEMENT_FACTORY_TYPE_DECODABLE., |
| 54 | ELEMENT_FACTORY_TYPE_DECODERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_DECODER., |
| 55 | ELEMENT_FACTORY_TYPE_DEMUXERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_DEMUXER., |
| 56 | ELEMENT_FACTORY_TYPE_DEPAYLOADERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_DEPAYLOADER., |
| 57 | ELEMENT_FACTORY_TYPE_ENCODERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_ENCODER., |
| 58 | ELEMENT_FACTORY_TYPE_FORMATTERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_FORMATTER., |
| 59 | ELEMENT_FACTORY_TYPE_MAX_ELEMENTScxx . . $ Gst/ELEMENT_FACTORY_TYPE_MAX_ELEMENTS., |
| 60 | ELEMENT_FACTORY_TYPE_MEDIA_AUDIOcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_AUDIO., |
| 61 | ELEMENT_FACTORY_TYPE_MEDIA_IMAGEcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_IMAGE., |
| 62 | ELEMENT_FACTORY_TYPE_MEDIA_METADATAcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_METADATA., |
| 63 | ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLEcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE., |
| 64 | ELEMENT_FACTORY_TYPE_MEDIA_VIDEOcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_VIDEO., |
| 65 | ELEMENT_FACTORY_TYPE_MEDIA_ANYcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MEDIA_ANY., |
| 66 | ELEMENT_FACTORY_TYPE_MUXERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_MUXER., |
| 67 | ELEMENT_FACTORY_TYPE_PARSERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_PARSER., |
| 68 | ELEMENT_FACTORY_TYPE_PAYLOADERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_PAYLOADER., |
| 69 | ELEMENT_FACTORY_TYPE_SINKcxx . . $ Gst/ELEMENT_FACTORY_TYPE_SINK., |
| 70 | ELEMENT_FACTORY_TYPE_SRCcxx . . $ Gst/ELEMENT_FACTORY_TYPE_SRC., |
| 71 | ELEMENT_FACTORY_TYPE_VIDEO_ENCODERcxx . . $ Gst/ELEMENT_FACTORY_TYPE_VIDEO_ENCODER. |
| 72 | }; |
| 73 | |
| 74 | class ArrayHandlercxx . . $ Gst/ArrayHandler#; |
| 75 | class Capscxx . . $ Gst/Caps#; |
| 76 | class Elementcxx . . $ Gst/Element#; |
| 77 | class StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#; |
| 78 | struct StaticPadTemplateTraitscxx . . $ Gst/StaticPadTemplateTraits#; |
| 79 | class Plugincxx . . $ Gst/Plugin#; |
| 80 | |
| 81 | /** Create Gst::Element 's from a factory |
| 82 | * |
| 83 | * Gst::ElementFactory is used to create instances of elements. A |
| 84 | * Gst::ElementFactory can be added to a Gst::Plugin as it is also a |
| 85 | * Gst::PluginFeature. |
| 86 | * |
| 87 | * Use the find() and create() |
| 88 | * functions to create element instances or use create_element() as a |
| 89 | * convenient shortcut. |
| 90 | * |
| 91 | * The following code example shows you how to create a 'filesrc' element. |
| 92 | * |
| 93 | * @code |
| 94 | * #include <gstreamermm.h> |
| 95 | * #include <iostream> |
| 96 | * |
| 97 | * int main (int argc, char *argc[]) |
| 98 | * { |
| 99 | * Glib::RefPtr<Gst::Element> src; |
| 100 | * Glib::RefPtr<Gst::ElementFactory> srcfactory; |
| 101 | * |
| 102 | * Gst::init(&argc,&argv); |
| 103 | * |
| 104 | * srcfactory = Gst::ElementFactory::find("filesrc"); |
| 105 | * |
| 106 | * if(!srcfactory) |
| 107 | * { |
| 108 | * std::cout << "Could not find factory 'filesrc'" << std::endl; |
| 109 | * exit(1); |
| 110 | * } |
| 111 | * |
| 112 | * src = srcfactory->create("src"); |
| 113 | * |
| 114 | * if(!src) |
| 115 | * { |
| 116 | * std::cout << "Could not create element 'src'" << std::endl; |
| 117 | * exit(1); |
| 118 | * } |
| 119 | * ... |
| 120 | * } |
| 121 | * @endcode |
| 122 | * |
| 123 | * Last reviewed on 2016-05-21 (1.8.0). |
| 124 | * |
| 125 | */ |
| 126 | |
| 127 | class ElementFactorycxx . . $ Gst/ElementFactory# : public PluginFeaturecxx . . $ Gst/PluginFeature# |
| 128 | { |
| 129 | |
| 130 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 131 | |
| 132 | public: |
| 133 | using CppObjectTypecxx . . $ Gst/ElementFactory#CppObjectType# = ElementFactorycxx . . $ Gst/ElementFactory#; |
| 134 | using CppClassTypecxx . . $ Gst/ElementFactory#CppClassType# = ElementFactory_Classcxx . . $ Gst/ElementFactory_Class#; |
| 135 | using BaseObjectTypecxx . . $ Gst/ElementFactory#BaseObjectType# = GstElementFactorycxx . . $ GstElementFactory#; |
| 136 | using BaseClassTypecxx . . $ Gst/ElementFactory#BaseClassType# = GstElementFactoryClasscxx . . $ GstElementFactoryClass#; |
| 137 | |
| 138 | // noncopyable |
| 139 | ElementFactorycxx . . $ Gst/ElementFactory#ElementFactory(c6b751d415918dcb).(const ElementFactorycxx . . $ Gst/ElementFactory#&) = delete; |
| 140 | ElementFactorycxx . . $ Gst/ElementFactory#& operatorcxx . . $ Gst/ElementFactory#`operator=`(e3fd24fc5bc85cec).=(const ElementFactorycxx . . $ Gst/ElementFactory#&) = delete; |
| 141 | |
| 142 | private: friend class ElementFactory_Classcxx . . $ Gst/ElementFactory_Class#; |
| 143 | static CppClassTypecxx . . $ Gst/ElementFactory#CppClassType# elementfactory_class_cxx . . $ Gst/ElementFactory#elementfactory_class_.; |
| 144 | |
| 145 | protected: |
| 146 | explicit ElementFactorycxx . . $ Gst/ElementFactory#ElementFactory(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params); |
| 147 | explicit ElementFactorycxx . . $ Gst/ElementFactory#ElementFactory(dbf869089354c8bb).(GstElementFactorycxx . . $ GstElementFactory#* castitem); |
| 148 | |
| 149 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 150 | |
| 151 | public: |
| 152 | |
| 153 | ElementFactorycxx . . $ Gst/ElementFactory#ElementFactory(ed7a9f3d9d36a288).(ElementFactorycxx . . $ Gst/ElementFactory#&& src) noexcept; |
| 154 | ElementFactorycxx . . $ Gst/ElementFactory#& operatorcxx . . $ Gst/ElementFactory#`operator=`(61d80f1c5a981ed5).=(ElementFactorycxx . . $ Gst/ElementFactory#&& src) noexcept; |
| 155 | |
| 156 | ~cxx . . $ Gst/ElementFactory#`~ElementFactory`(ced63f7c635d850d).ElementFactorycxx . . $ Gst/ElementFactory#() noexcept override; |
| 157 | |
| 158 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 159 | */ |
| 160 | static GType get_typecxx . . $ Gst/ElementFactory#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 161 | |
| 162 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 163 | |
| 164 | |
| 165 | static GType get_base_typecxx . . $ Gst/ElementFactory#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!; |
| 166 | #endif |
| 167 | |
| 168 | ///Provides access to the underlying C GObject. |
| 169 | GstElementFactorycxx . . $ GstElementFactory#* gobjcxx . . $ Gst/ElementFactory#gobj(825f37ca381b498c).() { return reinterpret_cast<GstElementFactorycxx . . $ GstElementFactory#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); } |
| 170 | |
| 171 | ///Provides access to the underlying C GObject. |
| 172 | const GstElementFactorycxx . . $ GstElementFactory#* gobjcxx . . $ Gst/ElementFactory#gobj(773a76ff4c93b226).() const { return reinterpret_cast<GstElementFactorycxx . . $ GstElementFactory#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); } |
| 173 | |
| 174 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 175 | GstElementFactorycxx . . $ GstElementFactory#* gobj_copycxx . . $ Gst/ElementFactory#gobj_copy(825f37ca381b498c).(); |
| 176 | |
| 177 | private: |
| 178 | |
| 179 | |
| 180 | public: |
| 181 | |
| 182 | /** Create a new elementfactory capable of instantiating objects of the |
| 183 | * @a type and add the factory to @a plugin. |
| 184 | * |
| 185 | * @param plugin Gst::Plugin to register the element with, or <tt>nullptr</tt> for |
| 186 | * a static element. |
| 187 | * @param name Name of elements of this type. |
| 188 | * @param rank Rank of element (higher rank means more importance when autoplugging). |
| 189 | * @param type GType of element to register. |
| 190 | * @return <tt>true</tt>, if the registering succeeded, <tt>false</tt> on error. |
| 191 | */ |
| 192 | static bool register_elementcxx . . $ Gst/ElementFactory#register_element(7b1d93819d31b6a).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Plugincxx . . $ Gst/Plugin#>& plugin, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank, GType type); |
| 193 | |
| 194 | |
| 195 | /** Search for an element factory of the given name. Refs the returned |
| 196 | * element factory; caller is responsible for unreffing. |
| 197 | * |
| 198 | * @param name Name of factory to find. |
| 199 | * @return Gst::ElementFactory if found, |
| 200 | * <tt>nullptr</tt> otherwise. |
| 201 | */ |
| 202 | static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ElementFactorycxx . . $ Gst/ElementFactory#> findcxx . . $ Gst/ElementFactory#find(d53df8cb57e7c385).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name); |
| 203 | |
| 204 | |
| 205 | /** Create a new element of the type defined by the given elementfactory. |
| 206 | * It will be given the name supplied, since all elements require a name as |
| 207 | * their first argument. |
| 208 | * |
| 209 | * @param name Name of new element, or <tt>nullptr</tt> to automatically create |
| 210 | * a unique name. |
| 211 | * @return New Gst::Element or <tt>nullptr</tt> |
| 212 | * if the element couldn't be created. |
| 213 | */ |
| 214 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> createcxx . . $ Gst/ElementFactory#create(1ef5e1ee31814ad5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name); |
| 215 | |
| 216 | /// A create() convenience overload. |
| 217 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> createcxx . . $ Gst/ElementFactory#create(3e7872c5483971d5).(); |
| 218 | |
| 219 | |
| 220 | /** Create a new element of the type defined by the given element factory. |
| 221 | * |
| 222 | * @param factory_name A named factory to instantiate. |
| 223 | * @param name Name of new element. |
| 224 | * @return New Gst::Element or <tt>nullptr</tt> if unable to create element. |
| 225 | */ |
| 226 | static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> create_elementcxx . . $ Gst/ElementFactory#create_element(bde311d80d2d00e5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& factory_name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name); |
| 227 | |
| 228 | /// A create_element() convenience overload. |
| 229 | static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> create_elementcxx . . $ Gst/ElementFactory#create_element(1ef5e1ee31814ad5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& factory_name); |
| 230 | |
| 231 | |
| 232 | /** Checks if the factory can sink all possible capabilities. |
| 233 | * |
| 234 | * @param caps The caps to check. |
| 235 | * @return <tt>true</tt> if the caps are fully compatible. |
| 236 | */ |
| 237 | bool can_sink_all_capscxx . . $ Gst/ElementFactory#can_sink_all_caps(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) const; |
| 238 | |
| 239 | /** Checks if the factory can src all possible capabilities. |
| 240 | * |
| 241 | * @param caps The caps to check. |
| 242 | * @return <tt>true</tt> if the caps are fully compatible. |
| 243 | */ |
| 244 | bool can_src_all_capscxx . . $ Gst/ElementFactory#can_src_all_caps(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) const; |
| 245 | |
| 246 | /** Checks if the factory can sink any possible capability. |
| 247 | * |
| 248 | * @param caps The caps to check. |
| 249 | * @return <tt>true</tt> if the caps have a common subset. |
| 250 | */ |
| 251 | bool can_sink_any_capscxx . . $ Gst/ElementFactory#can_sink_any_caps(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) const; |
| 252 | |
| 253 | /** Checks if the factory can src any possible capability. |
| 254 | * |
| 255 | * @param caps The caps to check. |
| 256 | * @return <tt>true</tt> if the caps have a common subset. |
| 257 | */ |
| 258 | bool can_src_any_capscxx . . $ Gst/ElementFactory#can_src_any_caps(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) const; |
| 259 | |
| 260 | |
| 261 | /** Get the Type for elements managed by this factory. The type can |
| 262 | * only be retrieved if the element factory is loaded, which can be |
| 263 | * assured with Gst::PluginFeature::load(). |
| 264 | * |
| 265 | * @return The Type for elements managed by this factory or 0 if |
| 266 | * the factory is not loaded. |
| 267 | */ |
| 268 | GType get_element_typecxx . . $ Gst/ElementFactory#get_element_type(fe4d2d262d4164a8).() const; |
| 269 | |
| 270 | |
| 271 | /** Get the available keys for the metadata on @a factory. |
| 272 | * |
| 273 | * @return A <tt>nullptr</tt>-terminated array of key strings, or <tt>nullptr</tt> when there is no |
| 274 | * metadata. |
| 275 | */ |
| 276 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#> get_metadata_keyscxx . . $ Gst/ElementFactory#get_metadata_keys(875676e3b2759068).() const; |
| 277 | |
| 278 | /** Get the metadata on @a factory with @a key. |
| 279 | * |
| 280 | * @param key A key. |
| 281 | * @return The metadata with @a key on @a factory or <tt>nullptr</tt> |
| 282 | * when there was no metadata with the given @a key. |
| 283 | */ |
| 284 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# get_metadatacxx . . $ Gst/ElementFactory#get_metadata(258cbd5fc4df303b).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& key) const; |
| 285 | |
| 286 | |
| 287 | /** Gets the number of pad_templates in this factory. |
| 288 | * |
| 289 | * @return The number of pad_templates. |
| 290 | */ |
| 291 | guint get_num_pad_templatescxx . . $ Gst/ElementFactory#get_num_pad_templates(ddd8539a2fcdd4ce).() const; |
| 292 | |
| 293 | /** Gets the type of URIs the element supports or Gst::URI_UNKNOWN if none. |
| 294 | * |
| 295 | * @return Type of URIs this element supports. |
| 296 | */ |
| 297 | URITypecxx . . $ Gst/URIType# get_uri_typecxx . . $ Gst/ElementFactory#get_uri_type(6b76c8292462901e).() const; |
| 298 | |
| 299 | |
| 300 | /** Gets a <tt>nullptr</tt>-terminated array of protocols this element supports or <tt>nullptr</tt> if |
| 301 | * no protocols are supported. You may not change the contents of the returned |
| 302 | * array, as it is still owned by the element factory. Use Glib::strdupv() to |
| 303 | * make a copy of the protocol string array if you need to. |
| 304 | * |
| 305 | * @return The supported protocols |
| 306 | * or <tt>nullptr</tt>. |
| 307 | */ |
| 308 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#> get_uri_protocolscxx . . $ Gst/ElementFactory#get_uri_protocols(875676e3b2759068).() const; |
| 309 | |
| 310 | |
| 311 | /** Check if @a factory implements the interface with name @a name. |
| 312 | * |
| 313 | * @param name An interface name. |
| 314 | * @return <tt>true</tt> when @a factory implement the interface. |
| 315 | */ |
| 316 | bool has_interfacecxx . . $ Gst/ElementFactory#has_interface(51a66224d46a21f).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name) const; |
| 317 | |
| 318 | |
| 319 | /** Gets the List of Gst::StaticPadTemplate for this factory. |
| 320 | * |
| 321 | * @return The |
| 322 | * static pad templates. |
| 323 | */ |
| 324 | stdcxx . . $ std/::vectorcxx . . $ std/vector#< Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate# > get_static_pad_templatescxx . . $ Gst/ElementFactory#get_static_pad_templates(8c8ba456e4666dfb).() const; |
| 325 | |
| 326 | |
| 327 | /** Filter out all the elementfactories in @a list that can handle @a caps in |
| 328 | * the given direction. |
| 329 | * |
| 330 | * If @a subsetonly is <tt>true</tt>, then only the elements whose pads templates |
| 331 | * are a complete superset of @a caps will be returned. Else any element |
| 332 | * whose pad templates caps can intersect with @a caps will be returned. |
| 333 | * |
| 334 | * @param list A List of |
| 335 | * Gst::ElementFactory to filter. |
| 336 | * @param caps A Gst::Caps. |
| 337 | * @param direction A Gst::PadDirection to filter on. |
| 338 | * @param subsetonly Whether to filter on caps subsets or not. |
| 339 | * @return A List of |
| 340 | * Gst::ElementFactory elements that match the given requisites. |
| 341 | * Use #gst_plugin_feature_list_free after usage. |
| 342 | */ |
| 343 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ElementFactorycxx . . $ Gst/ElementFactory#> > filtercxx . . $ Gst/ElementFactory#filter(abc1cf4787efd95f).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ElementFactorycxx . . $ Gst/ElementFactory#> >& list, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps, PadDirectioncxx . . $ Gst/PadDirection# direction, bool subsetonly); |
| 344 | |
| 345 | |
| 346 | /** Get a list of factories that match the given @a type. Only elements |
| 347 | * with a rank greater or equal to @a minrank will be returned. |
| 348 | * The list of factories is returned by decreasing rank. |
| 349 | * |
| 350 | * @param type A Gst::ElementFactoryListType. |
| 351 | * @param minrank Minimum rank. |
| 352 | * @return A List of |
| 353 | * Gst::ElementFactory elements. Use Gst::PluginFeature::list_free() after |
| 354 | * usage. |
| 355 | */ |
| 356 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ElementFactorycxx . . $ Gst/ElementFactory#> > get_elementscxx . . $ Gst/ElementFactory#get_elements(2c5d7ffa7784084a).(ElementFactoryListTypecxx . . $ Gst/ElementFactoryListType# type, Rankcxx . . $ Gst/Rank# minrank); |
| 357 | |
| 358 | /** Check if @a factory is of the given types. |
| 359 | * |
| 360 | * @param type A Gst::ElementFactoryListType. |
| 361 | * @return <tt>true</tt> if @a factory is of @a type. |
| 362 | */ |
| 363 | bool is_typecxx . . $ Gst/ElementFactory#is_type(13e8cb0f1de3ca96).(ElementFactoryListTypecxx . . $ Gst/ElementFactoryListType# type) const; |
| 364 | |
| 365 | |
| 366 | public: |
| 367 | |
| 368 | public: |
| 369 | //C++ methods used to invoke GTK+ virtual functions: |
| 370 | |
| 371 | protected: |
| 372 | //GTK+ Virtual Functions (override these to change behaviour): |
| 373 | |
| 374 | //Default Signal Handlers:: |
| 375 | |
| 376 | |
| 377 | }; |
| 378 | |
| 379 | /*! A gstreamermm Gst::ElementFactory example. |
| 380 | * @example basics/element_factory.cc |
| 381 | */ |
| 382 | |
| 383 | } // namespace Gst |
| 384 | |
| 385 | |
| 386 | namespace Glibcxx . . $ Glib/ |
| 387 | { |
| 388 | /** A Glib::wrap() method for this object. |
| 389 | * |
| 390 | * @param object The C instance. |
| 391 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 392 | * @result A C++ instance that wraps this C instance. |
| 393 | * |
| 394 | * @relates Gst::ElementFactory |
| 395 | */ |
| 396 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ElementFactorycxx . . $ Gst/ElementFactory#> wrapcxx . . $ Glib/wrap(ffd9a97917acb409).(GstElementFactorycxx . . $ GstElementFactory#* object, bool take_copy = false); |
| 397 | } |
| 398 | |
| 399 | |
| 400 | #endif /* _GSTREAMERMM_ELEMENTFACTORY_H */ |
| 401 |