opening a raspi bug hunt
This commit is contained in:
parent
4556887358
commit
b91c428370
@ -47,6 +47,7 @@ struct buffer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int verbosity;
|
int verbosity;
|
||||||
|
static int systrace;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
@ -54,6 +55,11 @@ static void xioctl(int fh, int request, void *arg)
|
|||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
/* may be imagine a system for displaying all call to this function ? */
|
||||||
|
if (systrace) {
|
||||||
|
fprintf(stderr, "xioctl fd=%d req=%d arg=%p\n", fh, request, arg);
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
r = v4l2_ioctl(fh, request, arg);
|
r = v4l2_ioctl(fh, request, arg);
|
||||||
} while (r == -1 && ((errno == EINTR) || (errno == EAGAIN)));
|
} while (r == -1 && ((errno == EINTR) || (errno == EAGAIN)));
|
||||||
@ -83,6 +89,7 @@ puts("\t-s WxH\t\tsize of capture");
|
|||||||
puts("\t-c mode\t\tcontrast enhancement");
|
puts("\t-c mode\t\tcontrast enhancement");
|
||||||
puts("\t-u\t\ttry upscaling...");
|
puts("\t-u\t\ttry upscaling...");
|
||||||
puts("\t-v\t\tincrease verbosity");
|
puts("\t-v\t\tincrease verbosity");
|
||||||
|
puts("\t-Z\t\tenable systrace");
|
||||||
if (verbosity) {
|
if (verbosity) {
|
||||||
puts("\n\t\tXXX list all the contrast modes, please\n");
|
puts("\n\t\tXXX list all the contrast modes, please\n");
|
||||||
}
|
}
|
||||||
@ -124,7 +131,7 @@ char *outfile = "out.pnm";
|
|||||||
FloatImg cumul, tmpfimg, *to_save;
|
FloatImg cumul, tmpfimg, *to_save;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "c:d:ghn:o:O:p:r:s:uv")) != -1) {
|
while ((opt = getopt(argc, argv, "c:d:ghn:o:O:p:r:s:uvZ")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
case 'c': contrast = fimg_id_contraste(optarg);
|
case 'c': contrast = fimg_id_contraste(optarg);
|
||||||
if (contrast < 0) {
|
if (contrast < 0) {
|
||||||
@ -151,7 +158,7 @@ while ((opt = getopt(argc, argv, "c:d:ghn:o:O:p:r:s:uv")) != -1) {
|
|||||||
break;
|
break;
|
||||||
case 'u': upscaling = 1; break;
|
case 'u': upscaling = 1; break;
|
||||||
case 'v': verbosity++; break;
|
case 'v': verbosity++; break;
|
||||||
|
case 'Z': systrace = 1; break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "option '%c' is wtf\n", opt);
|
fprintf(stderr, "option '%c' is wtf\n", opt);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user