#include <event.h>
Public Member Functions | |
EventStep (GstEvent* event) | |
void | parse (Gst::Format& format, guint64& amount, double& rate, bool& flush, bool& intermediate) const |
Parse the step event. | |
guint64 | parse () const |
Get the amount in a step event. | |
Gst::Format | parse_format () const |
Get the format in a step event. | |
double | parse_rate () const |
Get the rate in a step event. | |
bool | parse_flush () const |
Get the flush in a step event. | |
bool | parse_intermediate () const |
Get the intermediate flag in a step event. | |
Static Public Member Functions | |
static Glib::RefPtr<Gst::Event> | create (Gst::Format format, guint64 amount, double rate, bool flush, bool intermediate) |
Create a new step event. |
See create() for more details.
Gst::EventStep::EventStep | ( | GstEvent * | event | ) | [explicit] |
static Glib::RefPtr<Gst::Event> Gst::EventStep::create | ( | Gst::Format | format, | |
guint64 | amount, | |||
double | rate, | |||
bool | flush, | |||
bool | intermediate | |||
) | [static] |
Create a new step event.
The purpose of the step event is to instruct a sink to skip amount (expressed in format) of media. It can be used to implement stepping through the video frame by frame or for doing fast trick modes.
A rate of <= 0.0 is not allowed, pause the pipeline or reverse the playback direction of the pipeline to get the same effect.
The flush flag will clear any pending data in the pipeline before starting the step operation.
The intermediate flag instructs the pipeline that this step operation is part of a larger step operation.
format | The format of amount. | |
amount | The amount of data to step. | |
rate | The step rate. | |
flush | Flushing steps. | |
intermediate | Intermediate steps. |
guint64 Gst::EventStep::parse | ( | ) | const |
Get the amount in a step event.
void Gst::EventStep::parse | ( | Gst::Format& | format, | |
guint64 & | amount, | |||
double & | rate, | |||
bool & | flush, | |||
bool & | intermediate | |||
) | const |
Parse the step event.
format | A reference to store the format in. | |
amount | A reference to store the amount in. | |
rate | A reference to store the rate in. | |
flush | A reference to store the flush boolean in. | |
intermediate | A reference to store the intermediate boolean in. |
bool Gst::EventStep::parse_flush | ( | ) | const |
Get the flush in a step event.
Gst::Format Gst::EventStep::parse_format | ( | ) | const |
Get the format in a step event.
bool Gst::EventStep::parse_intermediate | ( | ) | const |
Get the intermediate flag in a step event.
double Gst::EventStep::parse_rate | ( | ) | const |
Get the rate in a step event.