interp = 3;
else if ( strcmp( interps, "bicublin" ) == 0 )
interp = 4;
+
tf->interpoltype = interp;
+ tf->smoothing = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "smoothing" );
+ tf->maxshift = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "maxshift" );
+ tf->maxangle = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "maxangle" );
+ tf->crop = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "crop" );
+ tf->invert = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "invert" );
+ tf->relative = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "relative" );
+ tf->zoom = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "zoom" );
+ tf->optzoom = mlt_properties_get_int( MLT_FILTER_PROPERTIES(filter), "optzoom" );
+ tf->sharpen = mlt_properties_get_double( MLT_FILTER_PROPERTIES(filter), "sharpen" );
+
transform_configure(tf,w,h,*format ,*image, deserialize_vectors( vectors, length ),length);
}
parent->close = filter_close;
parent->process = filter_process;
self->parent = parent;
+ //properties for stabilize
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "shakiness", "4" );
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "accuracy", "4" );
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "stepsize", "6" );
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "algo", "1" );
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "mincontrast", "0.3" );
mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "show", "0" );
+
+ //properties for transform
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "smoothing", "10" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "maxshift", "-1" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "maxangle", "-1" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "crop", "0" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "invert", "0" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "relative", "1" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "zoom", "0" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "optzoom", "1" );
+ mlt_properties_set( MLT_FILTER_PROPERTIES(parent), "sharpen", "0.8" );
return parent;
}
return NULL;
td->warned_transform_end = 0;
/* Options */
- td->maxshift = -1;
- td->maxangle = -1;
+ // set from filter td->maxshift = -1;
+ // set from filter td->maxangle = -1;
- td->crop = 0;
- td->relative = 1;
- td->invert = 0;
- td->smoothing = 10;
+ // set from filter td->crop = 0;
+ // set from filter td->relative = 1;
+ // set from filter td->invert = 0;
+ // set from filter td->smoothing = 10;
td->rotation_threshhold = 0.25/(180/M_PI);
- td->zoom = 0;
- td->optzoom = 1;
+ // set from filter td->zoom = 0;
+ // set from filter td->optzoom = 1;
// set from filter td->interpoltype = 2; // bi-linear
- td->sharpen = 0.8;
+ // set from filter td->sharpen = 0.8;
td->interpoltype = TC_MIN(td->interpoltype,4);
if (1) {
mlt_log_warning(NULL, "Image Transformation/Stabilization Settings:\n");
- mlt_log_warning(NULL, " input = %s\n", td->input);
mlt_log_warning(NULL, " smoothing = %d\n", td->smoothing);
mlt_log_warning(NULL, " maxshift = %d\n", td->maxshift);
mlt_log_warning(NULL, " maxangle = %f\n", td->maxangle);