- /** @brief Updates the keyframes in the pan and zoom effect to fit the clips cropDuration.
- * @param width Render width
- * @param height Render height
- * @param cut (optional) if clip was cut, cut position relative to the original's clip position
- * @return List of the pan and zoom effects indexes
- *
- * 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, ItemInfo oldInfo);
+ bool updateNormalKeyframes(QDomElement parameter, ItemInfo oldInfo);
+
+ /** @brief Adjusts effects after a clip duration change. */
+ QMap<int, QDomElement> adjustEffectsToDuration(int width, int height, const ItemInfo &oldInfo);
+
+ /** Returns the necessary (audio, video, general) producer.
+ * @param track Track of the requested producer
+ * @param trackSpecific (default = true) Whether to return general producer for a specific track.
+ * @return Fitting producer
+ * Which producer is returned depends on the type of this clip (audioonly, videoonly, normal) */
+ Mlt::Producer *getProducer(int track, bool trackSpecific = true);
+ void resetFrameWidth(int width);
+ /** @brief Clip is about to be deleted, block thumbs. */
+ void stopThumbs();
+
+ /** @brief Get a free index value for effect group. */
+ int nextFreeEffectGroupIndex() const;