#include <QList>
#include <QEvent>
+#ifdef Q_WS_MAC
+#include "videoglwidget.h"
+#endif
+
/**Render encapsulates the client side of the interface to a renderer.
From Kdenlive's point of view, you treat the Render object as the
void stop(const GenTime & startTime);
void setVolume(double volume);
- QPixmap extractFrame(int frame_position, int width = -1, int height = -1);
+ QImage extractFrame(int frame_position, int width = -1, int height = -1);
/** Wraps the VEML command of the same name. Tells the renderer to
play the current scene at the speed specified, relative to normal
playback. e.g. 1.0 is normal speed, 0.0 is paused, -1.0 means play
in the ClipManager list and speed is the current speed */
int mltChangeClipSpeed(ItemInfo info, double speed, double oldspeed, int strobe, Mlt::Producer *prod);
- QList <Mlt::Producer *> producersList();
+ const QList <Mlt::Producer *> producersList();
void updatePreviewSettings();
void setDropFrames(bool show);
+ QString updateSceneListFps(double current_fps, double new_fps, QString scene);
+#ifdef Q_WS_MAC
+ void showFrame(Mlt::Frame&);
+#endif
private: // Private attributes & methods
/** The name of this renderer - useful to identify the renderes by what they do - e.g. background rendering, workspace monitor, etc... */
/** A human-readable description of this renderer. */
int m_winid;
+#ifdef Q_WS_MAC
+ VideoGLWidget *m_glWidget;
+#endif
+
/** Sets the description of this renderer to desc. */
void closeMlt();
void mltCheckLength(Mlt::Tractor *tractor);
void removeInvalidClip(const QString &, bool replaceProducer);
void refreshDocumentProducers();
void blockMonitors();
+ /** Used on OS X - emitted when a frame's image is to be shown. */
+ void showImageSignal(QImage);
public slots: // Public slots
/** Start Consumer */
/** Wraps the VEML command of the same name. Requests the file properties
for the specified url from the renderer. Upon return, the result will be emitted
via replyGetFileProperties(). */
- void getFileProperties(const QDomElement &xml, const QString &clipId, bool replaceProducer = true);
+ void getFileProperties(const QDomElement xml, const QString &clipId, bool replaceProducer = true);
void exportFileToFirewire(QString srcFileName, int port, GenTime startTime, GenTime endTime);
static char *decodedString(QString str);