You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/vidstab-test.c

34 lines
703 B

/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#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;
vsMotionDetectionCleanup(&md);
return 0;
}