]> git.sesse.net Git - kdenlive/blobdiff - src/clipstabilize.cpp
* Cleanup transode stabilize GUI: http://kdenlive.org/mantis/view.php?id=2930
[kdenlive] / src / clipstabilize.cpp
index 850855219334692f41e449baeddae035cc26aaf9..dcfd55c47404459eeb1b0b2ff429a58a85984b6d 100644 (file)
@@ -80,19 +80,21 @@ ClipStabilize::ClipStabilize(const QString &dest, int count, const QString &filt
         ls << "shutterangle,type,int,value,0,min,0,max,180,tooltip,Angle that Images could be maximum rotated";
         fillParameters(ls);
     }else if (m_filtername=="videostab2"){
+       // Some default params have to be set:
+       m_fixedParams << "algo=1" << "relative=1";
         QStringList ls;
-        ls << "accuracy,type,int,value,4,min,1,max,10,tooltip,Accuracy of Shakiness detection";
+        ls << "accuracy,type,int,value,8,min,1,max,10,tooltip,Accuracy of Shakiness detection";
         ls << "shakiness,type,int,value,4,min,1,max,10,tooltip,How shaky is the Video";
         ls << "stepsize,type,int,value,6,min,0,max,100,tooltip,Stepsize of Detection process minimum around";
-        ls << "algo,type,bool,value,1,min,0,max,1,tooltip,0 = Bruteforce 1 = small measurement fields";
+        //ls << "algo,type,bool,value,1,min,0,max,1,tooltip,0 = Bruteforce 1 = small measurement fields";
         ls << "mincontrast,type,double,value,0.3,min,0,max,1,factor,1,decimals,2,tooltip,Below this Contrast Field is discarded";
-        ls << "show,type,int,value,0,min,0,max,2,tooltip,0 = draw nothing. 1 or 2 show fields and transforms";
+        //ls << "show,type,int,value,0,min,0,max,2,tooltip,0 = draw nothing. 1 or 2 show fields and transforms";
         ls << "smoothing,type,int,value,10,min,0,max,100,tooltip,number of frames for lowpass filtering";
         ls << "maxshift,type,int,value,-1,min,-1,max,1000,tooltip,max number of pixels to shift";
         ls << "maxangle,type,int,value,-1,min,-1,max,1000,tooltip,max anglen to rotate (in rad)";
         ls << "crop,type,bool,value,0,min,0,max,1,tooltip,0 = keep border  1 = black background";
-        ls << "invert,type,bool,value,0,min,0,max,1,tooltip,invert transform";
-        ls << "relative,type,bool,value,1,min,0,max,1,tooltip,0 = absolute transform  1= relative";
+        //ls << "invert,type,bool,value,0,min,0,max,1,tooltip,invert transform";
+        //ls << "relative,type,bool,value,1,min,0,max,1,tooltip,0 = absolute transform  1= relative";
         ls << "zoom,type,int,value,0,min,-500,max,500,tooltip,additional zoom during transform";
         ls << "optzoom,type,bool,value,1,min,0,max,1,tooltip,use optimal zoom (calulated from transforms)";
         ls << "sharpen,type,double,value,0.8,min,0,max,1,decimals,1,tooltip,sharpen transformed image";
@@ -145,7 +147,7 @@ QStringList ClipStabilize::params()
     params << QString();
     // filter
     params << m_filtername;
-    QStringList filterparamsList;
+    QStringList filterparamsList = m_fixedParams;
     QHashIterator <QString,QHash<QString,QString> > it(m_ui_params);
     while (it.hasNext()){
         it.next();