forked from tTh/FloatImg
+ warning about upscaling
This commit is contained in:
parent
8c2a66914a
commit
bdcbf8c067
@ -168,6 +168,11 @@ if (verbosity > 1) {
|
|||||||
if (upscaling) fprintf(stderr, "upscaling is on\n");
|
if (upscaling) fprintf(stderr, "upscaling is on\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (upscaling && (nbre_capt%4)) {
|
||||||
|
fprintf(stderr, "WARN upscaling: %d bad nbre_capt\n",
|
||||||
|
nbre_capt);
|
||||||
|
}
|
||||||
|
|
||||||
fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0);
|
fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
perror(dev_name);
|
perror(dev_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user