blob: ab6c47dd9552c6eaddbc56b34fcc5d4338eefe2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* This file is part of MXE.
* See index.html for further 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;
}
|