| 1 |
/* gstreamermm - a C++ wrapper for gstreamer |
| 2 |
* |
| 3 |
* Copyright 2009-2016 The gstreamermm Development Team |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <gst/gst.h> |
| 21 |
#include <gstreamermm/pluginfeature.h> |
| 22 |
#include <glibmm/arrayhandle.h> |
| 23 |
|
| 24 |
_DEFS(gstreamermm,gst) |
| 25 |
|
| 26 |
namespace Gst |
| 27 |
{ |
| 28 |
|
| 29 |
class Caps; |
| 30 |
class TypeFind; |
| 31 |
|
| 32 |
/** A class used to get information about registered typefind functions. |
| 33 |
* The methods in this class allow querying information about registered |
| 34 |
* typefind functions. |
| 35 |
* |
| 36 |
* Writing typefinders in C++ is not possible presently. |
| 37 |
* |
| 38 |
* Last reviewed on 2016-08-27 (1.8.0). |
| 39 |
*/ |
| 40 |
class TypeFindFactory : public PluginFeature |
| 41 |
{ |
| 42 |
_CLASS_GOBJECT(TypeFindFactory, GstTypeFindFactory, GST_TYPE_FIND_FACTORY, PluginFeature, GstPluginFeature) |
| 43 |
|
| 44 |
public: |
| 45 |
#m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> >',`$2($3, Glib::OWNERSHIP_DEEP)') |
| 46 |
_WRAP_METHOD(static Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> > get_list(), gst_type_find_factory_get_list) |
| 47 |
|
| 48 |
#m4 _CONVERSION(`const gchar* const*',`std::vector<Glib::ustring>',`Glib::ArrayHandler<Glib::ustring>::array_to_vector($3, Glib::OWNERSHIP_NONE)') |
| 49 |
_WRAP_METHOD(std::vector<Glib::ustring> get_extensions() const, gst_type_find_factory_get_extensions) |
| 50 |
|
| 51 |
_WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_caps(), gst_type_find_factory_get_caps) |
| 52 |
_WRAP_METHOD(Glib::RefPtr<const Gst::Caps> get_caps() const, gst_type_find_factory_get_caps, constversion) |
| 53 |
_WRAP_METHOD(void call_slot(Gst::TypeFind& find), gst_type_find_factory_call_function) |
| 54 |
_WRAP_METHOD(bool has_function() const, gst_type_find_factory_has_function) |
| 55 |
}; |
| 56 |
|
| 57 |
} // namespace Gst |