* Added a new property "zoomspeed" for adaptive zooming feature.
* Removed a no longer used "sharpen" property.
tdconf.crop = (VSBorderType) mlt_properties_get_int(properties, "crop");
tdconf.zoom = mlt_properties_get_int(properties, "zoom");
tdconf.optZoom = mlt_properties_get_int(properties, "optzoom");
+ tdconf.zoomSpeed = mlt_properties_get_double(properties, "zoomspeed");
tdconf.relative = 1;
tdconf.invert = 0;
vsFrameFillFromBuffer(&vsFrame, *image, &md->fi);
vsMotionDetection(md, &localmotions, &vsFrame);
- motion = vsSimpleMotionsToTransform(td, &localmotions);
+ motion = vsSimpleMotionsToTransform(md->fi, FILTER_NAME, &localmotions);
vs_vector_del(&localmotions);
vsTransformPrepare(td, &vsFrame, &vsFrame);
mlt_properties_set(properties, "crop", "0");
mlt_properties_set(properties, "zoom", "0");
mlt_properties_set(properties, "optzoom", "1");
- mlt_properties_set(properties, "sharpen", "0.8");
+ mlt_properties_set(properties, "zoomspeed", "0.25");
return filter;
}
- identifier: optzoom
title: Optimal Zoom
type: integer
- description: automatically determine optimal zoom (transform)
+ description: automatically determine optimal zoom. 1 - static zoom, 2 - adaptive zoom (transform)
readonly: no
required: no
minimum: 0
- maximum: 1
+ maximum: 2
default: 1
mutable: yes
widget: spinner
- - identifier: sharpen
- title: Sharpen Image
+ - identifier: zoomspeed
+ title: Optimal Zoom Speed
type: float
- description: amount of sharpening (transform)
+ description: zoom per frame in percent, (used when optzoom = 2) (transform)
readonly: no
required: no
minimum: 0
- maximum: 10
- default: 0.8
+ maximum: 1
+ default: 0.25
mutable: yes
widget: spinner
mlt_properties_set(properties, "relative", "1");
mlt_properties_set(properties, "zoom", "0");
mlt_properties_set(properties, "optzoom", "1");
- mlt_properties_set(properties, "sharpen", "0.8");
+ mlt_properties_set(properties, "zoomspeed", "0.25");
mlt_properties_set(properties, "vid.stab.version", LIBVIDSTAB_VERSION);
mlt_properties_set_data(properties, "vectors", data->animation, 1, (mlt_destructor) mlt_animation_close,
- identifier: optzoom
title: Optimal Zoom
type: integer
- description: automatically determine optimal zoom (transform)
+ description: automatically determine optimal zoom. 1 - static zoom, 2 - adaptive zoom (transform)
readonly: no
required: no
minimum: 0
- maximum: 1
+ maximum: 2
default: 1
mutable: yes
widget: spinner
+ - identifier: zoomspeed
+ title: Optimal Zoom Speed
+ type: float
+ description: zoom per frame in percent, (used when optzoom = 2) (transform)
+ readonly: no
+ required: no
+ minimum: 0
+ maximum: 1
+ default: 0.25
+ mutable: yes
+ widget: spinner
+
- identifier: refresh
description: >
Applications should set this when it updates a transform parameter.
conf.crop = (VSBorderType) mlt_properties_get_int(properties, "crop");
conf.zoom = mlt_properties_get_int(properties, "zoom");
conf.optZoom = mlt_properties_get_int(properties, "optzoom");
+ conf.zoomSpeed = mlt_properties_get_double(properties, "zoomspeed");
conf.relative = mlt_properties_get_int(properties, "relative");
conf.invert = mlt_properties_get_int(properties, "invert");
if (mlt_properties_get_int(properties, "tripod") != 0)
mlt_properties_set(properties, "relative", "1");
mlt_properties_set(properties, "zoom", "0");
mlt_properties_set(properties, "optzoom", "1");
+ mlt_properties_set(properties, "zoomspeed", "0.25");
return filter;
}
- identifier: optzoom
title: Optimal Zoom
type: integer
- description: automatically determine optimal zoom (transform)
+ description: automatically determine optimal zoom. 1 - static zoom, 2 - adaptive zoom (transform)
readonly: no
required: no
minimum: 0
- maximum: 1
+ maximum: 2
default: 1
mutable: yes
widget: spinner
+ - identifier: zoomspeed
+ title: Optimal Zoom Speed
+ type: float
+ description: zoom per frame in percent, (used when optzoom = 2) (transform)
+ readonly: no
+ required: no
+ minimum: 0
+ maximum: 1
+ default: 0.25
+ mutable: yes
+ widget: spinner
+
- identifier: refresh
description: >
Applications should set this when it updates a transform parameter.