| 1 |
dnl Copyright 2008 The gstreamermm Development Team |
| 2 |
|
| 3 |
dnl Enums |
| 4 |
_CONV_ENUM(Gst,AssocFlags) |
| 5 |
_CONV_ENUM(Gst,AudioCdSrcMode) |
| 6 |
_CONV_ENUM(Gst,AutoplugSelectResult) |
| 7 |
_CONV_ENUM(Gst,AudioBaseSinkSlaveMethod) |
| 8 |
_CONV_ENUM(Gst,AudioBaseSinkDiscontReason) |
| 9 |
_CONV_ENUM(Gst,AudioBaseSrcSlaveMethod) |
| 10 |
_CONV_ENUM(Gst,AudioFlags) |
| 11 |
_CONV_ENUM(Gst,AudioLayout) |
| 12 |
_CONV_ENUM(Gst,BufferCopyFlags) |
| 13 |
_CONV_ENUM(Gst,BufferFlags) |
| 14 |
_CONV_ENUM(Gst,AudioFormat) |
| 15 |
_CONV_ENUM(Gst,AudioFormatFlags) |
| 16 |
_CONV_ENUM(Gst,AudioRingBufferFormatType) |
| 17 |
_CONV_ENUM(Gst,BaseSrcFlags) |
| 18 |
_CONV_ENUM(Gst,CapsFlags) |
| 19 |
_CONV_ENUM(Gst,CapsIntersectMode) |
| 20 |
_CONV_ENUM(Gst,ClockEntryType) |
| 21 |
_CONV_ENUM(Gst,ClockReturn) |
| 22 |
_CONV_ENUM(Gst,ClockTime) |
| 23 |
_CONV_ENUM(Gst,ColorBalanceType) |
| 24 |
_CONV_ENUM(Gst,DiscovererResult) |
| 25 |
_CONV_ENUM(Gst,EventType) |
| 26 |
_CONV_ENUM(Gst,EventTypeFlags) |
| 27 |
_CONV_ENUM(Gst,FlowReturn) |
| 28 |
_CONV_ENUM(Gst,Format) |
| 29 |
_CONV_ENUM(Gst,IndexCertainty) |
| 30 |
_CONV_ENUM(Gst,IndexEntryType) |
| 31 |
_CONV_ENUM(Gst,IndexFlags) |
| 32 |
_CONV_ENUM(Gst,IndexLookupMethod) |
| 33 |
_CONV_ENUM(Gst,IndexResolverMethod) |
| 34 |
_CONV_ENUM(Gst,LockFlags) |
| 35 |
_CONV_ENUM(Gst,MapFlags) |
| 36 |
_CONV_ENUM(Gst,MemoryFlags) |
| 37 |
_CONV_ENUM(Gst,MessageType) |
| 38 |
_CONV_ENUM(Gst,MixerFlags) |
| 39 |
_CONV_ENUM(Gst,MixerType) |
| 40 |
_CONV_ENUM(Gst,MultiHandleSinkClientStatus) |
| 41 |
_CONV_ENUM(Gst,MultiHandleSinkSyncMethod) |
| 42 |
_CONV_ENUM(Gst,NavigationCommand) |
| 43 |
_CONV_ENUM(Gst,NavigationEventType) |
| 44 |
_CONV_ENUM(Gst,NavigationMessageType) |
| 45 |
_CONV_ENUM(Gst,NavigationQueryType) |
| 46 |
_CONV_ENUM(Gst,PadDirection) |
| 47 |
_CONV_ENUM(Gst,PadLinkCheck) |
| 48 |
_CONV_ENUM(Gst,PadLinkReturn) |
| 49 |
_CONV_ENUM(Gst,PadMode) |
| 50 |
_CONV_ENUM(Gst,PadPresence) |
| 51 |
_CONV_ENUM(Gst,PadProbeType) |
| 52 |
_CONV_ENUM(Gst,PlayFlags) |
| 53 |
_CONV_ENUM(Gst,PluginDependencyFlags) |
| 54 |
_CONV_ENUM(Gst,PluginFlags) |
| 55 |
_CONV_ENUM(Gst,ProgressType) |
| 56 |
_CONV_ENUM(Gst,QOSType) |
| 57 |
_CONV_ENUM(Gst,QueryType) |
| 58 |
_CONV_ENUM(Gst,QueryTypeFlags) |
| 59 |
_CONV_ENUM(Gst,Rank) |
| 60 |
_CONV_ENUM(Gst,SchedulingFlags) |
| 61 |
_CONV_ENUM(Gst,SeekFlags) |
| 62 |
_CONV_ENUM(Gst,SeekType) |
| 63 |
_CONV_ENUM(Gst,State) |
| 64 |
_CONV_ENUM(Gst,StateChange) |
| 65 |
_CONV_ENUM(Gst,StateChangeReturn) |
| 66 |
_CONV_ENUM(Gst,StreamFlags) |
| 67 |
_CONV_ENUM(Gst,StreamStatusType) |
| 68 |
_CONV_ENUM(Gst,StreamVolumeFormat) |
| 69 |
_CONV_ENUM(Gst,StructureChangeType) |
| 70 |
_CONV_ENUM(Gst,TagMergeMode) |
| 71 |
_CONV_ENUM(Gst,TaskState) |
| 72 |
_CONV_ENUM(Gst,TocEntryType) |
| 73 |
_CONV_ENUM(Gst,TocLoopType) |
| 74 |
_CONV_ENUM(Gst,TocScope) |
| 75 |
_CONV_ENUM(Gst,TunerChannelFlags) |
| 76 |
_CONV_ENUM(Gst,URIType) |
| 77 |
_CONV_ENUM(Gst,VideoBufferFlags) |
| 78 |
_CONV_ENUM(Gst,VideoChromaSite) |
| 79 |
_CONV_ENUM(Gst,VideoFlags) |
| 80 |
_CONV_ENUM(Gst,VideoFormat) |
| 81 |
_CONV_ENUM(Gst,VideoFormatFlags) |
| 82 |
_CONV_ENUM(Gst,VideoFrameFlags) |
| 83 |
_CONV_ENUM(Gst,VideoFrameMapFlags) |
| 84 |
_CONV_ENUM(Gst,VideoInterlaceMode) |
| 85 |
_CONV_ENUM(Gst,VideoMultiviewFlags) |
| 86 |
_CONV_ENUM(Gst,VideoMultiviewFramePacking) |
| 87 |
_CONV_ENUM(Gst,VideoMultiviewMode) |
| 88 |
_CONV_ENUM(Gst,VideoPackFlags) |
| 89 |
_CONV_ENUM(GstSDP,Result) |
| 90 |
|
| 91 |
dnl Glibmm Enums |
| 92 |
_CONV_GLIB_ENUM(ThreadPriority) |
| 93 |
|
| 94 |
|
| 95 |
dnl ############### gstreamermm Class Conversions ###################### |
| 96 |
|
| 97 |
dnl AllocationParams |
| 98 |
_CONVERSION(`const Gst::AllocationParams&', `GstAllocationParams*', `const_cast<GstAllocationParams*>($3.gobj())') |
| 99 |
_CONVERSION(`GstAllocationParams*', `const Gst::AllocationParams&', `Gst::AllocationParams($3, true)') |
| 100 |
|
| 101 |
dnl Allocator |
| 102 |
_CONVERSION(`const Glib::RefPtr<Gst::Allocator>&',`GstAllocator*', `const_cast<GstAllocator*>(Glib::unwrap($3))') |
| 103 |
_CONVERSION(`Glib::RefPtr<Gst::Allocator>&&',`GstAllocator*',`($3) ? $3.release()->gobj() : nullptr'); |
| 104 |
_CONVERSION(`GstAllocator*', `Glib::RefPtr<Gst::Allocator>', `Glib::wrap($3)') |
| 105 |
_CONVERSION(`GstAllocator*', `Glib::RefPtr<const Gst::Allocator>', `Glib::wrap($3)') |
| 106 |
|
| 107 |
dnl AudioFormatInfo |
| 108 |
_CONVERSION(`const GstAudioFormatInfo*', `const Gst::AudioFormatInfo', `Gst::AudioFormatInfo($3)') |
| 109 |
|
| 110 |
dnl AudioInfo |
| 111 |
_CONVERSION(`const Gst::AudioInfo&', `const GstAudioInfo*', `$3.gobj()') |
| 112 |
_CONVERSION(`const GstAudioInfo*', `const Gst::AudioInfo&', `Gst::AudioInfo(const_cast<GstAudioInfo*>($3))') |
| 113 |
|
| 114 |
dnl AudioRingBuffer |
| 115 |
_CONVERSION(`GstAudioRingBuffer*',`Glib::RefPtr<Gst::AudioRingBuffer>',`Glib::wrap($3)') |
| 116 |
_CONVERSION(`Glib::RefPtr<Gst::AudioRingBuffer>',`GstAudioRingBuffer*',`Glib::unwrap($3)') |
| 117 |
|
| 118 |
dnl AudioRingBufferSpec |
| 119 |
_CONVERSION(`Gst::AudioRingBufferSpec&', `GstAudioRingBufferSpec*', `$3.gobj()') |
| 120 |
|
| 121 |
dnl Buffer |
| 122 |
_CONVERSION(`GstBuffer*',`Glib::RefPtr<Gst::Buffer>',`Glib::wrap($3)') |
| 123 |
_CONVERSION(`GstBuffer*',`const Glib::RefPtr<Gst::Buffer>&',`Glib::wrap($3, true)') |
| 124 |
_CONVERSION(`const Glib::RefPtr<Gst::Buffer>&',`GstBuffer*', `Glib::unwrap($3)') |
| 125 |
_CONVERSION(`const Glib::RefPtr<const Gst::Buffer>&',`GstBuffer*', `const_cast<GstBuffer*>(Glib::unwrap($3))') |
| 126 |
_CONVERSION(`const Glib::RefPtr<Gst::Buffer>&',`const GstBuffer*', `Glib::unwrap($3)') |
| 127 |
_CONVERSION(`Glib::RefPtr<Gst::Buffer>',`GstBuffer*', `Glib::unwrap($3)') |
| 128 |
_CONVERSION(`GstBuffer*', `const Glib::RefPtr<Gst::Buffer>&', `Glib::wrap($3, true)') |
| 129 |
_CONVERSION(`Glib::RefPtr<Gst::Buffer>&&',`GstBuffer*',`($3) ? $3.release()->gobj() : nullptr') |
| 130 |
|
| 131 |
|
| 132 |
dnl BufferList |
| 133 |
_CONVERSION(`Glib::RefPtr<Gst::BufferList>',`GstBufferList*', `Glib::unwrap($3)') |
| 134 |
_CONVERSION(`GstBufferList*', `Glib::RefPtr<Gst::BufferList>', `Glib::wrap($3)') |
| 135 |
_CONVERSION(`const Glib::RefPtr<Gst::BufferList>&', `GstBufferList*', `Glib::unwrap($3)') |
| 136 |
|
| 137 |
dnl Bus |
| 138 |
_CONVERSION(`const Glib::RefPtr<Gst::Bus>&',`GstBus*', `Glib::unwrap($3)') |
| 139 |
_CONVERSION(`GstBus*',`Glib::RefPtr<Gst::Bus>',`Glib::wrap($3)') |
| 140 |
_CONVERSION(`GstBus*',`Glib::RefPtr<const Gst::Bus>',`Glib::wrap($3)') |
| 141 |
|
| 142 |
dnl Caps |
| 143 |
_CONVERSION(`GstCaps*',`Glib::RefPtr<Gst::Caps>',`Glib::wrap($3)') |
| 144 |
_CONVERSION(`GstCaps*',`Glib::RefPtr<const Gst::Caps>',`Glib::wrap($3)') |
| 145 |
_CONVERSION(`GstCaps*',`const Glib::RefPtr<Gst::Caps>&',`Glib::wrap($3, true)') |
| 146 |
_CONVERSION(`GstCaps*',`const Glib::RefPtr<const Gst::Caps>&',`Glib::wrap($3, true)') |
| 147 |
_CONVERSION(`const GstCaps*',`const Glib::RefPtr<const Gst::Caps>&',`Glib::wrap(const_cast<GstCaps*>($3))') |
| 148 |
_CONVERSION(`Glib::RefPtr<Gst::Caps>',`GstCaps*',`Glib::unwrap($3)') |
| 149 |
_CONVERSION(`const Glib::RefPtr<Gst::Caps>&',`GstCaps*', `Glib::unwrap($3)') |
| 150 |
_CONVERSION(`const Glib::RefPtr<const Gst::Caps>&',`GstCaps*', `const_cast<$2>(Glib::unwrap($3))') |
| 151 |
_CONVERSION(`const Glib::RefPtr<Gst::Caps>&',`const GstCaps*', `Glib::unwrap($3)') |
| 152 |
_CONVERSION(`const Glib::RefPtr<const Gst::Caps>&',`const GstCaps*', `Glib::unwrap($3)') |
| 153 |
_CONVERSION(`Glib::RefPtr<Gst::Caps>&&',`GstCaps*',`($3) ? $3.release()->gobj() : nullptr') |
| 154 |
|
| 155 |
dnl CapsFeatures |
| 156 |
_CONVERSION(`const Gst::CapsFeatures&',`const GstCapsFeatures*',`$3.gobj()') |
| 157 |
_CONVERSION(`GstCapsFeatures*',`Gst::CapsFeatures',`CapsFeatures($3, false)') |
| 158 |
|
| 159 |
dnl Clock |
| 160 |
_CONVERSION(`GstClock*',`Glib::RefPtr<Gst::Clock>',`Glib::wrap($3)') |
| 161 |
_CONVERSION(`GstClock*',`Glib::RefPtr<const Gst::Clock>',`Glib::wrap($3)') |
| 162 |
_CONVERSION(`const Glib::RefPtr<Gst::Clock>&',`GstClock*', `Glib::unwrap($3)') |
| 163 |
_CONVERSION(`const Clock&',`GstClock*',`((GstClock*)(&$3))') |
| 164 |
_CONVERSION(`Glib::RefPtr<Gst::Clock>',`GstClock*', `Glib::unwrap($3)') |
| 165 |
|
| 166 |
dnl ClockID |
| 167 |
_CONVERSION(`GstClockID',`Glib::RefPtr<Gst::ClockID>',`Glib::wrap((GstClockEntry*)($3))') |
| 168 |
_CONVERSION(`const Glib::RefPtr<Gst::ClockID>&',`GstClockEntry*',`Glib::unwrap($3)') |
| 169 |
_CONVERSION(`const Glib::RefPtr<Gst::ClockID>&',`GstClockID',`Glib::unwrap($3)') |
| 170 |
|
| 171 |
dnl ColorBalanceChannel |
| 172 |
_CONVERSION(`const Glib::RefPtr<Gst::ColorBalanceChannel>&',`GstColorBalanceChannel*',`Glib::unwrap($3)') |
| 173 |
_CONVERSION(`const Glib::RefPtr<const Gst::ColorBalanceChannel>&',`GstColorBalanceChannel*',`const_cast<GstColorBalanceChannel*>(Glib::unwrap($3))') |
| 174 |
|
| 175 |
dnl Context |
| 176 |
_CONVERSION(`GstContext*',`Glib::RefPtr<Gst::Context>',`Glib::wrap($3)') |
| 177 |
_CONVERSION(`GstContext*',`const Glib::RefPtr<Gst::Context>&',`Glib::wrap($3)') |
| 178 |
_CONVERSION(`const Glib::RefPtr<Gst::Context>&',`GstContext*',`$3->gobj()') |
| 179 |
|
| 180 |
dnl DiscovererInfo |
| 181 |
_CONVERSION(`GstDiscovererInfo*',`Glib::RefPtr<Gst::DiscovererInfo>',`Glib::wrap($3)') |
| 182 |
_CONVERSION(`const Glib::RefPtr<Gst::DiscovererInfo>&',`GstDiscovererInfo*',`Glib::unwrap($3)') |
| 183 |
|
| 184 |
dnl DiscovererStreamInfo |
| 185 |
_CONVERSION(`GstDiscovererStreamInfo*', `Glib::RefPtr<Gst::DiscovererStreamInfo>', `Glib::wrap($3)') |
| 186 |
|
| 187 |
dnl Element |
| 188 |
_CONVERSION(`Glib::RefPtr<Gst::Element>',`GstElement*', `Glib::unwrap($3)') |
| 189 |
_CONVERSION(`GstElement*',`Glib::RefPtr<Gst::Element>',`Glib::wrap($3)') |
| 190 |
_CONVERSION(`GstElement*',`Glib::RefPtr<const Gst::Element>',`Glib::wrap($3)') |
| 191 |
_CONVERSION(`const Glib::RefPtr<Gst::Element>&',`GstElement*', `Glib::unwrap($3)') |
| 192 |
_CONVERSION(`const Glib::RefPtr<const Gst::Element>&',`GstElement*', `const_cast<GstElement*>(Glib::unwrap($3))') |
| 193 |
_CONVERSION(`State&',`GstState*',`(GstState*)(&$3)') |
| 194 |
|
| 195 |
dnl ElementFactory |
| 196 |
_CONVERSION(`GstElementFactory*',`Glib::RefPtr<Gst::ElementFactory>',`Glib::wrap($3)') |
| 197 |
_CONVERSION(`GstElementFactory*',`Glib::RefPtr<const Gst::ElementFactory>',`Glib::wrap($3)') |
| 198 |
_CONVERSION(`const Glib::RefPtr<Gst::ElementFactory>&',`GstElementFactory*', `Glib::unwrap($3)') |
| 199 |
|
| 200 |
dnl EncodingProfile |
| 201 |
_CONVERSION(`const Glib::RefPtr<Gst::EncodingProfile>&', `GstEncodingProfile*', `Glib::unwrap($3)') |
| 202 |
|
| 203 |
dnl Event |
| 204 |
_CONVERSION(`const Glib::RefPtr<Gst::Event>&',`GstEvent*', `Glib::unwrap($3)') |
| 205 |
_CONVERSION(`GstEvent*',`const Glib::RefPtr<Gst::Event>&', `Glib::wrap($3)') |
| 206 |
_CONVERSION(`GstEvent*',`Glib::RefPtr<Gst::Event>', `Glib::wrap($3)') |
| 207 |
_CONVERSION(`Glib::RefPtr<Gst::Event>&&',`GstEvent*',`($3) ? $3.release()->gobj() : nullptr') |
| 208 |
|
| 209 |
dnl Socket |
| 210 |
_CONVERSION(`const Glib::RefPtr<Gio::Socket>&',`GSocket*', `Glib::unwrap($3)') |
| 211 |
|
| 212 |
dnl Index |
| 213 |
_CONVERSION(`GstIndex*',`Glib::RefPtr<Gst::Index>',`Glib::wrap($3)') |
| 214 |
_CONVERSION(`const Glib::RefPtr<Gst::Index>&',`GstIndex*',`Glib::unwrap($3)') |
| 215 |
_CONVERSION(`Glib::RefPtr<Gst::Index>',`GstIndex*',`Glib::unwrap($3)') |
| 216 |
|
| 217 |
dnl IndexFactory |
| 218 |
_CONVERSION(`GstIndexFactory*',`Glib::RefPtr<Gst::IndexFactory>',`Glib::wrap($3)') |
| 219 |
|
| 220 |
dnl Iterator |
| 221 |
_CONVERSION(`GstIterator*',`Gst::Iterator<Gst::Element>',`Gst::Iterator<Gst::Element>($3)') |
| 222 |
_CONVERSION(`GstIterator*',`Gst::Iterator<const Gst::Element>',`Gst::Iterator<const Gst::Element>($3)') |
| 223 |
_CONVERSION(`GstIterator*',`Gst::Iterator<Gst::Pad>',`Gst::Iterator<Gst::Pad>($3)') |
| 224 |
_CONVERSION(`GstIterator*',`Gst::Iterator<const Gst::Pad>',`Gst::Iterator<const Gst::Pad>($3)') |
| 225 |
_CONVERSION(`GstIterator*',`Gst::IteratorBasic<const Gst::QueryTypeDefinition>',`Gst::IteratorBasic<const Gst::QueryTypeDefinition>($3)') |
| 226 |
|
| 227 |
dnl MapInfo |
| 228 |
_CONVERSION(`const Gst::MapInfo&', `GstMapInfo*', `const_cast<GstMapInfo*>($3.gobj())') |
| 229 |
_CONVERSION(`Gst::MapInfo&', `GstMapInfo*', `($3.gobj())') |
| 230 |
|
| 231 |
dnl Memory |
| 232 |
_CONVERSION(`GstMemory*',`Glib::RefPtr<Gst::Memory>&',`Glib::wrap($3)') |
| 233 |
_CONVERSION(`GstMemory*',`Glib::RefPtr<Gst::Memory>',`Glib::wrap($3)') |
| 234 |
_CONVERSION(`GstMemory*',`Glib::RefPtr<const Gst::Memory>',`Glib::wrap($3)') |
| 235 |
_CONVERSION(`Glib::RefPtr<Gst::Memory>&',`GstMemory*', `Glib::unwrap($3)') |
| 236 |
_CONVERSION(`const Glib::RefPtr<Gst::Memory>&',`GstMemory*', `Glib::unwrap($3)') |
| 237 |
_CONVERSION(`Glib::RefPtr<Gst::Memory>',`GstMemory*', `Glib::unwrap($3)') |
| 238 |
_CONVERSION(`Glib::RefPtr<Gst::Memory>&&',`GstMemory*',`($3) ? $3.release()->gobj() : nullptr') |
| 239 |
|
| 240 |
dnl Message |
| 241 |
_CONVERSION(`GstMessage*',`Glib::RefPtr<Gst::Message>',`Glib::wrap($3)') |
| 242 |
_CONVERSION(`GstMessage*',`Glib::RefPtr<const Gst::Message>',`Glib::wrap($3)') |
| 243 |
_CONVERSION(`const Glib::RefPtr<Gst::Message>&',`GstMessage*', `Glib::unwrap($3)') |
| 244 |
_CONVERSION(`Glib::RefPtr<Gst::Message>&&',`GstMessage*',`($3) ? $3.release()->gobj() : nullptr') |
| 245 |
|
| 246 |
dnl MiniObject |
| 247 |
_CONVERSION(`GstMiniObject*',`Glib::RefPtr<Gst::MiniObject>',`Glib::wrap($3)') |
| 248 |
_CONVERSION(`const Glib::RefPtr<Gst::MiniObject>&',`GstMiniObject*',`Glib::unwrap($3)') |
| 249 |
|
| 250 |
dnl Mixer |
| 251 |
_CONVERSION(`const Glib::RefPtr<Gst::MixerOptions>&',`GstMixerOptions*', `Glib::unwrap($3)') |
| 252 |
_CONVERSION(`const Glib::RefPtr<const Gst::MixerOptions>&',`GstMixerOptions*', `const_cast<$2>(Glib::unwrap($3))') |
| 253 |
_CONVERSION(`const Glib::RefPtr<Gst::MixerTrack>&',`GstMixerTrack*', `Glib::unwrap($3)') |
| 254 |
|
| 255 |
dnl Gst::Object |
| 256 |
_CONVERSION(`GstObject*',`Glib::RefPtr<Gst::Object>',`Glib::wrap($3)') |
| 257 |
_CONVERSION(`GstObject*',`Glib::RefPtr<const Gst::Object>',`Glib::wrap($3)') |
| 258 |
_CONVERSION(`const Glib::RefPtr<Gst::Object>&',`GstObject*',`Glib::unwrap($3)') |
| 259 |
_CONVERSION(`Glib::RefPtr<Gst::Object>',`GstObject*',`Glib::unwrap($3)') |
| 260 |
_CONVERSION(`const Glib::RefPtr<const Gst::Object>&',`GstObject*',`const_cast<GstObject*>(Glib::unwrap($3))') |
| 261 |
_CONVERSION(`const Glib::RefPtr<Gst::Object>&', `GstObject*', `Glib::unwrap($3)') |
| 262 |
|
| 263 |
dnl Pad |
| 264 |
_CONVERSION(`GstPad*',`Glib::RefPtr<Gst::Pad>',`Glib::wrap($3)') |
| 265 |
_CONVERSION(`GstPad*',`Glib::RefPtr<const Gst::Pad>',`Glib::wrap($3)') |
| 266 |
_CONVERSION(`Glib::RefPtr<Gst::Pad>',`GstPad*', `Glib::unwrap($3)') |
| 267 |
_CONVERSION(`const Glib::RefPtr<Gst::Pad>&',`GstPad*', `Glib::unwrap($3)') |
| 268 |
_CONVERSION(`const Glib::RefPtr<const Gst::Pad>&',`GstPad*',`const_cast<GstPad*>(Glib::unwrap($3))') |
| 269 |
|
| 270 |
dnl PadTemplate |
| 271 |
_CONVERSION(`GstPadTemplate*',`Glib::RefPtr<Gst::PadTemplate>', `Glib::wrap($3)') |
| 272 |
_CONVERSION(`Glib::RefPtr<Gst::PadTemplate>',`GstPadTemplate*', `Glib::unwrap($3)') |
| 273 |
_CONVERSION(`const Glib::RefPtr<Gst::PadTemplate>&',`GstPadTemplate*',`Glib::unwrap($3)') |
| 274 |
_CONVERSION(`const Glib::RefPtr<const Gst::PadTemplate>&',`GstPadTemplate*',`const_cast<GstPadTemplate*>(Glib::unwrap($3))') |
| 275 |
|
| 276 |
dnl StaticPadTemplate |
| 277 |
_CONVERSION(`Gst::StaticPadTemplate&',`GstStaticPadTemplate*',($3).gobj()) |
| 278 |
_CONVERSION(`const Gst::StaticPadTemplate&',`const GstStaticPadTemplate*',($3).gobj()) |
| 279 |
|
| 280 |
dnl Plugin |
| 281 |
_CONVERSION(`const Glib::RefPtr<Gst::Plugin>&',`GstPlugin*',`Glib::unwrap($3)') |
| 282 |
_CONVERSION(`GstPlugin*',`Glib::RefPtr<Gst::Plugin>',`Glib::wrap($3)') |
| 283 |
_CONVERSION(`Glib::RefPtr<Gst::Plugin>&&',`GstPlugin*',`($3) ? $3.release()->gobj() : nullptr') |
| 284 |
|
| 285 |
dnl PluginFeature |
| 286 |
_CONVERSION(`GstPluginFeature*',`Glib::RefPtr<Gst::PluginFeature>',`Glib::wrap($3)') |
| 287 |
_CONVERSION(`const Glib::RefPtr<Gst::PluginFeature>&',`GstPluginFeature*',`Glib::unwrap($3)') |
| 288 |
_CONVERSION(`Glib::RefPtr<Gst::PluginFeature>&&',`GstPluginFeature*',`($3) ? $3.release()->gobj() : nullptr') |
| 289 |
|
| 290 |
dnl Query |
| 291 |
_CONVERSION(`const Glib::RefPtr<Gst::Query>&',`GstQuery*', `Glib::unwrap($3)') |
| 292 |
_CONVERSION(`Glib::RefPtr<Gst::Query>',`GstQuery*', `Glib::unwrap($3)') |
| 293 |
_CONVERSION(`GstQuery*', `Glib::RefPtr<Gst::Query>',`Glib::wrap($3)') |
| 294 |
|
| 295 |
dnl Registry |
| 296 |
_CONVERSION(`GstRegistry*',`Glib::RefPtr<Gst::Registry>', `Glib::wrap($3)') |
| 297 |
|
| 298 |
dnl Sample |
| 299 |
_CONVERSION(`GstSample*',`Glib::RefPtr<Gst::Sample>',`Glib::wrap($3)') |
| 300 |
_CONVERSION(`GstSample*',`Glib::RefPtr<const Gst::Sample>',`Glib::wrap($3)') |
| 301 |
_CONVERSION(`const Glib::RefPtr<Gst::Sample>&',`GstSample*', `Glib::unwrap($3)') |
| 302 |
_CONVERSION(`Glib::RefPtr<Gst::Sample>', `GstSample*', `Glib::unwrap($3)') |
| 303 |
|
| 304 |
dnl Segment |
| 305 |
_CONVERSION(`GstSegment*',`Gst::Segment',`Glib::wrap($3)') |
| 306 |
_CONVERSION(`const Gst::Segment&',`const GstSegment*', `$3.gobj()') |
| 307 |
|
| 308 |
dnl Structure |
| 309 |
_CONVERSION(`Gst::Structure&',`GstStructure*',`$3.gobj()') |
| 310 |
_CONVERSION(`const Gst::Structure&',`GstStructure*',`const_cast<GstStructure*>($3.gobj())') |
| 311 |
_CONVERSION(`GstStructure*', `Gst::Structure', `Glib::wrap($3)') |
| 312 |
_CONVERSION(`const Gst::Structure&',`const GstStructure*',`$3.gobj()') |
| 313 |
_CONVERSION(`const GstStructure*',`Gst::Structure', `Glib::wrap(const_cast<GstStructure*>($3), false)') |
| 314 |
_CONVERSION(`const GstStructure*',`const Gst::Structure&', `Glib::wrap(const_cast<GstStructure*>($3), false)') |
| 315 |
_CONVERSION(`Gst::Structure&&',`GstStructure*',`($3) ? $3.release() : nullptr') |
| 316 |
|
| 317 |
|
| 318 |
dnl TagList |
| 319 |
_CONVERSION(`const Gst::TagList&',`const GstTagList*',`$3.gobj()') |
| 320 |
_CONVERSION(`const Gst::TagList&',`GstTagList*',`const_cast<GstTagList*>($3.gobj())') |
| 321 |
_CONVERSION(`Gst::TagList&',`GstTagList*',`$3.gobj()') |
| 322 |
_CONVERSION(`Gst::TagList',`GstTagList*',`$3.gobj()') |
| 323 |
|
| 324 |
dnl TaskPool |
| 325 |
_CONVERSION(`const Glib::RefPtr<Gst::TaskPool>&',`GstTaskPool*', `Glib::unwrap($3)') |
| 326 |
_CONVERSION(`GstTaskPool*',`Glib::RefPtr<Gst::TaskPool>',`Glib::wrap($3)') |
| 327 |
_CONVERSION(`GstTaskPool*',`Glib::RefPtr<const Gst::TaskPool>',`Glib::wrap($3)') |
| 328 |
|
| 329 |
dnl Toc |
| 330 |
_CONVERSION(`const GstToc*',`Glib::RefPtr<const Gst::Toc>',`Glib::wrap(const_cast<GstToc*>($3))') |
| 331 |
_CONVERSION(`GstToc*',`Glib::RefPtr<Gst::Toc>',`Glib::wrap($3)') |
| 332 |
_CONVERSION(`const Glib::RefPtr<Gst::Toc>&', `GstToc*',`Glib::unwrap($3)') |
| 333 |
|
| 334 |
dnl TocEntry |
| 335 |
_CONVERSION(`GstTocEntry*',`Glib::RefPtr<Gst::TocEntry>',`Glib::wrap($3)') |
| 336 |
_CONVERSION(`Glib::RefPtr<Gst::TocEntry>', `GstTocEntry*',`Glib::unwrap($3)') |
| 337 |
|
| 338 |
dnl TocLoopType |
| 339 |
_CONVERSION(`Gst::TocLoopType&',`GstTocLoopType*',`reinterpret_cast<GstTocLoopType*>(&($3))') |
| 340 |
|
| 341 |
dnl TypeFind |
| 342 |
_CONVERSION(`Gst::TypeFind&',`GstTypeFind*',`$3.gobj()') |
| 343 |
|
| 344 |
dnl VideoInfo |
| 345 |
_CONVERSION(`Gst::VideoInfo', `GstVideoInfo*', `$3.gobj()') |
| 346 |
_CONVERSION(`const Gst::VideoInfo&', `const GstVideoInfo*', `$3.gobj()') |
| 347 |
_CONVERSION(`const Gst::VideoInfo&', `GstVideoInfo*', `const_cast<GstVideoInfo*>($3.gobj())') |
| 348 |
_CONVERSION(`const Gst::VideoInfo&', `GstVideoInfo', `*($3.gobj())') |
| 349 |
_CONVERSION(`Gst::VideoInfo', `GstVideoInfo', `*($3.gobj())') |
| 350 |
_CONVERSION(`GstVideoInfo', `Gst::VideoInfo', `Gst::VideoInfo(Gst::VideoInfo(const_cast<GstVideoInfo*>(&$3), false))') |
| 351 |
|
| 352 |
dnl VideoFormatInfo |
| 353 |
_CONVERSION(`const GstVideoFormatInfo*', `const VideoFormatInfo', `VideoFormatInfo($3)') |
| 354 |
|
| 355 |
dnl VideoFrame |
| 356 |
_CONVERSION(`const Gst::VideoFrame&', `GstVideoFrame*', `$3.gobj()') |
| 357 |
_CONVERSION(`const Gst::VideoFrame&', `const GstVideoFrame*', `$3.gobj()') |
| 358 |
_CONVERSION(`const Gst::VideoFrame&', `GstVideoFrame*', `const_cast<GstVideoFrame*>($3.gobj())') |
| 359 |
|
| 360 |
|
| 361 |
dnl ############## gstreamermm Interface Conversions ###################### |
| 362 |
|
| 363 |
dnl TunerChannel |
| 364 |
_CONVERSION(`GstTunerChannel*',`Glib::RefPtr<Gst::TunerChannel>', `Glib::wrap($3)') |
| 365 |
_CONVERSION(`GstTunerChannel*',`Glib::RefPtr<const Gst::TunerChannel>', `Glib::wrap($3)') |
| 366 |
_CONVERSION(`const Glib::RefPtr<Gst::TunerChannel>&',`GstTunerChannel*', `Glib::unwrap($3)') |
| 367 |
_CONVERSION(`const Glib::RefPtr<const Gst::TunerChannel>&',`GstTunerChannel*', `const_cast<GstTunerChannel*>(Glib::unwrap($3))') |
| 368 |
_CONVERSION(`Glib::RefPtr<Gst::TunerChannel>', `GstTunerChannel*', `Glib::unwrap($3)') |
| 369 |
|
| 370 |
dnl TunerNorm |
| 371 |
_CONVERSION(`GstTunerNorm*',`Glib::RefPtr<Gst::TunerNorm>', `Glib::wrap($3)') |
| 372 |
_CONVERSION(`GstTunerNorm*',`Glib::RefPtr<const Gst::TunerNorm>', `Glib::wrap($3)') |
| 373 |
_CONVERSION(`const Glib::RefPtr<Gst::TunerNorm>&',`GstTunerNorm*', `Glib::unwrap($3)') |
| 374 |
_CONVERSION(`const Glib::RefPtr<const Gst::TunerNorm>&',`GstTunerNorm*', `const_cast<GstTunerNorm*>(Glib::unwrap($3))') |
| 375 |
_CONVERSION(`Glib::RefPtr<Gst::TunerNorm>', `GstTunerNorm*', `Glib::unwrap($3)') |
| 376 |
|
| 377 |
dnl URIHandler |
| 378 |
_CONVERSION(`const Glib::RefPtr<Gst::URIHandler>&',`GstURIHandler*',`Glib::unwrap($3)') |
| 379 |
|
| 380 |
dnl ##################General Conversions############################ |
| 381 |
|
| 382 |
dnl Basic General Conversions |
| 383 |
_CONVERSION(`guint64&',`guint64*',`&$3') |
| 384 |
_CONVERSION(`guint*',`guint&',`*$3') |
| 385 |
_CONVERSION(`const guint&',`guint',`$3') |
| 386 |
_CONVERSION(`gsize*',`gsize&',`*$3') |
| 387 |
_CONVERSION(`const guint32&',`guint32',`$3') |
| 388 |
_CONVERSION(`guint8*&',`guint8**',`&$3') |
| 389 |
_CONVERSION(`gdouble&',`gdouble*',`&$3') |
| 390 |
_CONVERSION(`guint8*',`const guint8*',`$3') |
| 391 |
|
| 392 |
dnl Basic Gstreamermm Conversions |
| 393 |
_CONVERSION(`Gst::ClockTime&',`GstClockTime*',`(GstClockTime*)(&$3)') |
| 394 |
_CONVERSION(`Gst::ClockTimeDiff',`GstClockTimeDiff',`GstClockTimeDiff($3)') |
| 395 |
_CONVERSION(`GstClockTimeDiff',`Gst::ClockTimeDiff',`Gst::ClockTimeDiff($3)') |
| 396 |
_CONVERSION(`Gst::ClockTimeDiff&',`GstClockTimeDiff*',`(GstClockTimeDiff*)(&$3)') |
| 397 |
_CONVERSION(`GstClockTimeDiff*',`Gst::ClockTimeDiff&',`(Gst::ClockTimeDiff&)(*$3)') |
| 398 |
_CONVERSION(`GstMixerMessageType',`Gst::MixerMessageType',`(Gst::MixerMessageType)($3)') |
| 399 |
_CONVERSION(`const GstQueryType*',`const Gst::QueryType*',`(Gst::QueryType*)($3)') |
| 400 |
_CONVERSION(`GstState*',`State&',`*reinterpret_cast<Gst::State*>($3)') |
| 401 |
_CONVERSION(`GstTagFlag',`Gst::TagFlag',`(Gst::TagFlag)($3)') |
| 402 |
_CONVERSION(`guint64',`Gst::ClockTime',`(Gst::ClockTime)($3)') |
| 403 |
_CONVERSION(`const Gst::URIType',`const GstURIType',`(GstURIType)($3)') |
| 404 |
_CONVERSION(`const Gst::AudioChannelPosition&',`const GstAudioChannelPosition*',`(const GstAudioChannelPosition*)(&$3)') |
| 405 |
dnl C++ Conversions |
| 406 |
_CONVERSION(`const va_list&',`va_list',`const_cast<va_list&>($3)') |
| 407 |
|
| 408 |
dnl Glibmm Conversions |
| 409 |
_CONVERSION(`const Glib::Error&', `const GError*', `$3.gobj()') |
| 410 |
_CONVERSION(`const Glib::Error&', `GError*', `const_cast<GError*>($3.gobj())') |
| 411 |
_CONVERSION(`GQuark',`Glib::QueryQuark',`Glib::QueryQuark($3)') |
| 412 |
_CONVERSION(`const Glib::QueryQuark&',`GQuark',`$3') |
| 413 |
_CONVERSION(`Glib::Threads::RecMutex&',`GRecMutex*',`$3.gobj()') |
| 414 |
_CONVERSION(`const Glib::StringArrayHandle&',`const gchar**',`const_cast<const char**>($3.data())') |
| 415 |
_CONVERSION(`const Glib::ValueArray&',`GValueArray*',`const_cast<GValueArray*>($3.gobj())') |
| 416 |
|
| 417 |
dnl String Conversions |
| 418 |
|
| 419 |
_CONVERSION(`const std::string&',`const guchar*',`($2)($3.c_str())') |
| 420 |
_CONVERSION(`gchar*',`const Glib::ustring&',__GCHARP_TO_USTRING) |
| 421 |
_CONVERSION(`gchararray',`const Glib::ustring&',__GCHARP_TO_USTRING) |
| 422 |
_CONVERSION(`const gchar*',`const Glib::ustring&',__GCHARP_TO_USTRING) |
| 423 |
_CONVERSION(`Glib::ustring&',`const guchar*', ($2)($3.c_str())) |
| 424 |
_CONVERSION(`const Glib::ustring&',`gchararray', $3.c_str()) |
| 425 |
|
| 426 |
dnl libxml++ Conversions |
| 427 |
_CONVERSION(`xmlpp::Node*',`xmlNodePtr',`$3->cobj()') |
| 428 |
_CONVERSION(`xmlpp::Node*',`GstXmlNodePtr',`$3->cobj()') |
| 429 |
_CONVERSION(`xmlpp::Document*',`xmlDocPtr',`$3->cobj()') |