X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frenderer.h;h=ecbf6bc3f376d95ffa5d71dc99e0350f9cec8566;hb=6e140f856eeee8a9fd21797b711e93c0846d88fe;hp=eda891903b6570d318b56ea54e88a438c4e2e8e5;hpb=4ad47e1a1caa211d9beb43bc53046cbd5ab58113;p=kdenlive diff --git a/src/renderer.h b/src/renderer.h index eda89190..ecbf6bc3 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -41,7 +41,8 @@ class Render; class QTimer; class QPixmap; -namespace Mlt { +namespace Mlt +{ class Consumer; class Playlist; class Tractor; @@ -54,7 +55,8 @@ class Multitrack; -class Render: public QObject { +class Render: public QObject +{ Q_OBJECT public: enum FailStates { OK = 0, @@ -67,7 +69,7 @@ Q_OBJECT public: /** 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); @@ -187,14 +189,13 @@ Q_OBJECT public: QList 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; @@ -209,17 +210,13 @@ private: // Private attributes & methods 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(); @@ -259,7 +256,8 @@ signals: // Signals 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 */