#ifndef RENDERER_H
#define RENDERER_H
+#include "gentime.h"
+#include "definitions.h"
+
+#include <kurl.h>
+
#include <qdom.h>
#include <qstring.h>
#include <qmap.h>
#include <QList>
+#include <QEvent>
-#include <kurl.h>
-
-#include "gentime.h"
-#include "definitions.h"
/**Render encapsulates the client side of the interface to a renderer.
From Kdenlive's point of view, you treat the Render object as the
};
+class MltErrorEvent : public QEvent
+{
+public:
+ MltErrorEvent(QString message) : QEvent(QEvent::User), m_message(message) {}
+ QString message() const {
+ return m_message;
+ }
+
+private:
+ QString m_message;
+};
+
class Render: public QObject
{
/** Seeks the renderer clip to the given time. */
void seek(GenTime time);
void seekToFrame(int pos);
+ void seekToFrameDiff(int diff);
int m_isBlocked;
//static QPixmap getVideoThumbnail(char *profile, QString file, int frame, int width, int height);
double playSpeed();
/** Returns the current seek position of the renderer. */
GenTime seekPosition() const;
+ int seekFramePosition() const;
void emitFrameNumber(double position);
void emitConsumerStopped();