| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/value.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/value.h>cxx . . $ `<file>/gstreamer/gstreamermm/value.h`/ |
| 7 | #include <gstreamermm/private/value_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/value_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 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 | namespace Gstcxx . . $ Gst/ |
| 30 | { |
| 31 | |
| 32 | Fourcccxx . . $ Gst/Fourcc#::Fourcccxx . . $ Gst/Fourcc#Fourcc(49f6e7a06ebc5aa8).() |
| 33 | : firstcxx . . $ Gst/Fourcc#first.(0), secondcxx . . $ Gst/Fourcc#second.(0), thirdcxx . . $ Gst/Fourcc#third.(0), fourthcxx . . $ Gst/Fourcc#fourth.(0) |
| 34 | {} |
| 35 | |
| 36 | Fourcccxx . . $ Gst/Fourcc#& Fourcccxx . . $ Gst/Fourcc#::operatorcxx . . $ Gst/Fourcc#`operator=`(9addaf9861381963).=(const Fourcccxx . . $ Gst/Fourcc#& src) |
| 37 | { |
| 38 | firstcxx . . $ Gst/Fourcc#first. = src.firstcxx . . $ Gst/Fourcc#first.; |
| 39 | secondcxx . . $ Gst/Fourcc#second. = src.secondcxx . . $ Gst/Fourcc#second.; |
| 40 | thirdcxx . . $ Gst/Fourcc#third. = src.thirdcxx . . $ Gst/Fourcc#third.; |
| 41 | fourthcxx . . $ Gst/Fourcc#fourth. = src.fourthcxx . . $ Gst/Fourcc#fourth.; |
| 42 | |
| 43 | return *this; |
| 44 | } |
| 45 | |
| 46 | Fourcccxx . . $ Gst/Fourcc#::Fourcccxx . . $ Gst/Fourcc#Fourcc(69126b37bb499ac).(char first, char second, char third, char fourth) |
| 47 | : firstcxx . . $ Gst/Fourcc#first.(first), secondcxx . . $ Gst/Fourcc#second.(second), thirdcxx . . $ Gst/Fourcc#third.(third), fourthcxx . . $ Gst/Fourcc#fourth.(fourth) |
| 48 | {} |
| 49 | |
| 50 | Fourcccxx . . $ Gst/Fourcc#::Fourcccxx . . $ Gst/Fourcc#Fourcc(1ff0bff2cee2bc51).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& s) |
| 51 | : firstcxx . . $ Gst/Fourcc#first.(0), secondcxx . . $ Gst/Fourcc#second.(0), thirdcxx . . $ Gst/Fourcc#third.(0), fourthcxx . . $ Gst/Fourcc#fourth.(0) |
| 52 | { |
| 53 | guint32 fourcc = GST_STR_FOURCCcxx . . $ `<external>/14168157542697705303/gstvalue.h:62:9`!(s.c_str()); |
| 54 | set_ccscxx . . $ Gst/Fourcc#set_ccs(cb2f890c2fdad230).(fourcc); |
| 55 | |
| 56 | } |
| 57 | |
| 58 | Fourcccxx . . $ Gst/Fourcc#::Fourcccxx . . $ Gst/Fourcc#Fourcc(cb2f890c2fdad230).(guint32 fourcc) |
| 59 | : firstcxx . . $ Gst/Fourcc#first.(0), secondcxx . . $ Gst/Fourcc#second.(0), thirdcxx . . $ Gst/Fourcc#third.(0), fourthcxx . . $ Gst/Fourcc#fourth.(0) |
| 60 | { |
| 61 | set_ccscxx . . $ Gst/Fourcc#set_ccs(cb2f890c2fdad230).(fourcc); |
| 62 | } |
| 63 | |
| 64 | Fourcccxx . . $ Gst/Fourcc#::Fourcccxx . . $ Gst/Fourcc#Fourcc(7e71b10a75a3dbcc).(const Fourcccxx . . $ Gst/Fourcc#& f) |
| 65 | : firstcxx . . $ Gst/Fourcc#first.(f.firstcxx . . $ Gst/Fourcc#first.), secondcxx . . $ Gst/Fourcc#second.(f.secondcxx . . $ Gst/Fourcc#second.), thirdcxx . . $ Gst/Fourcc#third.(f.thirdcxx . . $ Gst/Fourcc#third.), fourthcxx . . $ Gst/Fourcc#fourth.(f.fourthcxx . . $ Gst/Fourcc#fourth.) |
| 66 | {} |
| 67 | |
| 68 | void Fourcccxx . . $ Gst/Fourcc#::set_ccscxx . . $ Gst/Fourcc#set_ccs(cb2f890c2fdad230).(guint32 fourcc) |
| 69 | { |
| 70 | firstcxx . . $ Gst/Fourcc#first. = fourcc & 0xff; |
| 71 | secondcxx . . $ Gst/Fourcc#second. = (fourcc >> 8) & 0xff; |
| 72 | thirdcxx . . $ Gst/Fourcc#third. = (fourcc >> 16) & 0xff; |
| 73 | fourthcxx . . $ Gst/Fourcc#fourth. = (fourcc >> 24) & 0xff; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | Fractioncxx . . $ Gst/Fraction#::Fractioncxx . . $ Gst/Fraction#Fraction(49f6e7a06ebc5aa8).() |
| 78 | : numcxx . . $ Gst/Fraction#num.(0), denomcxx . . $ Gst/Fraction#denom.(1) |
| 79 | {} |
| 80 | |
| 81 | Fractioncxx . . $ Gst/Fraction#::Fractioncxx . . $ Gst/Fraction#Fraction(3e454b8ccf442868).(int num, int denom) |
| 82 | : numcxx . . $ Gst/Fraction#num.(num), denomcxx . . $ Gst/Fraction#denom.(denom) |
| 83 | {} |
| 84 | |
| 85 | Fractioncxx . . $ Gst/Fraction#::Fractioncxx . . $ Gst/Fraction#Fraction(f311997da585039c).(const Fractioncxx . . $ Gst/Fraction#& src) |
| 86 | : numcxx . . $ Gst/Fraction#num.(src.numcxx . . $ Gst/Fraction#num.), denomcxx . . $ Gst/Fraction#denom.(src.denomcxx . . $ Gst/Fraction#denom.) |
| 87 | {} |
| 88 | |
| 89 | Fractioncxx . . $ Gst/Fraction#::Fractioncxx . . $ Gst/Fraction#Fraction(ce1a39f4061a801e).(const Glibcxx . . $ Glib/::ValueBasecxx . . $ Glib/ValueBase#& value) |
| 90 | : numcxx . . $ Gst/Fraction#num.(0), denomcxx . . $ Gst/Fraction#denom.(1) |
| 91 | { |
| 92 | if(GST_VALUE_HOLDS_FRACTIONcxx . . $ `<external>/14168157542697705303/gstvalue.h:196:9`!(value.gobj())) |
| 93 | { |
| 94 | numcxx . . $ Gst/Fraction#num. = gst_value_get_fraction_numerator(value.gobjcxx . . $ Glib/ValueBase#gobj(2653be92411ed030).()); |
| 95 | denomcxx . . $ Gst/Fraction#denom. = gst_value_get_fraction_denominator(value.gobjcxx . . $ Glib/ValueBase#gobj(2653be92411ed030).()); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | Fractioncxx . . $ Gst/Fraction#::Fractioncxx . . $ Gst/Fraction#Fraction(cb1ebed02b53c336).(const GValue& value) |
| 100 | : numcxx . . $ Gst/Fraction#num.(0), denomcxx . . $ Gst/Fraction#denom.(1) |
| 101 | { |
| 102 | //if(GST_VALUE_HOLDS_FRACTION(&value)) |
| 103 | { |
| 104 | numcxx . . $ Gst/Fraction#num. = gst_value_get_fraction_numerator(&value); |
| 105 | denomcxx . . $ Gst/Fraction#denom. = gst_value_get_fraction_denominator(&value); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | Fractioncxx . . $ Gst/Fraction#& Fractioncxx . . $ Gst/Fraction#::operatorcxx . . $ Gst/Fraction#`operator=`(ad658318082dddf7).=(const Fractioncxx . . $ Gst/Fraction#& src) |
| 110 | { |
| 111 | numcxx . . $ Gst/Fraction#num. = src.numcxx . . $ Gst/Fraction#num.; |
| 112 | denomcxx . . $ Gst/Fraction#denom. = src.denomcxx . . $ Gst/Fraction#denom.; |
| 113 | |
| 114 | return *this; |
| 115 | } |
| 116 | |
| 117 | template <> |
| 118 | void Rangecxx . . $ Gst/Range#<int>::init_rangecxx . . $ Gst/Range#init_range(cb1ebed02b53c336).(const GValue& value) |
| 119 | { |
| 120 | if(G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`!(&value, GST_TYPE_INT_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:250:9`!)) |
| 121 | { |
| 122 | mincxx . . $ Gst/Range#min. = gst_value_get_int_range_min(&value); |
| 123 | maxcxx . . $ Gst/Range#max. = gst_value_get_int_range_max(&value); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | template <> |
| 128 | void Rangecxx . . $ Gst/Range#<double>::init_rangecxx . . $ Gst/Range#init_range(cb1ebed02b53c336).(const GValue& value) |
| 129 | { |
| 130 | if(G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`!(&value, GST_TYPE_DOUBLE_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:284:9`!)) |
| 131 | { |
| 132 | mincxx . . $ Gst/Range#min. = gst_value_get_double_range_min(&value); |
| 133 | maxcxx . . $ Gst/Range#max. = gst_value_get_double_range_max(&value); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | template <> |
| 138 | void Rangecxx . . $ Gst/Range#<Gst::Fraction>::init_rangecxx . . $ Gst/Range#init_range(cb1ebed02b53c336).(const GValue& value) |
| 139 | { |
| 140 | if(G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`!(&value, GST_TYPE_FRACTION_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:301:9`!)) |
| 141 | { |
| 142 | const GValue* min = gst_value_get_fraction_range_min(&value); |
| 143 | const GValue* max = gst_value_get_fraction_range_max(&value); |
| 144 | |
| 145 | this->mincxx . . $ Gst/Range#min..numcxx . . $ Gst/Fraction#num. = gst_value_get_fraction_numerator(min); |
| 146 | this->mincxx . . $ Gst/Range#min..denomcxx . . $ Gst/Fraction#denom. = gst_value_get_fraction_denominator(min); |
| 147 | |
| 148 | this->maxcxx . . $ Gst/Range#max..numcxx . . $ Gst/Fraction#num. = gst_value_get_fraction_numerator(max); |
| 149 | this->maxcxx . . $ Gst/Range#max..denomcxx . . $ Gst/Fraction#denom. = gst_value_get_fraction_denominator(max); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | } //namespace Gst |
| 154 | |
| 155 | namespace Glibcxx . . $ Glib/ |
| 156 | { |
| 157 | |
| 158 | // static |
| 159 | GType Valuecxx . . $ Glib/Value#<Gst::Range<int>>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 160 | { |
| 161 | return GST_TYPE_INT_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:250:9`!; |
| 162 | } |
| 163 | |
| 164 | void Valuecxx . . $ Glib/Value#<Gst::Range<int>>::setcxx . . $ Glib/Value#set(b66b2687a045994).(const Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<int>& data) |
| 165 | { |
| 166 | gst_value_set_int_range(&gobject_cxx . . $ Glib/ValueBase#gobject_., data.mincxx . . $ Gst/Range#min., data.maxcxx . . $ Gst/Range#max.); |
| 167 | } |
| 168 | |
| 169 | Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<int> Valuecxx . . $ Glib/Value#<Gst::Range<int>>::getcxx . . $ Glib/Value#get(a4bc615bdecd76b6).() const |
| 170 | { |
| 171 | return Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<int>(gobject_cxx . . $ Glib/ValueBase#gobject_.); |
| 172 | } |
| 173 | |
| 174 | // static |
| 175 | GType Valuecxx . . $ Glib/Value#<Gst::Range<double>>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 176 | { |
| 177 | return GST_TYPE_DOUBLE_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:284:9`!; |
| 178 | } |
| 179 | |
| 180 | void Valuecxx . . $ Glib/Value#<Gst::Range<double>>::setcxx . . $ Glib/Value#set(b80a3eee3629b109).(const Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<double>& data) |
| 181 | { |
| 182 | gst_value_set_double_range(&gobject_cxx . . $ Glib/ValueBase#gobject_., data.mincxx . . $ Gst/Range#min., data.maxcxx . . $ Gst/Range#max.); |
| 183 | } |
| 184 | |
| 185 | Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<double> Valuecxx . . $ Glib/Value#<Gst::Range<double>>::getcxx . . $ Glib/Value#get(abf1827713cf72c2).() const |
| 186 | { |
| 187 | return Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<double>(gobject_cxx . . $ Glib/ValueBase#gobject_.); |
| 188 | } |
| 189 | |
| 190 | // static |
| 191 | GType Valuecxx . . $ Glib/Value#<Gst::Fraction>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 192 | { |
| 193 | return GST_TYPE_FRACTIONcxx . . $ `<external>/14168157542697705303/gstvalue.h:385:9`!; |
| 194 | } |
| 195 | |
| 196 | void Valuecxx . . $ Glib/Value#<Gst::Fraction>::setcxx . . $ Glib/Value#set(f311997da585039c).(const Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction#& data) |
| 197 | { |
| 198 | gst_value_set_fraction(&gobject_cxx . . $ Glib/ValueBase#gobject_., data.numcxx . . $ Gst/Fraction#num., data.denomcxx . . $ Gst/Fraction#denom.); |
| 199 | } |
| 200 | |
| 201 | Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction# Valuecxx . . $ Glib/Value#<Gst::Fraction>::getcxx . . $ Glib/Value#get(500f54724967c4c8).() const |
| 202 | { |
| 203 | return Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction#(gobject_cxx . . $ Glib/ValueBase#gobject_.); |
| 204 | } |
| 205 | |
| 206 | // static |
| 207 | GType Valuecxx . . $ Glib/Value#<Gst::Range<Gst::Fraction>>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 208 | { |
| 209 | return GST_TYPE_FRACTION_RANGEcxx . . $ `<external>/14168157542697705303/gstvalue.h:301:9`!; |
| 210 | } |
| 211 | |
| 212 | void Valuecxx . . $ Glib/Value#<Gst::Range<Gst::Fraction>>::setcxx . . $ Glib/Value#set(1263bab206ad4921).(const Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction#>& data) |
| 213 | { |
| 214 | gst_value_set_fraction_range_full(&gobject_cxx . . $ Glib/ValueBase#gobject_., data.mincxx . . $ Gst/Range#min..numcxx . . $ Gst/Fraction#num., data.mincxx . . $ Gst/Range#min..denomcxx . . $ Gst/Fraction#denom., |
| 215 | data.maxcxx . . $ Gst/Range#max..numcxx . . $ Gst/Fraction#num., data.maxcxx . . $ Gst/Range#max..denomcxx . . $ Gst/Fraction#denom.); |
| 216 | } |
| 217 | |
| 218 | Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction#> Valuecxx . . $ Glib/Value#<Gst::Range<Gst::Fraction>>::getcxx . . $ Glib/Value#get(af11f4fa24534110).() const |
| 219 | { |
| 220 | return Gstcxx . . $ Gst/::Rangecxx . . $ Gst/Range#<Gstcxx . . $ Gst/::Fractioncxx . . $ Gst/Fraction#>(gobject_cxx . . $ Glib/ValueBase#gobject_.); |
| 221 | } |
| 222 | |
| 223 | } // namespace Glib |
| 224 | |
| 225 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/value.cc`/ |
| 226 | { |
| 227 | } // anonymous namespace |
| 228 | |
| 229 |