X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fdocclipbase.h;h=c56af7174fab72dd5369af332955278e6e8193a8;hb=32c8c40056e65b230f058b168e8e078ba066038b;hp=e6e722c25447d1a3b57d80b8d2c53423e908c281;hpb=1b39be5477c846cb3f4466d7d164144401d7f263;p=kdenlive diff --git a/src/docclipbase.h b/src/docclipbase.h index e6e722c2..c56af717 100644 --- a/src/docclipbase.h +++ b/src/docclipbase.h @@ -200,12 +200,19 @@ Q_OBJECT public: void cleanupProducers(); bool isClean() const; bool getAudioThumbs(); - void setAnalysisData(const QString &name, const QString &data); + void setAnalysisData(const QString &name, const QString &data, int offset = 0); QMap analysisData() const; int lastSeekPosition; /** Cache for every audio Frame with 10 Bytes */ /** format is frame -> channel ->bytes */ QMap > audioFrameCache; + /** Returns all current properties for this clip */ + QMap properties() const; + /** Return the current values for a set of properties */ + QMap currentProperties(QMap props); + QMap metadata() const; + /** @brief Returns a short info string about the clip to display in tooltip */ + const QString shortInfo() const; private: // Private attributes /** The number of times this clip is used in the project - the number of references to this clip @@ -236,7 +243,7 @@ private: // Private attributes /** Holds clip infos like fps, size,... */ QMap m_properties; /** Holds clip metadata like author, copyright,... */ - QMap m_metadata; + QMap m_metadata; /** Holds clip analysis data that can be used later to create markers or keyframes */ QMap m_analysisdata; @@ -256,6 +263,8 @@ private: // Private attributes void adjustProducerProperties(Mlt::Producer *prod, const QString &id, bool mute, bool blind); /** @brief Create another instance of a producer. */ Mlt::Producer *cloneProducer(Mlt::Producer *source); + /** @brief Offset all keyframes of a geometry. */ + const QString geometryWithOffset(QString data, int offset); public slots: @@ -273,12 +282,7 @@ public slots: void setClipThumbFrame(const uint &ix); uint getClipThumbFrame() const; void setProperties(QMap properties); - void setMetadata(QMap properties); - /** Returns all current properties for this clip */ - QMap properties() const; - /** Return the current values for a set of properties */ - QMap currentProperties(QMap props); - QMap metadata() const; + void setMetadata(QMap properties, QString tool = QString()); void slotExtractImage(QList frames); signals: