| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/segment.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/segment.h>cxx . . $ `<file>/gstreamer/gstreamermm/segment.h`/ |
| 7 | #include <gstreamermm/private/segment_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/segment_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 <gst/gst.h> |
| 30 | |
| 31 | namespace Gstcxx . . $ Gst/ |
| 32 | { |
| 33 | |
| 34 | void Segmentcxx . . $ Gst/Segment#::set_seekcxx . . $ Gst/Segment#set_seek(b940b164889fc908).(double rate, Formatcxx . . $ Gst/Format# format, SeekFlagscxx . . $ Gst/SeekFlags# flags, |
| 35 | SeekTypecxx . . $ Gst/SeekType# start_type, gint64 start, SeekTypecxx . . $ Gst/SeekType# stop_type, gint64 stop, |
| 36 | bool& update) |
| 37 | { |
| 38 | gboolean gst_update = 0; |
| 39 | |
| 40 | gst_segment_do_seek(gobjcxx . . $ Gst/Segment#gobj(31bffb9beca72774).(), rate, static_cast<GstFormat>(format), |
| 41 | static_cast<GstSeekFlags>(flags), static_cast<GstSeekType>(start_type), |
| 42 | start, static_cast<GstSeekType>(stop_type), stop, &gst_update); |
| 43 | |
| 44 | update = gst_update; |
| 45 | } |
| 46 | |
| 47 | } // namespace Gst |
| 48 | |
| 49 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/segment.cc`/ |
| 50 | { |
| 51 | } // anonymous namespace |
| 52 | |
| 53 | // static |
| 54 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::SeekFlags>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 55 | { |
| 56 | return gst_seek_flags_get_type(); |
| 57 | } |
| 58 | |
| 59 | // static |
| 60 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::SeekType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 61 | { |
| 62 | return gst_seek_type_get_type(); |
| 63 | } |
| 64 | |
| 65 | |
| 66 | namespace Glibcxx . . $ Glib/ |
| 67 | { |
| 68 | |
| 69 | Gstcxx . . $ Gst/::Segmentcxx . . $ Gst/Segment# wrapcxx . . $ Glib/wrap(acf2fb73624d1c73).(GstSegment* object, bool take_copy) |
| 70 | { |
| 71 | return Gstcxx . . $ Gst/Segment#Segment(fe81ed18ca985276).::Segmentcxx . . $ Gst/Segment#(object, take_copy); |
| 72 | } |
| 73 | |
| 74 | } // namespace Glib |
| 75 | |
| 76 | |
| 77 | namespace Gstcxx . . $ Gst/ |
| 78 | { |
| 79 | |
| 80 | |
| 81 | // static |
| 82 | GType Segmentcxx . . $ Gst/Segment#::get_typecxx . . $ Gst/Segment#get_type(f708dce9a8856c70).() |
| 83 | { |
| 84 | return gst_segment_get_type(); |
| 85 | } |
| 86 | |
| 87 | Segmentcxx . . $ Gst/Segment#::Segmentcxx . . $ Gst/Segment#Segment(49f6e7a06ebc5aa8).() |
| 88 | : |
| 89 | gobject_cxx . . $ Gst/Segment#gobject_. (gst_segment_new()) |
| 90 | {} |
| 91 | |
| 92 | Segmentcxx . . $ Gst/Segment#::Segmentcxx . . $ Gst/Segment#Segment(7eef67a3849966f0).(const Segmentcxx . . $ Gst/Segment#& other) |
| 93 | : |
| 94 | gobject_cxx . . $ Gst/Segment#gobject_. ((other.gobject_cxx . . $ Gst/Segment#gobject_.) ? gst_segment_copy(other.gobject_cxx . . $ Gst/Segment#gobject_.) : nullptr) |
| 95 | {} |
| 96 | |
| 97 | Segmentcxx . . $ Gst/Segment#::Segmentcxx . . $ Gst/Segment#Segment(e7c199c032c5eccc).(Segmentcxx . . $ Gst/Segment#&& other) noexcept |
| 98 | : |
| 99 | gobject_cxx . . $ Gst/Segment#gobject_.(other.gobject_cxx . . $ Gst/Segment#gobject_.) |
| 100 | { |
| 101 | other.gobject_cxx . . $ Gst/Segment#gobject_. = nullptr; |
| 102 | } |
| 103 | |
| 104 | Segmentcxx . . $ Gst/Segment#& Segmentcxx . . $ Gst/Segment#::operatorcxx . . $ Gst/Segment#`operator=`(81ba071ee54883d6).=(Segmentcxx . . $ Gst/Segment#&& other) noexcept |
| 105 | { |
| 106 | Segmentcxx . . $ Gst/Segment# tempcxx . . $ Gst/Segment#Segment(7eef67a3849966f0). (other); |
| 107 | swapcxx . . $ Gst/Segment#swap(eb4ab056d9bb9d4f).(temp); |
| 108 | return *this; |
| 109 | } |
| 110 | |
| 111 | Segmentcxx . . $ Gst/Segment#::Segmentcxx . . $ Gst/Segment#Segment(fe81ed18ca985276).(GstSegment* gobject, bool make_a_copy) |
| 112 | : |
| 113 | // For BoxedType wrappers, make_a_copy is true by default. The static |
| 114 | // BoxedType wrappers must always take a copy, thus make_a_copy = true |
| 115 | // ensures identical behaviour if the default argument is used. |
| 116 | gobject_cxx . . $ Gst/Segment#gobject_. ((make_a_copy && gobject) ? gst_segment_copy(gobject) : gobject) |
| 117 | {} |
| 118 | |
| 119 | Segmentcxx . . $ Gst/Segment#& Segmentcxx . . $ Gst/Segment#::operatorcxx . . $ Gst/Segment#`operator=`(d5e86c9d7d501a35).=(const Segmentcxx . . $ Gst/Segment#& other) |
| 120 | { |
| 121 | Segmentcxx . . $ Gst/Segment# tempcxx . . $ Gst/Segment#Segment(7eef67a3849966f0). (other); |
| 122 | swapcxx . . $ Gst/Segment#swap(eb4ab056d9bb9d4f).(temp); |
| 123 | return *this; |
| 124 | } |
| 125 | |
| 126 | Segmentcxx . . $ Gst/Segment#::~cxx . . $ Gst/Segment#`~Segment`(ced63f7c635d850d).Segmentcxx . . $ Gst/Segment#() noexcept |
| 127 | { |
| 128 | if(gobject_cxx . . $ Gst/Segment#gobject_.) |
| 129 | gst_segment_free(gobject_cxx . . $ Gst/Segment#gobject_.); |
| 130 | } |
| 131 | |
| 132 | void Segmentcxx . . $ Gst/Segment#::swapcxx . . $ Gst/Segment#swap(eb4ab056d9bb9d4f).(Segmentcxx . . $ Gst/Segment#& other) noexcept |
| 133 | { |
| 134 | stdcxx . . $ std/::swapcxx . . $ std/swap(c75b8fd57d7c2e06).(gobject_cxx . . $ Gst/Segment#gobject_., other.gobject_cxx . . $ Gst/Segment#gobject_.); |
| 135 | } |
| 136 | |
| 137 | GstSegment* Segmentcxx . . $ Gst/Segment#::gobj_copycxx . . $ Gst/Segment#gobj_copy(c3e74b75c3e00d0f).() const |
| 138 | { |
| 139 | return gst_segment_copy(gobject_cxx . . $ Gst/Segment#gobject_.); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | bool Segmentcxx . . $ Gst/Segment#::clipcxx . . $ Gst/Segment#clip(d5e0bd454b6745ba).(Formatcxx . . $ Gst/Format# format, guint64 start, guint64 stop, guint64& clip_start, guint64& clip_stop) const |
| 144 | { |
| 145 | return gst_segment_clip(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), start, stop, &(clip_start), &(clip_stop)); |
| 146 | } |
| 147 | |
| 148 | void Segmentcxx . . $ Gst/Segment#::initcxx . . $ Gst/Segment#init(a5d60b7254be6bff).(Formatcxx . . $ Gst/Format# format) |
| 149 | { |
| 150 | gst_segment_init(gobjcxx . . $ Gst/Segment#gobj(31bffb9beca72774).(), ((GstFormat)(format))); |
| 151 | } |
| 152 | |
| 153 | guint64 Segmentcxx . . $ Gst/Segment#::to_running_timecxx . . $ Gst/Segment#to_running_time(590bc69d2cd40bdc).(Formatcxx . . $ Gst/Format# format, guint64 position) const |
| 154 | { |
| 155 | return gst_segment_to_running_time(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), position); |
| 156 | } |
| 157 | |
| 158 | int Segmentcxx . . $ Gst/Segment#::to_running_timecxx . . $ Gst/Segment#to_running_time(6f4e88b7a5d27adb).(Formatcxx . . $ Gst/Format# format, guint64 position, guint64& running_time) const |
| 159 | { |
| 160 | return gst_segment_to_running_time_full(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), position, &(running_time)); |
| 161 | } |
| 162 | |
| 163 | guint64 Segmentcxx . . $ Gst/Segment#::to_stream_timecxx . . $ Gst/Segment#to_stream_time(590bc69d2cd40bdc).(Formatcxx . . $ Gst/Format# format, guint64 position) const |
| 164 | { |
| 165 | return gst_segment_to_stream_time(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), position); |
| 166 | } |
| 167 | |
| 168 | int Segmentcxx . . $ Gst/Segment#::to_stream_timecxx . . $ Gst/Segment#to_stream_time(6f4e88b7a5d27adb).(Formatcxx . . $ Gst/Format# format, guint64 position, guint64& stream_time) const |
| 169 | { |
| 170 | return gst_segment_to_stream_time_full(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), position, &(stream_time)); |
| 171 | } |
| 172 | |
| 173 | guint64 Segmentcxx . . $ Gst/Segment#::to_positioncxx . . $ Gst/Segment#to_position(590bc69d2cd40bdc).(Formatcxx . . $ Gst/Format# format, guint64 running_time) const |
| 174 | { |
| 175 | return gst_segment_to_position(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), running_time); |
| 176 | } |
| 177 | |
| 178 | bool Segmentcxx . . $ Gst/Segment#::set_running_timecxx . . $ Gst/Segment#set_running_time(f5486040aac90704).(Formatcxx . . $ Gst/Format# format, guint64 running_time) |
| 179 | { |
| 180 | return gst_segment_set_running_time(gobjcxx . . $ Gst/Segment#gobj(31bffb9beca72774).(), ((GstFormat)(format)), running_time); |
| 181 | } |
| 182 | |
| 183 | guint64 Segmentcxx . . $ Gst/Segment#::position_from_running_timecxx . . $ Gst/Segment#position_from_running_time(590bc69d2cd40bdc).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# format, guint64 running_time) const |
| 184 | { |
| 185 | return gst_segment_position_from_running_time(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), running_time); |
| 186 | } |
| 187 | |
| 188 | int Segmentcxx . . $ Gst/Segment#::position_from_running_timecxx . . $ Gst/Segment#position_from_running_time(6f4e88b7a5d27adb).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# format, guint64 running_time, guint64& position) const |
| 189 | { |
| 190 | return gst_segment_position_from_running_time_full(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), running_time, &(position)); |
| 191 | } |
| 192 | |
| 193 | guint64 Segmentcxx . . $ Gst/Segment#::position_from_stream_timecxx . . $ Gst/Segment#position_from_stream_time(590bc69d2cd40bdc).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# format, guint64 stream_time) const |
| 194 | { |
| 195 | return gst_segment_position_from_stream_time(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), stream_time); |
| 196 | } |
| 197 | |
| 198 | int Segmentcxx . . $ Gst/Segment#::position_from_stream_timecxx . . $ Gst/Segment#position_from_stream_time(6f4e88b7a5d27adb).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# format, guint64 stream_time, guint64& position) const |
| 199 | { |
| 200 | return gst_segment_position_from_stream_time_full(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), ((GstFormat)(format)), stream_time, &(position)); |
| 201 | } |
| 202 | |
| 203 | bool Segmentcxx . . $ Gst/Segment#::offset_running_timecxx . . $ Gst/Segment#offset_running_time(c0fc02aeb1db14ac).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# format, gint64 offset) |
| 204 | { |
| 205 | return gst_segment_offset_running_time(gobjcxx . . $ Gst/Segment#gobj(31bffb9beca72774).(), ((GstFormat)(format)), offset); |
| 206 | } |
| 207 | |
| 208 | bool Segmentcxx . . $ Gst/Segment#::is_equalcxx . . $ Gst/Segment#is_equal(1692839356139c47).(const Gstcxx . . $ Gst/::Segmentcxx . . $ Gst/Segment#& s2) const |
| 209 | { |
| 210 | return gst_segment_is_equal(const_cast<GstSegment*>(gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()), s2.gobjcxx . . $ Gst/Segment#gobj(841fa51e7d3f2dfa).()); |
| 211 | } |
| 212 | |
| 213 | |
| 214 | } // namespace Gst |
| 215 | |
| 216 |