class QTimer;
class QPixmap;
-namespace Mlt {
+namespace Mlt
+{
class Consumer;
class Playlist;
class Tractor;
-class Render: public QObject {
+class Render: public QObject
+{
Q_OBJECT public:
enum FailStates { OK = 0,
/** Seeks the renderer clip to the given time. */
void seek(GenTime time);
void seekToFrame(int pos);
- bool m_isBlocked;
+ int m_isBlocked;
//static QPixmap getVideoThumbnail(char *profile, QString file, int frame, int width, int height);
QPixmap getImageThumbnail(KUrl url, int width, int height);
void setSceneList(QString playlist, int position = 0);
void setProducer(Mlt::Producer *producer, int position);
const QString sceneList();
- void saveSceneList(QString path, QDomElement kdenliveData = QDomElement());
+ bool saveSceneList(QString path, QDomElement kdenliveData = QDomElement());
/** Wraps the VEML command of the same name. Tells the renderer to
play the current scene at the speed specified, relative to normal
QList <Mlt::Producer *> producersList();
void updatePreviewSettings();
+ void setDropFrames(bool show);
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... */
QString m_name;
Mlt::Consumer * m_mltConsumer;
Mlt::Producer * m_mltProducer;
- Mlt::Producer *m_mltTextProducer;
- Mlt::Filter *m_osdInfo;
Mlt::Profile *m_mltProfile;
double m_framePosition;
double m_fps;
bool m_isSplitView;
Mlt::Producer *m_blackClip;
- /** Holds the path to on screen display profile */
- QString m_osdProfile;
QString m_activeProfile;
- QTimer *refreshTimer;
- QTimer *osdTimer;
- KUrl m_exportedFile;
+ QTimer *m_refreshTimer;
+ QTimer *m_osdTimer;
/** A human-readable description of this renderer. */
int m_winid;
- int m_externalwinid;
/** Sets the description of this renderer to desc. */
void closeMlt();
void durationChanged(int);
void rendererPosition(int);
void rendererStopped(int);
- void removeInvalidClip(const QString &);
+ void removeInvalidClip(const QString &, bool replaceProducer);
+ void refreshDocumentProducers();
public slots: // Public slots
/** Start Consumer */