| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/format.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/format.h>cxx . . $ `<file>/gstreamer/gstreamermm/format.h`/ |
| 7 | #include <gstreamermm/private/format_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/format_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/gst.h> |
| 30 | #include <gstreamermm/iterator.h>cxx . . $ `<file>/gstreamer/gstreamermm/iterator.h`/ |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | FormatDefinitioncxx . . $ Gst/FormatDefinition#::FormatDefinitioncxx . . $ Gst/FormatDefinition#FormatDefinition(49f6e7a06ebc5aa8).() |
| 36 | : valuecxx . . $ Gst/FormatDefinition#value.(Gstcxx . . $ Gst/::FORMAT_UNDEFINEDcxx . . $ Gst/FORMAT_UNDEFINED.), |
| 37 | quarkcxx . . $ Gst/FormatDefinition#quark.(static_cast<GQuark>(0)) |
| 38 | {} |
| 39 | |
| 40 | FormatDefinitioncxx . . $ Gst/FormatDefinition#::FormatDefinitioncxx . . $ Gst/FormatDefinition#FormatDefinition(aa2ef67b3da4bceb).(const GstFormatDefinition* castitem) |
| 41 | : valuecxx . . $ Gst/FormatDefinition#value.(Gstcxx . . $ Gst/::FORMAT_UNDEFINEDcxx . . $ Gst/FORMAT_UNDEFINED.), |
| 42 | quarkcxx . . $ Gst/FormatDefinition#quark.((castitem) ? castitem->quarkcxx . . $ _GstFormatDefinition#quark. : static_cast<GQuark>(0)) |
| 43 | { |
| 44 | if(castitem) |
| 45 | { |
| 46 | valuecxx . . $ Gst/FormatDefinition#value. = static_cast<Formatcxx . . $ Gst/Format#>(castitem->valuecxx . . $ _GstFormatDefinition#value.); |
| 47 | nickcxx . . $ Gst/FormatDefinition#nick. =cxx . . $ Glib/ustring#`operator=`(6082a55360a9226). castitem->nickcxx . . $ _GstFormatDefinition#nick.; |
| 48 | descriptioncxx . . $ Gst/FormatDefinition#description. =cxx . . $ Glib/ustring#`operator=`(6082a55360a9226). castitem->descriptioncxx . . $ _GstFormatDefinition#description.; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | namespace Enumscxx . . $ Gst/Enums/ |
| 53 | { |
| 54 | |
| 55 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# get_namecxx . . $ Gst/Enums/get_name(fb479e03f6765b08).(Formatcxx . . $ Gst/Format# f) |
| 56 | { |
| 57 | return gst_format_get_namecxx . . $ Glib/ustring#ustring(85c52e162fed56f9).(static_cast<GstFormat>(f)); |
| 58 | } |
| 59 | |
| 60 | Glibcxx . . $ Glib/::QueryQuarkcxx . . $ Glib/QueryQuark# get_quarkcxx . . $ Gst/Enums/get_quark(d7b16d6b11a11481).(Formatcxx . . $ Gst/Format# f) |
| 61 | { |
| 62 | return Glibcxx . . $ Glib/::QueryQuarkcxx . . $ Glib/QueryQuark#(gst_format_to_quark(static_cast<GstFormat>(f))); |
| 63 | } |
| 64 | |
| 65 | } //namespace Enums |
| 66 | |
| 67 | Formatcxx . . $ Gst/Format# get_formatcxx . . $ Gst/get_format(353ef6a66fa6a58a).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& nick) |
| 68 | { |
| 69 | return static_cast<Formatcxx . . $ Gst/Format#>(gst_format_get_by_nick(nick.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 70 | } |
| 71 | |
| 72 | Formatcxx . . $ Gst/Format# register_formatcxx . . $ Gst/register_format(f78dfb8c1209e94e).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& nick, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& |
| 73 | description) |
| 74 | { |
| 75 | return static_cast<Formatcxx . . $ Gst/Format#>(gst_format_register(nick.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), description.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 76 | } |
| 77 | |
| 78 | bool formats_containcxx . . $ Gst/formats_contain(5674e73ea99a0ef0).(const Glibcxx . . $ Glib/::ArrayHandlecxx . . $ Glib/ArrayHandle#<Formatcxx . . $ Gst/Format#>& formats, Formatcxx . . $ Gst/Format# format) |
| 79 | { |
| 80 | return gst_formats_contains(reinterpret_cast<const GstFormat*>((formats).datacxx . . $ Glib/ArrayHandle#data(b6fa4944fac54184).()), static_cast<GstFormat>(format)); |
| 81 | } |
| 82 | |
| 83 | bool get_format_detailscxx . . $ Gst/get_format_details(e4765bb1b1986884).(Formatcxx . . $ Gst/Format# format, FormatDefinitioncxx . . $ Gst/FormatDefinition#& def) |
| 84 | { |
| 85 | const GstFormatDefinition* gstdef = gst_format_get_details(static_cast<GstFormat>(format)); |
| 86 | |
| 87 | if(!gstdef) |
| 88 | return false; |
| 89 | |
| 90 | def.valuecxx . . $ Gst/FormatDefinition#value. = Formatcxx . . $ Gst/Format#(gstdef->valuecxx . . $ _GstFormatDefinition#value.); |
| 91 | def.nickcxx . . $ Gst/FormatDefinition#nick. =cxx . . $ Glib/ustring#`operator=`(6082a55360a9226). gstdef->nickcxx . . $ _GstFormatDefinition#nick.; |
| 92 | def.descriptioncxx . . $ Gst/FormatDefinition#description. =cxx . . $ Glib/ustring#`operator=`(6082a55360a9226). gstdef->descriptioncxx . . $ _GstFormatDefinition#description.; |
| 93 | def.quarkcxx . . $ Gst/FormatDefinition#quark. =cxx . . $ Glib/QueryQuark#`operator=`(f50e554c22164661). gstdefcxx . . $ Glib/QueryQuark#QueryQuark(8e697350d7af5000).->quarkcxx . . $ _GstFormatDefinition#quark.; |
| 94 | |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | IteratorBasiccxx . . $ Gst/IteratorBasic#<const FormatDefinitioncxx . . $ Gst/FormatDefinition#> iterate_format_definitionscxx . . $ Gst/iterate_format_definitions(43549bff93857311).() |
| 99 | { |
| 100 | return IteratorBasiccxx . . $ Gst/IteratorBasic#<const FormatDefinitioncxx . . $ Gst/FormatDefinition#>(gst_format_iterate_definitions()); |
| 101 | } |
| 102 | |
| 103 | } //namespace Gst |
| 104 | |
| 105 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/format.cc`/ |
| 106 | { |
| 107 | } // anonymous namespace |
| 108 | |
| 109 | // static |
| 110 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::Format>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 111 | { |
| 112 | return gst_format_get_type(); |
| 113 | } |
| 114 | |
| 115 | |
| 116 | namespace Gstcxx . . $ Gst/ |
| 117 | { |
| 118 | |
| 119 | |
| 120 | } // namespace Gst |
| 121 | |
| 122 |