2014-08-16 02:06:36 +01:00
|
|
|
/*
|
2016-08-22 20:52:34 +01:00
|
|
|
* This file is part of MXE. See LICENSE.md for licensing information.
|
2014-08-16 02:06:36 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <vid.stab/libvidstab.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
VSFrameInfo fi;
|
|
|
|
VSMotionDetect md;
|
|
|
|
VSMotionDetectConfig conf;
|
|
|
|
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
|
|
|
conf.algo = 1;
|
|
|
|
conf.modName = "vidstabtest";
|
|
|
|
conf.shakiness = 5;
|
|
|
|
conf.accuracy = 15;
|
|
|
|
conf.stepSize = 6;
|
|
|
|
conf.contrastThreshold = 0.25;
|
|
|
|
conf.show = 0;
|
|
|
|
conf.virtualTripod = 0;
|
|
|
|
|
|
|
|
vsFrameInfoInit(&fi, 320, 240, PF_YUV420P);
|
|
|
|
|
|
|
|
if (vsMotionDetectInit(&md, &conf, &fi) != VS_OK)
|
|
|
|
return 1;
|
2014-10-29 10:09:07 +00:00
|
|
|
|
2014-08-16 02:06:36 +01:00
|
|
|
vsMotionDetectionCleanup(&md);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|