add a new (and funny) contrast adjustement

This commit is contained in:
2019-12-03 14:25:30 +01:00
parent 116cb56e13
commit de3b31db94
5 changed files with 50 additions and 9 deletions

View File

@@ -234,8 +234,10 @@ cumul.count = 0;
type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
xioctl(fd, VIDIOC_STREAMON, &type);
#if 0
if (verbosity) fprintf(stderr,"pid %d grabbing %d picz...\n",
getpid(), nbre_capt);
#endif
for (i = 0; i < nbre_capt; i++) {
do {
@@ -331,7 +333,7 @@ if (verbosity) {
}
switch (contrast) {
case CONTRAST_NONE:
fprintf(stderr, "contrast: none\n");
// if (verbosity) fprintf(stderr, "contrast: none\n");
break;
case CONTRAST_SQRT:
fimg_square_root(&cumul, NULL, maxvalue);