17 #ifndef QGST_MESSAGE_H
18 #define QGST_MESSAGE_H
20 #include "clocktime.h"
21 #include "miniobject.h"
22 #include "structure.h"
53 quint64 timestamp()
const;
54 QString typeName()
const;
55 MessageType type()
const;
57 StructureConstPtr internalStructure();
59 quint32 sequenceNumber()
const;
60 void setSequenceNumber(quint32 num);
68 QGST_WRAPPER_FAKE_SUBCLASS(Eos,
Message)
78 QGST_WRAPPER_FAKE_SUBCLASS(Error,
Message)
84 QString debugMessage()
const;
92 QGST_WRAPPER_FAKE_SUBCLASS(Warning,
Message)
98 QString debugMessage()
const;
106 QGST_WRAPPER_FAKE_SUBCLASS(Info,
Message)
112 QString debugMessage()
const;
120 QGST_WRAPPER_FAKE_SUBCLASS(Tag,
Message)
132 QGST_WRAPPER_FAKE_SUBCLASS(Buffering,
Message)
137 BufferingMode mode()
const;
138 int averageInputRate()
const;
139 int averageOutputRate()
const;
140 qint64 bufferingTimeLeft()
const;
142 void setStats(BufferingMode mode,
int avgIn,
int avgOut, qint64 bufferingLeft);
150 QGST_WRAPPER_FAKE_SUBCLASS(StateChanged,
Message)
153 State oldState, State newState, State pending);
155 State oldState()
const;
156 State newState()
const;
157 State pendingState()
const;
167 QGST_WRAPPER_FAKE_SUBCLASS(StepDone,
Message)
170 double rate,
bool flush,
bool intermediate, quint64 duration,
bool eos);
172 Format format()
const;
173 quint64 amount()
const;
175 bool isFlushingStep()
const;
176 bool isIntermediateStep()
const;
177 quint64 duration()
const;
178 bool causedEos()
const;
189 QGST_WRAPPER_FAKE_SUBCLASS(StreamStatus,
Message)
192 StreamStatusType type,
const ElementPtr & owner);
194 StreamStatusType statusType()
const;
197 void setStreamStatusObject(
const QGlib::Value &
object);
205 QGST_WRAPPER_FAKE_SUBCLASS(Application,
Message)
229 QGST_WRAPPER_FAKE_SUBCLASS(SegmentDone,
Message)
233 Format format()
const;
234 qint64 position()
const;
242 QGST_WRAPPER_FAKE_SUBCLASS(DurationChanged,
Message)
253 QGST_WRAPPER_FAKE_SUBCLASS(Latency,
Message)
265 QGST_WRAPPER_FAKE_SUBCLASS(AsyncDone,
Message)
277 QGST_WRAPPER_FAKE_SUBCLASS(RequestState,
Message)
289 QGST_WRAPPER_FAKE_SUBCLASS(StepStart,
Message)
292 quint64 amount,
double rate,
bool flush,
bool intermediate);
293 bool isActive()
const;
294 Format format()
const;
295 quint64 amount()
const;
297 bool isFlushingStep()
const;
298 bool isIntermediateStep()
const;
306 QGST_WRAPPER_FAKE_SUBCLASS(Qos,
Message)
309 quint64 streamTime, quint64 timestamp, quint64 duration);
312 quint64 runningTime()
const;
313 quint64 streamTime()
const;
314 quint64 timestamp()
const;
315 quint64 duration()
const;
317 qint64 jitter()
const;
318 double proportion()
const;
320 void setValues(qint64 jitter,
double proportion,
int quality);
322 Format format()
const;
323 quint64 processed()
const;
324 quint64 dropped()
const;
325 void setStats(Format format, quint64 processed, quint64 dropped);
331 QGST_REGISTER_SUBCLASS(Message, Eos)
332 QGST_REGISTER_SUBCLASS(Message, Error)
333 QGST_REGISTER_SUBCLASS(Message, Warning)
334 QGST_REGISTER_SUBCLASS(Message, Info)
335 QGST_REGISTER_SUBCLASS(Message, Tag)
336 QGST_REGISTER_SUBCLASS(Message, Buffering)
337 QGST_REGISTER_SUBCLASS(Message, StateChanged)
338 QGST_REGISTER_SUBCLASS(Message, StepDone)
339 QGST_REGISTER_SUBCLASS(Message, StreamStatus)
340 QGST_REGISTER_SUBCLASS(Message, Application)
341 QGST_REGISTER_SUBCLASS(Message, Element)
342 QGST_REGISTER_SUBCLASS(Message, SegmentDone)
343 QGST_REGISTER_SUBCLASS(Message, DurationChanged)
344 QGST_REGISTER_SUBCLASS(Message, Latency)
345 QGST_REGISTER_SUBCLASS(Message, AsyncDone)
346 QGST_REGISTER_SUBCLASS(Message, RequestState)
347 QGST_REGISTER_SUBCLASS(Message, StepStart)
348 QGST_REGISTER_SUBCLASS(Message, Qos)
Wrapper class for GError.
Smart pointer class for working with wrapper classes that support reference counting.
Wrapper class for GValue.
Wrapper class for messages of type QGst::MessageApplication.
Wrapper class for messages of type QGst::MessageAsyncDone.
Wrapper class for messages of type QGst::MessageBuffering.
A datatype to hold a time, measured in nanoseconds.
Wrapper class for messages of type QGst::MessageDuration.
Wrapper class for messages of type QGst::MessageElement.
Wrapper class for GstElement.
Wrapper class for messages of type QGst::MessageEos.
Wrapper class for messages of type QGst::MessageError.
Wrapper class for messages of type QGst::MessageInfo.
Wrapper class for messages of type QGst::MessageLatency.
Wrapper class for GstMessage.
Wrapper class for GstMiniObject.
Wrapper class for messages of type QGst::MessageQos.
Wrapper class for messages of type QGst::MessageRequestState.
Wrapper class for messages of type QGst::MessageSegmentDone.
Wrapper class for messages of type QGst::MessageStateChanged.
Wrapper class for messages of type QGst::MessageStepDone.
Wrapper class for messages of type QGst::MessageStepStart.
Wrapper class for messages of type QGst::MessageStreamStatus.
Wrapper for GstStructure.
Wrapper class for GstTagList.
Wrapper class for messages of type QGst::MessageTag.
Wrapper class for messages of type QGst::MessageWarning.
Wrappers for GStreamer classes.