From d9ae982816edb51d4def8e58d2bbdade900acf33 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 28 Mar 2012 14:39:18 +0200 Subject: iq: Add manual saturation setting Signed-off-by: Laurent Pinchart --- snapshot.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'snapshot.c') 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]); -- cgit v1.2.3