summaryrefslogtreecommitdiff
path: root/snapshot.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-28 14:39:18 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-05-01 12:13:56 +0200
commitd9ae982816edb51d4def8e58d2bbdade900acf33 (patch)
tree1f01dc3e60715d0c20a633bd80140a2fb48bc586 /snapshot.c
parent97036161f78b336d9778460335d8fedb42259e5f (diff)
iq: Add manual saturation setting
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'snapshot.c')
-rw-r--r--snapshot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/snapshot.c b/snapshot.c
index 5d29653..8e45dfa 100644
--- a/snapshot.c
+++ b/snapshot.c
@@ -438,6 +438,7 @@ static void usage(const char *argv0)
printf("-s, --size wxh Set the snapshot capture size\n");
printf("-v, --view Enable viewfinder\n");
printf(" --aewb param=value Set AEWB algorithm parameter 'param' to 'value'\n");
+ printf(" --saturation value Set the saturation value [0.0-2.0]\n");
printf("\nSupported AEWB parameters are:\n");
printf("- ae-delay Number of frames to skip at stream start before enabling AE\n");
printf("- ae-interval Number of frames between AE algorithm runs (>= 1)\n");
@@ -455,6 +456,7 @@ static void usage(const char *argv0)
}
#define OPT_AEWB_PARAM 256
+#define OPT_SATURATION 257
static struct option opts[] = {
{ "aewb", 1, 0, OPT_AEWB_PARAM },
@@ -465,6 +467,7 @@ static struct option opts[] = {
#if USE_LIBJPEG
{ "jpeg", 0, 0, 'j' },
#endif
+ { "saturation", 1, 0, OPT_SATURATION },
{ "save", 0, 0, 'S' },
{ "size", 1, 0, 's' },
{ "snap-frames", 1, 0, 'N' },
@@ -565,6 +568,9 @@ int main(int argc __attribute__((__unused__)), char *argv[] __attribute__((__unu
return 1;
}
break;
+ case OPT_SATURATION:
+ iq_params.saturation = strtof(optarg, NULL);
+ break;
default:
printf("Invalid option -%c\n", c);
printf("Run %s -h for help.\n", argv[0]);