]> git.sesse.net Git - mlt/commitdiff
read filter params correct, set interpol type
authorMarco Gittler <g.marco@freenet.de>
Tue, 20 Sep 2011 08:48:51 +0000 (10:48 +0200)
committerDan Dennedy <dan@dennedy.org>
Mon, 31 Oct 2011 04:52:36 +0000 (21:52 -0700)
src/modules/videostab/filter_videostab2.c

index 1587c91556c688ec61e81bce4f9e62cee704fe9b..2e17ee44a6f737e46ea6b648b2ab1bc3917db4a5 100644 (file)
@@ -129,13 +129,13 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
                        self->initialized = 1;
                        self->width=w;
                        self->height=h;
-                       self->framesize=w*h* 3;//( mlt_image_format_size ( *format, w,h , 0) ; // 3/2 =1 too small
-                       self->shakiness = mlt_properties_get_int( MLT_FRAME_PROPERTIES(frame) , "shakiness" );
-                       self->accuracy = mlt_properties_get_int( MLT_FRAME_PROPERTIES(frame) , "accuracy" );
-                       self->stepsize = mlt_properties_get_int( MLT_FRAME_PROPERTIES(frame) , "stepsize" );
-                       self->algo = mlt_properties_get_int( MLT_FRAME_PROPERTIES(frame) , "algo" );
-                       self->show = mlt_properties_get_int( MLT_FRAME_PROPERTIES(frame) , "show" );
-                       self->contrast_threshold = mlt_properties_get_double( MLT_FRAME_PROPERTIES(frame) , "mincontrast" );
+                       self->framesize=w*h* 3/2;//( mlt_image_format_size ( *format, w,h , 0) ; // 3/2 =1 too small
+                       self->shakiness = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter) , "shakiness" );
+                       self->accuracy = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter) , "accuracy" );
+                       self->stepsize = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter) , "stepsize" );
+                       self->algo = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter) , "algo" );
+                       self->show = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter) , "show" );
+                       self->contrast_threshold = mlt_properties_get_double( MLT_FILTER_PROPERTIES(filter) , "mincontrast" );
                        stabilize_configure(self);
                }
                char *vectors = mlt_properties_get( MLT_FILTER_PROPERTIES(filter), "vectors" );
@@ -178,7 +178,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
                                        interp = 3;
                                else if ( strcmp( interps, "bicublin" ) == 0 )
                                        interp = 4;
-
+                               tf->interpoltype = interp;
                                transform_configure(tf,w,h,*format ,*image, deserialize_vectors(  vectors, length ),length);
                                
                        }