[gstreamermm] Gst::Event Classes: Overload the parse methods.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::Event Classes: Overload the parse methods.
- Date: Thu, 13 Aug 2009 03:53:15 +0000 (UTC)
commit eeee984cecdf38550127853ffd927c90f51815b7
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Wed Aug 12 21:50:03 2009 -0400
Gst::Event Classes: Overload the parse methods.
* gstreamer/src/event.ccg:
* gstreamer/src/event.hg: Overload the parse methods in the Gst::Event
classes.
* tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Duplicate the
warning not to modify plug-in generated gmmproc files that's already
in the .hg plug-in files also to the .ccg files.
ChangeLog | 11 +
gstreamer/src/event.ccg | 261 ++++++++++++++++++--
gstreamer/src/event.hg | 244 ++++++++++++++++---
.../extra_defs_gen/generate_plugin_gmmproc_file.cc | 1 +
4 files changed, 458 insertions(+), 59 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9a506e0..a706136 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-08-12 José Alburquerque <jaalburqu svn gnome org>
+
+ Gst::Event Classes: Overload the parse methods.
+
+ * gstreamer/src/event.ccg:
+ * gstreamer/src/event.hg: Overload the parse methods in the Gst::Event
+ classes.
+ * tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Duplicate the
+ warning not to modify plug-in generated gmmproc files that's already
+ in the .hg plug-in files also to the .ccg files.
+
2009-08-11 José Alburquerque <jaalburqu svn gnome org>
Added Gst::EventStep.
diff --git a/gstreamer/src/event.ccg b/gstreamer/src/event.ccg
index fb5a30b..8fbfacb 100644
--- a/gstreamer/src/event.ccg
+++ b/gstreamer/src/event.ccg
@@ -105,24 +105,71 @@ EventNewSegment::EventNewSegment(GstEvent* castitem) :
Event(castitem)
{}
-Glib::RefPtr<Gst::Event> EventNewSegment::create(bool update, double rate, Format format, gint64 start, gint64 stop, gint64 position, double applied_rate)
+Glib::RefPtr<Gst::Event> EventNewSegment::create(bool update, double rate,
+ Format format, gint64 start, gint64 stop, gint64 position,
+ double applied_rate)
{
- GstEvent* event = gst_event_new_new_segment_full(update, rate, applied_rate, GstFormat(format), start, stop, position);
+ GstEvent* event = gst_event_new_new_segment_full(update, rate, applied_rate,
+ GstFormat(format), start, stop, position);
return Gst::Event::wrap(event, false);
}
-void EventNewSegment::parse(bool& update, double& rate, Format& format, gint64& start, gint64& stop, gint64& position) const
+void EventNewSegment::parse(bool& update, double& rate, Format& format,
+ gint64& start, gint64& stop, gint64& position) const
{
- gboolean result = FALSE;
- gst_event_parse_new_segment(const_cast<GstEvent*>(gobj()), &result, &rate, (GstFormat*)&format, &start, &stop, &position);
- update = result;
+ gboolean gst_update = FALSE;
+ gst_event_parse_new_segment(const_cast<GstEvent*>(gobj()), &gst_update,
+ &rate, (GstFormat*)&format, &start, &stop, &position);
+ update = gst_update;
}
-void EventNewSegment::parse(bool& update, double& rate, Format& format, gint64& start, gint64& stop, gint64& position, double& applied_rate) const
+void EventNewSegment::parse(bool& update, double& rate, Format& format,
+ gint64& start, gint64& stop, gint64& position, double& applied_rate) const
{
- gboolean result = FALSE;
- gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), &result, &rate, &applied_rate, (GstFormat*)&format, &start, &stop, &position);
- update = result;
+ gboolean gst_update = FALSE;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), &gst_update,
+ &rate, &applied_rate, (GstFormat*)&format, &start, &stop, &position);
+ update = gst_update;
+}
+
+gint64 EventNewSegment::parse() const
+{
+ gint64 gst_position = 0;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), 0, 0, 0, 0,
+ 0, 0, &gst_position);
+ return gst_position;
+}
+
+bool EventNewSegment::parse_update() const
+{
+ gboolean gst_update = FALSE;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), &gst_update,
+ 0, 0, 0, 0, 0, 0);
+ return gst_update;
+}
+
+double EventNewSegment::parse_rate() const
+{
+ double gst_rate = 0;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), 0, &gst_rate,
+ 0, 0, 0, 0, 0);
+ return gst_rate;
+}
+
+Gst::Format EventNewSegment::parse_format() const
+{
+ GstFormat gst_format = GST_FORMAT_UNDEFINED;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), 0, 0, 0,
+ &gst_format, 0, 0, 0);
+ return (Gst::Format)(gst_format);
+}
+
+double EventNewSegment::parse_applied_rate() const
+{
+ double gst_applied_rate = 0;
+ gst_event_parse_new_segment_full(const_cast<GstEvent*>(gobj()), 0, 0,
+ &gst_applied_rate, 0, 0, 0, 0);
+ return gst_applied_rate;
}
EventTag::EventTag(GstEvent* castitem) :
@@ -148,47 +195,171 @@ EventBufferSize::EventBufferSize(GstEvent* castitem) :
Event(castitem)
{}
-Glib::RefPtr<Gst::Event> EventBufferSize::create(Format format, gint64 minsize, gint64 maxsize, bool async)
+Glib::RefPtr<Gst::Event> EventBufferSize::create(Format format, gint64 minsize,
+ gint64 maxsize, bool async)
{
- GstEvent* event = gst_event_new_buffer_size(GstFormat(format), minsize, maxsize, async);
+ GstEvent* event = gst_event_new_buffer_size(GstFormat(format), minsize,
+ maxsize, async);
return Gst::Event::wrap(event, false);
}
-void EventBufferSize::parse(Format& format, gint64& minsize, gint64& maxsize, bool& async) const
+void EventBufferSize::parse(Format& format, gint64& minsize, gint64& maxsize,
+ bool& async) const
+{
+ gboolean gst_async = FALSE;
+ gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()),
+ (GstFormat*)&format, &minsize, &maxsize, &gst_async);
+ async = gst_async;
+}
+
+gint64 EventBufferSize::parse() const
+{
+ gint64 gst_minsize = 0;
+ gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()), 0, &gst_minsize,
+ 0, 0);
+ return gst_minsize;
+}
+
+Gst::Format EventBufferSize::parse_format() const
+{
+ GstFormat gst_format = GST_FORMAT_UNDEFINED;
+ gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()),
+ (GstFormat*)(&gst_format), 0, 0, 0);
+ return (Gst::Format)(gst_format);
+}
+
+gint64 EventBufferSize::parse_max_size() const
{
- gboolean result = FALSE;
- gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()), (GstFormat*)&format, &minsize, &maxsize, &result);
- async = result;
+ gint64 gst_maxsize = 0;
+ gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()), 0, 0,
+ &gst_maxsize, 0);
+ return gst_maxsize;
+}
+
+bool EventBufferSize::parse_async() const
+{
+ gboolean gst_async = FALSE;
+ gst_event_parse_buffer_size(const_cast<GstEvent*>(gobj()), 0, 0, 0, &gst_async);
+ return gst_async;
}
EventQos::EventQos(GstEvent* castitem) :
Event(castitem)
{}
-Glib::RefPtr<Gst::Event> EventQos::create(double proportion, ClockTimeDiff diff, ClockTime timestamp)
+Glib::RefPtr<Gst::Event> EventQos::create(double proportion,
+ ClockTimeDiff diff, ClockTime timestamp)
{
- GstEvent* event = gst_event_new_qos(proportion, GstClockTimeDiff(diff), GstClockTime(timestamp));
+ GstEvent* event = gst_event_new_qos(proportion, GstClockTimeDiff(diff),
+ GstClockTime(timestamp));
return Gst::Event::wrap(event, false);
}
-void EventQos::parse(double& proportion, ClockTimeDiff& diff, ClockTime& timestamp) const
+void EventQos::parse(double& proportion, ClockTimeDiff& diff,
+ ClockTime& timestamp) const
{
- gst_event_parse_qos(const_cast<GstEvent*>(gobj()), &proportion, &diff, ×tamp);
+ gst_event_parse_qos(const_cast<GstEvent*>(gobj()), &proportion, &diff,
+ ×tamp);
+}
+
+double EventQos::parse() const
+{
+ double gst_proportion = 0;
+ gst_event_parse_qos(const_cast<GstEvent*>(gobj()), &gst_proportion, 0, 0);
+ return gst_proportion;
+}
+
+Gst::ClockTimeDiff EventQos::parse_diff() const
+{
+ GstClockTimeDiff gst_diff = 0;
+ gst_event_parse_qos(const_cast<GstEvent*>(gobj()), 0, &gst_diff, 0);
+ return gst_diff;
+}
+
+Gst::ClockTime EventQos::parse_timestamp() const
+{
+ GstClockTime gst_timestamp = 0;
+ gst_event_parse_qos(const_cast<GstEvent*>(gobj()), 0, 0, &gst_timestamp);
+ return gst_timestamp;
}
EventSeek::EventSeek(GstEvent* castitem) :
Event(castitem)
{}
-Glib::RefPtr<Gst::Event> EventSeek::create(double rate, Format format, SeekFlags flags, SeekType start_type, gint64 start, SeekType stop_type, gint64 stop)
+Glib::RefPtr<Gst::Event> EventSeek::create(double rate, Format format,
+ SeekFlags flags, SeekType start_type, gint64 start, SeekType stop_type,
+ gint64 stop)
{
- GstEvent* event = gst_event_new_seek(rate, GstFormat(format), GstSeekFlags(flags), GstSeekType(start_type), start, GstSeekType(stop_type), stop);
+ GstEvent* event = gst_event_new_seek(rate, GstFormat(format),
+ GstSeekFlags(flags), GstSeekType(start_type), start,
+ GstSeekType(stop_type), stop);
+
return Gst::Event::wrap(event, false);
}
-void EventSeek::parse(double& rate, Format& format, SeekFlags& flags, SeekType& start_type, gint64& start, SeekType& stop_type, gint64& stop) const
+void EventSeek::parse(double& rate, Format& format, SeekFlags& flags,
+ SeekType& start_type, gint64& start, SeekType& stop_type, gint64& stop) const
{
- gst_event_parse_seek(const_cast<GstEvent*>(gobj()), &rate, (GstFormat*)&format, (GstSeekFlags*)&flags, (GstSeekType*)&start_type, &start, (GstSeekType*)&stop_type, &stop);
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), &rate,
+ (GstFormat*)&format, (GstSeekFlags*)&flags, (GstSeekType*)&start_type,
+ &start, (GstSeekType*)&stop_type, &stop);
+}
+
+gint64 EventSeek::parse() const
+{
+ gint64 gst_start = 0;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, 0, 0, 0, &gst_start,
+ 0, 0);
+ return gst_start;
+}
+
+double EventSeek::parse_rate() const
+{
+ double gst_rate = 0;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), &gst_rate, 0, 0, 0, 0,
+ 0, 0);
+ return gst_rate;
+}
+
+Gst::Format EventSeek::parse_format() const
+{
+ GstFormat gst_format = GST_FORMAT_UNDEFINED;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, &gst_format, 0, 0, 0,
+ 0, 0);
+ return (Gst::Format)(gst_format);
+}
+
+Gst::SeekFlags EventSeek::parse_flags() const
+{
+ GstSeekFlags gst_flags = GST_SEEK_FLAG_NONE;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, 0, &gst_flags, 0, 0,
+ 0, 0);
+ return (Gst::SeekFlags)(gst_flags);
+}
+
+Gst::SeekType EventSeek::parse_start_type() const
+{
+ GstSeekType gst_type = GST_SEEK_TYPE_NONE;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, 0, 0, &gst_type, 0,
+ 0, 0);
+ return (Gst::SeekType)(gst_type);
+}
+
+Gst::SeekType EventSeek::parse_stop_type() const
+{
+ GstSeekType gst_type = GST_SEEK_TYPE_NONE;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, 0, 0, 0, 0, &gst_type,
+ 0);
+ return (Gst::SeekType)(gst_type);
+}
+
+gint64 EventSeek::parse_stop() const
+{
+ gint64 gst_stop = 0;
+ gst_event_parse_seek(const_cast<GstEvent*>(gobj()), 0, 0, 0, 0, 0, 0,
+ &gst_stop);
+ return gst_stop;
}
EventNavigation::EventNavigation(GstEvent* castitem) :
@@ -213,9 +384,11 @@ Glib::RefPtr<Gst::Event> EventLatency::create(ClockTime time)
return Gst::Event::wrap(event, false);
}
-void EventLatency::parse(ClockTime& latency) const
+ClockTime EventLatency::parse() const
{
- gst_event_parse_latency(const_cast<GstEvent*>(gobj()), &latency);
+ GstClockTime gst_latency = 0;
+ gst_event_parse_latency(const_cast<GstEvent*>(gobj()), &gst_latency);
+ return gst_latency;
}
EventStep::EventStep(GstEvent* castitem) :
@@ -243,6 +416,42 @@ void EventStep::parse(Gst::Format& format, guint64& amount, double& rate,
intermediate = gst_intermediate;
}
+guint64 EventStep::parse() const
+{
+ guint64 gst_amount = 0;
+ gst_event_parse_step(const_cast<GstEvent*>(gobj()), 0, &gst_amount, 0, 0, 0);
+ return gst_amount;
+}
+
+Gst::Format EventStep::parse_format() const
+{
+ GstFormat gst_format = GST_FORMAT_UNDEFINED;
+ gst_event_parse_step(const_cast<GstEvent*>(gobj()), &gst_format, 0, 0, 0, 0);
+ return (Gst::Format)(gst_format);
+}
+
+double EventStep::parse_rate() const
+{
+ double gst_rate = 0;
+ gst_event_parse_step(const_cast<GstEvent*>(gobj()), 0, 0, &gst_rate, 0, 0);
+ return gst_rate;
+}
+
+bool EventStep::parse_flush() const
+{
+ gboolean gst_flush = FALSE;
+ gst_event_parse_step(const_cast<GstEvent*>(gobj()), 0, 0, 0, &gst_flush, 0);
+ return gst_flush;
+}
+
+bool EventStep::parse_intermediate() const
+{
+ gboolean gst_intermediate = FALSE;
+ gst_event_parse_step(const_cast<GstEvent*>(gobj()), 0, 0, 0, 0,
+ &gst_intermediate);
+ return gst_intermediate;
+}
+
Glib::RefPtr<Gst::Event> Event::wrap(GstEvent* event, bool take_copy)
{
Glib::RefPtr<Gst::Event> result;
diff --git a/gstreamer/src/event.hg b/gstreamer/src/event.hg
index 753ad18..391ebd5 100644
--- a/gstreamer/src/event.hg
+++ b/gstreamer/src/event.hg
@@ -143,7 +143,7 @@ public:
/** Checks if an event is writable. If not, a writable copy is made and
* returned.
- * @return A Gst::Event (possibly the same pointer) that is writable.
+ * @return A Gst::Event (possibly the same reference) that is writable.
*/
Glib::RefPtr<Gst::Event> create_writable();
@@ -300,36 +300,103 @@ public:
*
* Since 0.10.6
*/
- static Glib::RefPtr<Gst::Event> create(bool update, double rate, Format format, gint64 strat, gint64 stop, gint64 position, double applied_rate=1.0);
+ static Glib::RefPtr<Gst::Event> create(bool update, double rate,
+ Format format, gint64 strat, gint64 stop, gint64 position,
+ double applied_rate=1.0);
/** Get the update flag, rate, format, start, stop and position in the
* newsegment event.
*
- * @param update A pointer to the update flag of the segment.
- * @param rate A pointer to the rate of the segment.
- * @param format A pointer to the format of the newsegment values.
- * @param start A pointer to store the start value in.
- * @param stop A pointer to store the stop value in.
- * @param position A pointer to store the stream time in.
+ * @param update A reference to store the update flag of the segment.
+ * @param rate A reference to store the rate of the segment.
+ * @param format A reference to store the format of the newsegment values.
+ * @param start A reference to store the start value in.
+ * @param stop A reference to store the stop value in.
+ * @param position A reference to store the stream time in.
*/
- void parse(bool& update, double& rate, Format& format, gint64& start, gint64& stop, gint64& position) const;
+ void parse(bool& update, double& rate, Format& format, gint64& start,
+ gint64& stop, gint64& position) const;
+ _IGNORE(gst_event_parse_new_segment)
/** Get the update, rate, format, start, stop, position and applied_rate in
* the newsegment event. See create() for a full description of the
* newsegment event.
*
- * @param update A pointer to the update flag of the segment.
- * @param rate A pointer to the rate of the segment.
- * @param format A pointer to the format of the newsegment values.
- * @param start A pointer to store the start value in.
- * @param stop A pointer to store the stop value in.
- * @param position A pointer to store the stream time in.
- * @param applied_rate A pointer to the applied_rate of the segment.
+ * @param update A reference to store the update flag of the segment.
+ * @param rate A reference to store the rate of the segment.
+ * @param format A reference to store the format of the newsegment values.
+ * @param start A reference to store the start value in.
+ * @param stop A reference to store the stop value in.
+ * @param position A reference to store the stream time in.
+ * @param applied_rate A reference to store the applied_rate of the segment.
*
- * Since 0.10.6
+ * Since 0.10.6.
*/
- void parse(bool& update, double& rate, Format& format, gint64& start, gint64& stop, gint64& position, double& applied_rate) const;
- _IGNORE(gst_event_parse_new_segment, gst_event_parse_new_segment_full)
+ void parse(bool& update, double& rate, Format& format, gint64& start,
+ gint64& stop, gint64& position, double& applied_rate) const;
+ _IGNORE(gst_event_parse_new_segment_full)
+
+ /** Get the position in the newsegment event. See create() for a full
+ * description of the newsegment event.
+ * @return The position.
+ *
+ * Since 0.10.6.
+ */
+ gint64 parse() const;
+
+ /** Get the update in the newsegment event. See create() for a full
+ * description of the newsegment event.
+ *
+ * @return The update.
+ *
+ * Since 0.10.6.
+ */
+ bool parse_update() const;
+
+ /** Get the rate in the newsegment event. See create() for a full description
+ * of the newsegment event.
+ *
+ * @return The rate.
+ *
+ * Since 0.10.6.
+ */
+ double parse_rate() const;
+
+ /** Get the format in the newsegment event. See create() for a full
+ * description of the newsegment event.
+ *
+ * @return The format.
+ *
+ * Since 0.10.6.
+ */
+ Format parse_format() const;
+
+ /** Get the start in the newsegment event. See create() for a full
+ * description of the newsegment event.
+ *
+ * @return The start.
+ *
+ * Since 0.10.6.
+ */
+ gint64 parse_start() const;
+
+ /** Get the stop in the newsegment event. See create() for a full description
+ * of the newsegment event.
+ *
+ * @return The stop.
+ *
+ * Since 0.10.6.
+ */
+ gint64 parse_stop() const;
+
+ /** Get the applied_rate in the newsegment event. See create() for a full
+ * description of the newsegment event.
+ *
+ * @return The applied rate.
+ *
+ * Since 0.10.6.
+ */
+ double parse_applied_rate() const;
};
/** A tag event.
@@ -370,17 +437,43 @@ public:
* @param async Thread behavior.
* @return A new Gst::EventBufferSize.
*/
- static Glib::RefPtr<Gst::Event> create(Format format, gint64 minsize, gint64 maxsize, bool async);
+ static Glib::RefPtr<Gst::Event> create(Format format, gint64 minsize,
+ gint64 maxsize, bool async);
/** Get the format, minsize, maxsize and async-flag in the buffersize event.
*
- * @param format A pointer to store the format in.
- * @param minsize A pointer to store the minsize in.
- * @param maxsize A pointer to store the maxsize in.
- * @param async A pointer to store the async-flag in.
+ * @param format A reference to store the format in.
+ * @param minsize A reference to store the minsize in.
+ * @param maxsize A reference to store the maxsize in.
+ * @param async A reference to store the async-flag in.
*/
- void parse(Format& format, gint64& minsize, gint64& maxsize, bool& async) const;
+ void parse(Format& format, gint64& minsize, gint64& maxsize, bool& async)
+ const;
_IGNORE(gst_event_parse_buffer_size)
+
+ /** Get the minsize in the buffersize event.
+ *
+ * @return The mininum size.
+ */
+ gint64 parse() const;
+
+ /** Get the format, in the buffersize event.
+ *
+ * @return The format.
+ */
+ Gst::Format parse_format() const;
+
+ /** Get the maxsize in the buffersize event.
+ *
+ * @return The maximum size.
+ */
+ gint64 parse_max_size() const;
+
+ /** Get the async-flag in the buffersize event.
+ *
+ * @return The async flag.
+ */
+ bool parse_async() const;
};
/** A QOS event. See create() for more details.
@@ -427,17 +520,38 @@ public:
* @param timestamp The timestamp of the buffer.
* @return A new QOS event.
*/
- static Glib::RefPtr<Gst::Event> create(double proportion, ClockTimeDiff diff, ClockTime timestamp);
+ static Glib::RefPtr<Gst::Event> create(double proportion,
+ ClockTimeDiff diff, ClockTime timestamp);
/** Get the proportion, diff and timestamp in the qos event. See create() for
* more information about the different QoS values.
*
- * @param proportion A pointer to store the proportion in.
- * @param diff A pointer to store the diff in.
- * @param timestamp A pointer to store the timestamp in.
+ * @param proportion A reference to store the proportion in.
+ * @param diff A reference to store the diff in.
+ * @param timestamp A reference to store the timestamp in.
*/
void parse(double& proportion, ClockTimeDiff& diff, ClockTime& timestamp) const;
_IGNORE(gst_event_parse_qos)
+
+ /** Get the proportion in the qos event. See create() for more information
+ * about the different QoS values.
+ *
+ * @return The proportion.
+ */
+ double parse() const;
+
+ /** Get the diff in the qos event. See create() for more information about
+ * the different QoS values.
+ *
+ * @return The difference.
+ */
+ ClockTimeDiff parse_diff() const;
+
+ /** Get the timestamp in the qos event. See create() for more information
+ * about the different QoS values.
+ * @return The timestamp.
+ */
+ ClockTime parse_timestamp() const;
};
/** A seek event. See create() for more details.
@@ -487,7 +601,9 @@ public:
* @param stop The value of the new stop position.
* @return A new seek event.
*/
- static Glib::RefPtr<Gst::Event> create(double rate, Format format, SeekFlags flags, SeekType start_type, gint64 start, SeekType stop_type, gint64 stop);
+ static Glib::RefPtr<Gst::Event> create(double rate, Format format,
+ SeekFlags flags, SeekType start_type, gint64 start, SeekType stop_type,
+ gint64 stop);
/** Parses a seek event and stores the results in the given result locations.
*
@@ -501,8 +617,45 @@ public:
* position.
* @param stop Result location for the stop postion expressed in format.
*/
- void parse(double& rate, Format& format, SeekFlags& flags, SeekType& start_type, gint64& start, SeekType& stop_type, gint64& stop) const;
+ void parse(double& rate, Format& format, SeekFlags& flags,
+ SeekType& start_type, gint64& start, SeekType& stop_type,
+ gint64& stop) const;
_IGNORE(gst_event_parse_seek)
+
+ /** Parses the start of a seek event.
+ * @return The start.
+ */
+ gint64 parse() const;
+
+ /** Parses the rate of a seek event.
+ * @return The rate.
+ */
+ double parse_rate() const;
+
+ /** Parses the format of a seek event.
+ * @return The format.
+ */
+ Format parse_format() const;
+
+ /** Parses the flags of a seek event.
+ * @return The flags.
+ */
+ SeekFlags parse_flags() const;
+
+ /** Parses the start type of a seek event.
+ * @return The start type.
+ */
+ SeekType parse_start_type() const;
+
+ /** Parses the stop type of a seek event.
+ * @return The stop type.
+ */
+ SeekType parse_stop_type() const;
+
+ /** Parses the stop of a seek event.
+ * @param The stop.
+ */
+ gint64 parse_stop() const;
};
/** A Navigation event. See create() for more details.
@@ -543,9 +696,9 @@ public:
/** Get the latency in the latency event.
*
- * @param latency A pointer to store the latency in.
+ * @return The latency.
*/
- void parse(ClockTime& latency) const;
+ ClockTime parse() const;
_IGNORE(gst_event_parse_latency)
};
@@ -593,6 +746,31 @@ public:
void parse(Gst::Format& format, guint64& amount, double& rate,
bool& flush, bool& intermediate) const;
_IGNORE(gst_event_parse_step)
+
+ /** Get the amount in a step event.
+ * @return The amount.
+ */
+ guint64 parse() const;
+
+ /** Get the format in a step event.
+ * @return The format.
+ */
+ Gst::Format parse_format() const;
+
+ /** Get the rate in a step event.
+ * @return The rate.
+ */
+ double parse_rate() const;
+
+ /** Get the flush in a step event.
+ * @return The flush flag.
+ */
+ bool parse_flush() const;
+
+ /** Get the intermediate flag in a step event.
+ * @return The intermediate flag.
+ */
+ bool parse_intermediate() const;
};
} //namespace Gst
diff --git a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
index bb5c064..bd6a854 100644
--- a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
+++ b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
@@ -597,6 +597,7 @@ void generate_hg_file(const Glib::ustring& includeMacroCalls,
void generate_ccg_file(const Glib::ustring& enumGTypeFunctionDefinitions,
const Glib::ustring& cClassSignalDeclarations)
{
+ std::cout << "// Generated by generate_plugin_gmmproc_file. Don't edit this file." << std::endl << std::endl;
std::cout << "include(plugingen_base.m4)dnl" << std::endl;
std::cout << "changecom()dnl" << std::endl;
std::cout << "_PINCLUDE(" << parentInclude << "/private/" <<
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]