[gstreamermm] Gst::Segment: update Segment class
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::Segment: update Segment class
- Date: Tue, 12 Jul 2016 19:42:29 +0000 (UTC)
commit a23939f974d074604d0313d0dd8d931e03ebfd17
Author: Marcin Kolny <marcin kolny gmail com>
Date: Tue Jul 12 21:42:18 2016 +0200
Gst::Segment: update Segment class
gstreamer/src/segment.ccg | 2 +-
gstreamer/src/segment.hg | 14 ++++++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/gstreamer/src/segment.ccg b/gstreamer/src/segment.ccg
index 65032a5..82058a7 100644
--- a/gstreamer/src/segment.ccg
+++ b/gstreamer/src/segment.ccg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/gstreamer/src/segment.hg b/gstreamer/src/segment.hg
index 6463448..f20a71f 100644
--- a/gstreamer/src/segment.hg
+++ b/gstreamer/src/segment.hg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -69,12 +69,13 @@ _WRAP_ENUM(SeekType, GstSeekType)
* to_stream_time() can be used to convert a timestamp and the segment info to
* stream time (which is always between 0 and the duration of the stream).
*
- * Last reviewed on 2007-05-17 (0.10.13)
+ * Last reviewed on 2016-07-12 (1.8.0)
*/
class Segment
{
_CLASS_BOXEDTYPE(Segment, GstSegment, gst_segment_new, gst_segment_copy, gst_segment_free)
_IGNORE(gst_segment_free, gst_segment_copy)
+ _IGNORE(gst_segment_copy_into)
public:
_WRAP_METHOD(bool clip(Format format, guint64 start, guint64 stop, guint64& clip_start, guint64&
clip_stop) const, gst_segment_clip)
@@ -82,9 +83,18 @@ public:
_WRAP_METHOD_DOCS_ONLY(gst_segment_do_seek)
void set_seek(double rate, Format format, SeekFlags flags, SeekType start_type, gint64 start, SeekType
stop_type, gint64 stop, bool& update);
_WRAP_METHOD(guint64 to_running_time(Format format, guint64 position) const, gst_segment_to_running_time)
+ _WRAP_METHOD(int to_running_time(Format format, guint64 position, guint64& running_time) const,
gst_segment_to_running_time_full)
_WRAP_METHOD(guint64 to_stream_time(Format format, guint64 position) const, gst_segment_to_stream_time)
+ _WRAP_METHOD(int to_stream_time(Format format, guint64 position, guint64& stream_time) const,
gst_segment_to_stream_time_full)
_WRAP_METHOD(guint64 to_position(Format format, guint64 running_time) const, gst_segment_to_position)
_WRAP_METHOD(bool set_running_time(Format format, guint64 running_time), gst_segment_set_running_time)
+ _WRAP_METHOD(guint64 position_from_running_time(Gst::Format format, guint64 running_time) const,
gst_segment_position_from_running_time)
+ _WRAP_METHOD(int position_from_running_time(Gst::Format format, guint64 running_time, guint64& position)
const, gst_segment_position_from_running_time_full)
+ _WRAP_METHOD(guint64 position_from_stream_time(Gst::Format format, guint64 stream_time) const,
gst_segment_position_from_stream_time)
+ _WRAP_METHOD(int position_from_stream_time(Gst::Format format, guint64 stream_time, guint64& position)
const, gst_segment_position_from_stream_time_full)
+ _WRAP_METHOD(bool offset_running_time(Gst::Format format, gint64 offset), gst_segment_offset_running_time)
+ _WRAP_METHOD(bool is_equal(const Gst::Segment& s2) const, gst_segment_is_equal)
+
};
} //namespace Gst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]