| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/caps.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/caps.h>cxx . . $ `<file>/gstreamer/gstreamermm/caps.h`/ |
| 7 | #include <gstreamermm/private/caps_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/caps_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 | #include <gstreamermm/capsfeatures.h>cxx . . $ `<file>/gstreamer/gstreamermm/capsfeatures.h`/ |
| 30 | |
| 31 | namespace Gstcxx . . $ Gst/ |
| 32 | { |
| 33 | |
| 34 | GType Capscxx . . $ Gst/Caps#::get_typecxx . . $ Gst/Caps#get_type(f708dce9a8856c70).() |
| 35 | { |
| 36 | return gst_caps_get_type(); |
| 37 | } |
| 38 | |
| 39 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::create_writablecxx . . $ Gst/Caps#create_writable(22811ab509ec2061).() |
| 40 | { |
| 41 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Caps>::cast_staticcxx . . $ Glib/RefPtr#cast_static(da41b183d847780f).(MiniObjectcxx . . $ Gst/MiniObject#::create_writablecxx . . $ Gst/MiniObject#create_writable(92f2c868643191bf).()); |
| 42 | } |
| 43 | |
| 44 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::createcxx . . $ Gst/Caps#create(ee8ecc7e93d1581c).(const Structurecxx . . $ Gst/Structure#& structure) |
| 45 | { |
| 46 | //We take a copy because gst_caps_append_structure() wants to take ownership: |
| 47 | GstStructure* copy = gst_structure_copy(structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 48 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_new_full(copy, nullptr)); |
| 49 | } |
| 50 | |
| 51 | void Capscxx . . $ Gst/Caps#::append_structurecxx . . $ Gst/Caps#append_structure(d8c6d4e94c9eb7a4).(const Structurecxx . . $ Gst/Structure#& structure) |
| 52 | { |
| 53 | //We take a copy because gst_caps_append_structure() wants to take ownership: |
| 54 | GstStructure* copy = gst_structure_copy(structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 55 | gst_caps_append_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), copy); |
| 56 | } |
| 57 | |
| 58 | void Capscxx . . $ Gst/Caps#::append_structurecxx . . $ Gst/Caps#append_structure(9d476a4a4616fbd1).(const Structurecxx . . $ Gst/Structure#& structure, const CapsFeaturescxx . . $ Gst/CapsFeatures#& features) |
| 59 | { |
| 60 | //We take a copy because gst_caps_append_structure_full() wants to take ownership: |
| 61 | GstStructure* copy_structure = gst_structure_copy(structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 62 | GstCapsFeatures* copy_features = gst_caps_features_copy(features.gobjcxx . . $ Gst/CapsFeatures#gobj(41d49875922471f7).()); |
| 63 | gst_caps_append_structure_full(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), copy_structure, copy_features); |
| 64 | } |
| 65 | |
| 66 | |
| 67 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::merge_structurecxx . . $ Gst/Caps#merge_structure(ee8ecc7e93d1581c).(const Structurecxx . . $ Gst/Structure#& structure) |
| 68 | { |
| 69 | //We take a copy because gst_caps_merge_structure() wants to take ownership: |
| 70 | GstStructure* copy = gst_structure_copy(structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 71 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_merge_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), copy), true); |
| 72 | } |
| 73 | |
| 74 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::merge_structurecxx . . $ Gst/Caps#merge_structure(6a64a0ba1cf56d51).(const Structurecxx . . $ Gst/Structure#& structure, const CapsFeaturescxx . . $ Gst/CapsFeatures#& features) |
| 75 | { |
| 76 | //We take a copy because gst_caps_merge_structure_full() wants to take ownership: |
| 77 | GstStructure* copy_structure = gst_structure_copy(structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 78 | GstCapsFeatures* copy_features = gst_caps_features_copy(features.gobjcxx . . $ Gst/CapsFeatures#gobj(41d49875922471f7).()); |
| 79 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_merge_structure_full(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), copy_structure, copy_features), true); |
| 80 | } |
| 81 | |
| 82 | //TODO: Want to return RefPtr to Caps but using RefPtr in expressions such |
| 83 | // as 'caps->set_simple(name1, value1)->set_simple(name2, value2)' a |
| 84 | // causes gstreamer Structure immutability warnings because the Caps is |
| 85 | // referenced more than once in the expression (see bug #510301). |
| 86 | /* |
| 87 | This method is implemented in place of gst_caps_set_simple which is a |
| 88 | variable argument function and cannot be wrapped. We don't call |
| 89 | gst_caps_set_simple() directly because we are using a Glib::ValueBase as the |
| 90 | value to be set instead of listing out each field in the value as would be |
| 91 | done with gst_caps_set_simple() |
| 92 | */ |
| 93 | //Glib::RefPtr<Gst::Caps> |
| 94 | void |
| 95 | Capscxx . . $ Gst/Caps#::set_simplecxx . . $ Gst/Caps#set_simple(e222b134ab14ed99).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const Glibcxx . . $ Glib/::ValueBasecxx . . $ Glib/ValueBase#& value) |
| 96 | { |
| 97 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (g_atomic_int_getcxx . . $ `<external>/742587799302188836/gatomic.h:109:9`!(&(this->gobj())->mini_object.refcount) == 1); // IS_WRITABLE(caps) fails |
| 98 | |
| 99 | //The result of gst_caps_get_structure() should not be modified, according to |
| 100 | //its documentation, but we are reimplementing gst_caps_set_simple() which |
| 101 | //does that: |
| 102 | GstStructure* structure = gst_caps_get_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), 0); |
| 103 | if(structure) |
| 104 | gst_structure_set_value(structure, name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), value.gobjcxx . . $ Glib/ValueBase#gobj(2653be92411ed030).()); |
| 105 | |
| 106 | //return Glib::wrap(gobj(), true); |
| 107 | } |
| 108 | |
| 109 | void |
| 110 | Capscxx . . $ Gst/Caps#::set_simplecxx . . $ Gst/Caps#set_simple(b1c04360379bfbf5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const char* data) |
| 111 | { |
| 112 | set_simplecxx . . $ Gst/Caps#set_simple(dffb418441c328e3).(name, stdcxx . . $ std/::stringcxx . . $ std/string#(data)); |
| 113 | } |
| 114 | |
| 115 | CapsFeaturescxx . . $ Gst/CapsFeatures# Capscxx . . $ Gst/Caps#::get_featurescxx . . $ Gst/Caps#get_features(2d027c8612663fa7).(guint index) const |
| 116 | { |
| 117 | GstCapsFeatures* features = gst_caps_get_features(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).(), index); |
| 118 | return CapsFeaturescxx . . $ Gst/CapsFeatures#CapsFeatures(badb5f1e2117ae7).(features, true); |
| 119 | } |
| 120 | |
| 121 | void Capscxx . . $ Gst/Caps#::set_featurescxx . . $ Gst/Caps#set_features(6efae3e899c77924).(guint index, const CapsFeaturescxx . . $ Gst/CapsFeatures#& features) |
| 122 | { |
| 123 | GstCapsFeatures* copy = gst_caps_features_copy(features.gobjcxx . . $ Gst/CapsFeatures#gobj(41d49875922471f7).()); |
| 124 | gst_caps_set_features(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), index, copy); |
| 125 | } |
| 126 | |
| 127 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::truncatecxx . . $ Gst/Caps#truncate(22811ab509ec2061).() |
| 128 | { |
| 129 | referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).(); |
| 130 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_truncate(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).())); |
| 131 | } |
| 132 | |
| 133 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::mergecxx . . $ Gst/Caps#merge(e3edbd80557f513e).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>&& caps) |
| 134 | { |
| 135 | if (is_writablecxx . . $ Gst/MiniObject#is_writable(50ce9a9e25b4a850).()) |
| 136 | { |
| 137 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_merge(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), caps.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).()), true); |
| 138 | } |
| 139 | else |
| 140 | { |
| 141 | referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).(); |
| 142 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_merge(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), caps.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).()), false); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | } //namespace Gst |
| 147 | |
| 148 | namespace Glibcxx . . $ Glib/ |
| 149 | { |
| 150 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Valuecxx . . $ Glib/Value#< Glib::RefPtr<Gst::Caps> >::getcxx . . $ Glib/Value#get(22811ab509ec2061).() |
| 151 | { |
| 152 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(reinterpret_cast<GstCaps*>(get_boxedcxx . . $ Glib/ValueBase_Boxed#get_boxed(45a5c5ac6be858a8).()), true); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/caps.cc`/ |
| 157 | { |
| 158 | } // anonymous namespace |
| 159 | |
| 160 | // static |
| 161 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::CapsFlags>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 162 | { |
| 163 | return gst_caps_flags_get_type(); |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /* Why reinterpret_cast<Caps*>(gobject) is needed: |
| 168 | * |
| 169 | * A Caps instance is in fact always a GstCaps instance. |
| 170 | * Unfortunately, GstCaps cannot be a member of Caps, |
| 171 | * because it is an opaque struct. Also, the C interface does not provide |
| 172 | * any hooks to install a destroy notification handler, thus we cannot |
| 173 | * wrap it dynamically either. |
| 174 | * |
| 175 | * The cast works because Caps does not have any member data, and |
| 176 | * it is impossible to derive from it. This is ensured by using final on the |
| 177 | * class and by using = delete on the default constructor. |
| 178 | */ |
| 179 | |
| 180 | namespace Glibcxx . . $ Glib/ |
| 181 | { |
| 182 | |
| 183 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(GstCaps* object, bool take_copy) |
| 184 | { |
| 185 | if(take_copy && object) |
| 186 | gst_caps_ref(object); |
| 187 | |
| 188 | // See the comment at the top of this file, if you want to know why the cast works. |
| 189 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>(reinterpret_cast<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#*>(object)); |
| 190 | } |
| 191 | |
| 192 | } // namespace Glib |
| 193 | |
| 194 | |
| 195 | namespace Gstcxx . . $ Gst/ |
| 196 | { |
| 197 | |
| 198 | |
| 199 | // static |
| 200 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::createcxx . . $ Gst/Caps#create(22811ab509ec2061).() |
| 201 | { |
| 202 | // See the comment at the top of this file, if you want to know why the cast works. |
| 203 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Capscxx . . $ Gst/Caps#>(reinterpret_cast<Capscxx . . $ Gst/Caps#*>(gst_caps_new_empty())); |
| 204 | } |
| 205 | |
| 206 | void Capscxx . . $ Gst/Caps#::referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).() const |
| 207 | { |
| 208 | // See the comment at the top of this file, if you want to know why the cast works. |
| 209 | gst_caps_ref(reinterpret_cast<GstCaps*>(const_cast<Capscxx . . $ Gst/Caps#*>(this))); |
| 210 | } |
| 211 | |
| 212 | void Capscxx . . $ Gst/Caps#::unreferencecxx . . $ Gst/Caps#unreference(83f5f38750778ac8).() const |
| 213 | { |
| 214 | // See the comment at the top of this file, if you want to know why the cast works. |
| 215 | gst_caps_unref(reinterpret_cast<GstCaps*>(const_cast<Capscxx . . $ Gst/Caps#*>(this))); |
| 216 | } |
| 217 | |
| 218 | GstCaps* Capscxx . . $ Gst/Caps#::gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).() |
| 219 | { |
| 220 | // See the comment at the top of this file, if you want to know why the cast works. |
| 221 | return reinterpret_cast<GstCaps*>(this); |
| 222 | } |
| 223 | |
| 224 | const GstCaps* Capscxx . . $ Gst/Caps#::gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).() const |
| 225 | { |
| 226 | // See the comment at the top of this file, if you want to know why the cast works. |
| 227 | return reinterpret_cast<const GstCaps*>(this); |
| 228 | } |
| 229 | |
| 230 | GstCaps* Capscxx . . $ Gst/Caps#::gobj_copycxx . . $ Gst/Caps#gobj_copy(dce17e13e2b5fae0).() const |
| 231 | { |
| 232 | // See the comment at the top of this file, if you want to know why the cast works. |
| 233 | const auto gobject = reinterpret_cast<GstCaps*>(const_cast<Capscxx . . $ Gst/Caps#*>(this)); |
| 234 | gst_caps_ref(gobject); |
| 235 | return gobject; |
| 236 | } |
| 237 | |
| 238 | |
| 239 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::create_from_stringcxx . . $ Gst/Caps#create_from_string(a49b704ba9f0cfd0).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& string) |
| 240 | { |
| 241 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_from_string(string.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 242 | } |
| 243 | |
| 244 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::copy_nthcxx . . $ Gst/Caps#copy_nth(437731b153f3afb9).(guint nth) const |
| 245 | { |
| 246 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_copy_nth(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), nth)); |
| 247 | } |
| 248 | |
| 249 | void Capscxx . . $ Gst/Caps#::appendcxx . . $ Gst/Caps#append(ffdefd59b5fd5c1).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>&& caps) |
| 250 | { |
| 251 | gst_caps_append(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), (caps) ? caps.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).() : nullptr); |
| 252 | } |
| 253 | |
| 254 | void Capscxx . . $ Gst/Caps#::append_structurecxx . . $ Gst/Caps#append_structure(1ee7a862bcd63096).(Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#&& structure) |
| 255 | { |
| 256 | gst_caps_append_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), (structure) ? structure.releasecxx . . $ Gst/Structure#release(2691563db4321b22).() : nullptr); |
| 257 | } |
| 258 | |
| 259 | const Structurecxx . . $ Gst/Structure# Capscxx . . $ Gst/Caps#::get_structurecxx . . $ Gst/Caps#get_structure(1c73294166a8b10b).(guint idx) const |
| 260 | { |
| 261 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(51e1331ca9e65d80).(gst_caps_get_structure(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), idx), true); |
| 262 | } |
| 263 | |
| 264 | void Capscxx . . $ Gst/Caps#::remove_structurecxx . . $ Gst/Caps#remove_structure(cb2f890c2fdad230).(guint idx) |
| 265 | { |
| 266 | gst_caps_remove_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), idx); |
| 267 | } |
| 268 | |
| 269 | guint Capscxx . . $ Gst/Caps#::sizecxx . . $ Gst/Caps#size(ddd8539a2fcdd4ce).() const |
| 270 | { |
| 271 | return gst_caps_get_size(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).())); |
| 272 | } |
| 273 | |
| 274 | Structurecxx . . $ Gst/Structure# Capscxx . . $ Gst/Caps#::steal_structurecxx . . $ Gst/Caps#steal_structure(2e8f131df2e3b9e).(guint index) |
| 275 | { |
| 276 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(51e1331ca9e65d80).(gst_caps_steal_structure(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), index)); |
| 277 | } |
| 278 | |
| 279 | void Capscxx . . $ Gst/Caps#::set_valuecxx . . $ Gst/Caps#set_value(e222b134ab14ed99).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& field, const Glibcxx . . $ Glib/::ValueBasecxx . . $ Glib/ValueBase#& value) |
| 280 | { |
| 281 | gst_caps_set_value(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).(), field.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), (value).gobjcxx . . $ Glib/ValueBase#gobj(2653be92411ed030).()); |
| 282 | } |
| 283 | |
| 284 | bool Capscxx . . $ Gst/Caps#::is_anycxx . . $ Gst/Caps#is_any(50ce9a9e25b4a850).() const |
| 285 | { |
| 286 | return gst_caps_is_any(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).())); |
| 287 | } |
| 288 | |
| 289 | bool Capscxx . . $ Gst/Caps#::emptycxx . . $ Gst/Caps#empty(50ce9a9e25b4a850).() const |
| 290 | { |
| 291 | return gst_caps_is_empty(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).())); |
| 292 | } |
| 293 | |
| 294 | bool Capscxx . . $ Gst/Caps#::is_fixedcxx . . $ Gst/Caps#is_fixed(50ce9a9e25b4a850).() const |
| 295 | { |
| 296 | return gst_caps_is_fixed(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).())); |
| 297 | } |
| 298 | |
| 299 | bool Capscxx . . $ Gst/Caps#::equalscxx . . $ Gst/Caps#equals(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& other_caps) const |
| 300 | { |
| 301 | return gst_caps_is_equal(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(other_caps)); |
| 302 | } |
| 303 | |
| 304 | bool Capscxx . . $ Gst/Caps#::equals_fixedcxx . . $ Gst/Caps#equals_fixed(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& other_caps) const |
| 305 | { |
| 306 | return gst_caps_is_equal_fixed(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(other_caps)); |
| 307 | } |
| 308 | |
| 309 | bool Capscxx . . $ Gst/Caps#::is_always_compatiblecxx . . $ Gst/Caps#is_always_compatible(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& other_caps) const |
| 310 | { |
| 311 | return gst_caps_is_always_compatible(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(other_caps)); |
| 312 | } |
| 313 | |
| 314 | bool Capscxx . . $ Gst/Caps#::is_subsetcxx . . $ Gst/Caps#is_subset(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& superset_caps) const |
| 315 | { |
| 316 | return gst_caps_is_subset(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(superset_caps)); |
| 317 | } |
| 318 | |
| 319 | bool Capscxx . . $ Gst/Caps#::can_intersectcxx . . $ Gst/Caps#can_intersect(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps2) const |
| 320 | { |
| 321 | return gst_caps_can_intersect(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps2)); |
| 322 | } |
| 323 | |
| 324 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::fixatecxx . . $ Gst/Caps#fixate(4265aad93b8ec881).() const |
| 325 | { |
| 326 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_fixate(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()))); |
| 327 | } |
| 328 | |
| 329 | bool Capscxx . . $ Gst/Caps#::is_strictly_equalcxx . . $ Gst/Caps#is_strictly_equal(d9e03a89d073e5a7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps2) const |
| 330 | { |
| 331 | return gst_caps_is_strictly_equal(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps2)); |
| 332 | } |
| 333 | |
| 334 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::copycxx . . $ Gst/Caps#copy(4265aad93b8ec881).() const |
| 335 | { |
| 336 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_copy(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()))); |
| 337 | } |
| 338 | |
| 339 | bool Capscxx . . $ Gst/Caps#::is_subset_structurecxx . . $ Gst/Caps#is_subset_structure(77725922cf66ffcc).(const Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#& structure) const |
| 340 | { |
| 341 | return gst_caps_is_subset_structure(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).()); |
| 342 | } |
| 343 | |
| 344 | bool Capscxx . . $ Gst/Caps#::is_subset_structurecxx . . $ Gst/Caps#is_subset_structure(d84e3903295e5d8).(const Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#& structure, const Gstcxx . . $ Gst/::CapsFeaturescxx . . $ Gst/CapsFeatures#& features) const |
| 345 | { |
| 346 | return gst_caps_is_subset_structure_full(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), structure.gobjcxx . . $ Gst/Structure#gobj(551778976bc023aa).(), features.gobjcxx . . $ Gst/CapsFeatures#gobj(41d49875922471f7).()); |
| 347 | } |
| 348 | |
| 349 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::create_anycxx . . $ Gst/Caps#create_any(22811ab509ec2061).() |
| 350 | { |
| 351 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_new_any()); |
| 352 | } |
| 353 | |
| 354 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::get_intersectcxx . . $ Gst/Caps#get_intersect(fed25865e65c145b).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& other_caps) const |
| 355 | { |
| 356 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_intersect(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(other_caps)))); |
| 357 | } |
| 358 | |
| 359 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::get_intersectcxx . . $ Gst/Caps#get_intersect(2df9179fc69fd503).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& other_caps, CapsIntersectModecxx . . $ Gst/CapsIntersectMode# p2) const |
| 360 | { |
| 361 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_intersect_full(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(other_caps)), ((GstCapsIntersectMode)(p2)))); |
| 362 | } |
| 363 | |
| 364 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::get_normalcxx . . $ Gst/Caps#get_normal(4265aad93b8ec881).() const |
| 365 | { |
| 366 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_normalize(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()))); |
| 367 | } |
| 368 | |
| 369 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::simplifycxx . . $ Gst/Caps#simplify(22811ab509ec2061).() |
| 370 | { |
| 371 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_simplify(gobjcxx . . $ Gst/Caps#gobj(704ee61edb5225b).())); |
| 372 | } |
| 373 | |
| 374 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# Capscxx . . $ Gst/Caps#::to_stringcxx . . $ Gst/Caps#to_string(fff0f585954e56f3).() const |
| 375 | { |
| 376 | return Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_caps_to_string(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()))); |
| 377 | } |
| 378 | |
| 379 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> Capscxx . . $ Gst/Caps#::get_differencecxx . . $ Gst/Caps#get_difference(fed25865e65c145b).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& subtrahend_caps) const |
| 380 | { |
| 381 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_caps_subtract(const_cast<GstCaps*>(gobjcxx . . $ Gst/Caps#gobj(e59260aeebe307).()), const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(subtrahend_caps)))); |
| 382 | } |
| 383 | |
| 384 | |
| 385 | } // namespace Gst |
| 386 | |
| 387 |