]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.h
Fix corruption when changing project's fps
[kdenlive] / src / clipitem.h
index 77708af77071dc66203ec3a5a86caaee30eb8443..87b9baa665d7b70b4881b4a09257cfa7282f3188 100644 (file)
@@ -55,6 +55,7 @@ public:
     void resizeStart(int posx, bool size = true);
     void resizeEnd(int posx);
     OPERATIONTYPE operationMode(QPointF pos);
+    static int itemHeight();
     const QString clipProducer() const;
     int clipType() const;
     DocClipBase *baseClip() const;
@@ -167,9 +168,11 @@ public:
      * 
      * Can be used for all effects using mlt_geometry with keyframes, but at the moment Pan & Zoom is the only one. */
     QList <int> updatePanZoom(int width, int height, int cut = 0);
-    void updateGeometryKeyframes(QDomElement effect, int paramIndex, int width, int height, int cut = 0);
-    bool updateNormalKeyframes(QDomElement parameter, const int previous, const int current, bool fromStart);
-    QMap<int, QDomElement> adjustEffectsToDuration(int width, int height, int previous, int current,  bool fromStart);
+    void updateGeometryKeyframes(QDomElement effect, int paramIndex, int width, int height, ItemInfo oldInfo);
+    bool updateNormalKeyframes(QDomElement parameter);
+
+    /** @brief Adjusts effects after a clip duration change. */
+    QMap<int, QDomElement> adjustEffectsToDuration(int width, int height, ItemInfo oldInfo);
 
     /** Returns the necessary (audio, video, general) producer.
      * @param track Track of the requested producer