]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.h
Fix most of the effect stack corruptions when moving or disabling / enabling an effect
[kdenlive] / src / renderer.h
index 241459a17171cdcf6d3e44dcbc3b79d432eb9e40..f1790149555dbf504f243e8d3593b459204dc08e 100644 (file)
@@ -181,10 +181,17 @@ Q_OBJECT public:
     bool mltMoveClip(int startTrack, int endTrack, GenTime pos, GenTime moveStart, Mlt::Producer *prod);
     bool mltMoveClip(int startTrack, int endTrack, int pos, int moveStart, Mlt::Producer *prod);
     bool mltRemoveClip(int track, GenTime position);
+    /** Delete an effect to a clip in MLT's playlist */
     bool mltRemoveEffect(int track, GenTime position, QString index, bool updateIndex, bool doRefresh = true);
+    /** Add an effect to a clip in MLT's playlist */
     bool mltAddEffect(int track, GenTime position, EffectsParameterList params, bool doRefresh = true);
+    /** Edit an effect parameters in MLT */
     bool mltEditEffect(int track, GenTime position, EffectsParameterList params);
+    /** This only updates the "kdenlive_ix" (index) value of an effect */
+    void mltUpdateEffectPosition(int track, GenTime position, int oldPos, int newPos);
+    /** This changes the order of effects in MLT, inverting effects from oldPos and newPos, also updating the kdenlive_ix value */
     void mltMoveEffect(int track, GenTime position, int oldPos, int newPos);
+    /** This changes the state of a track, enabling / disabling audio and video */
     void mltChangeTrackState(int track, bool mute, bool blind);
     bool mltMoveTransition(QString type, int startTrack,  int newTrack, int newTransitionTrack, GenTime oldIn, GenTime oldOut, GenTime newIn, GenTime newOut);
     bool mltAddTransition(QString tag, int a_track, int b_track, GenTime in, GenTime out, QDomElement xml, bool refresh = true);