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.
41 lines
770 B
41 lines
770 B
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <string>
|
|
|
|
#include "configuration.h"
|
|
#include "miniwebcam.h"
|
|
|
|
void ErrorExit(std::string text, int errorcode) {
|
|
printf ("Error: %s\n", text.c_str());
|
|
exit (errorcode);
|
|
};
|
|
|
|
int main(int argc, char **argv) {
|
|
config.LoadArgs (argc, argv);
|
|
config.LoadFile (config.GetFilename());
|
|
if (config.GetInitFlags() & CONF_INITFLAGS_PRINT) {
|
|
config.PrintConfig();
|
|
return 0;
|
|
}
|
|
|
|
if (config.GetInitFlags() & CONF_INITFLAGS_HELP) {
|
|
config.Help();
|
|
return 0;
|
|
}
|
|
|
|
printf ("MiniWebCam:\n");
|
|
VideoFrame v;
|
|
VideoFrameFloat vf;
|
|
|
|
printf ("VideoFrame Size:\n");
|
|
v.SetSize(100,100);
|
|
|
|
printf ("VideoFrameFloat Size:\n");
|
|
vf.SetSize(100,100);
|
|
|
|
return 0;
|
|
};
|
|
|