diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-28 14:39:18 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-01 12:13:56 +0200 |
commit | d9ae982816edb51d4def8e58d2bbdade900acf33 (patch) | |
tree | 1f01dc3e60715d0c20a633bd80140a2fb48bc586 /live.c | |
parent | 97036161f78b336d9778460335d8fedb42259e5f (diff) |
iq: Add manual saturation setting
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'live.c')
-rw-r--r-- | live.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -326,6 +326,7 @@ static void usage(const char *argv0) printf("-h, --help Show this help screen\n"); printf("-s, --skip n Skip display of n frames out of n+1\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"); @@ -343,10 +344,12 @@ 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 }, { "help", 0, 0, 'h' }, + { "saturation", 1, 0, OPT_SATURATION }, { "skip", 1, 0, 's' }, { 0, 0, 0, 0 } }; @@ -388,6 +391,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]); |