39 namespace ArgusSamples
46 gettimeofday(&val, NULL);
56 FILE *fp = fopen(filename,
"w");
64 fprintf(stderr,
"--------------------------------------------------------------------\n");
65 fprintf(stderr,
"Failure to open file '%s' for writing.\n", filename);
66 fprintf(stderr,
"Error return code:%d (%s)\n", errno, strerror(errno));
69 fprintf(stderr,
"Use command line parameter --outputpath to\n");
70 fprintf(stderr,
"point to a directory you have permission to write into.\n");
72 fprintf(stderr,
"As in: argus_camera --outputpath='/sdcard/DCIM' -s1 -x\n");
74 fprintf(stderr,
"As in: argus_camera --outputpath='/tmp' -s1 -x\n");
77 fprintf(stderr,
"--------------------------------------------------------------------\n");