#include <stdio.h>
Go to the source code of this file.
|
char * | lables [4] = { "Red", "Green", "Blue", "Neutral" } |
|
main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 7 of file bright.c.
11 unsigned char buf[BUFSIZ];
14 int print_luts = (strcmp(argv[1],
"-l") == 0);
25 for ( i = 1; i <= buf[0]; i++ )
26 printf(
"Bright %d: %3d\n", i - 1, buf[i] );
29 for ( i = 0; i < 4; i++ )
30 printf(
"%s bright: %d\n",
lables[i], buf[i] );
35 for ( i = 0; i < 256; i++ )
37 printf(
"%3d:\t%3d %3d %3d", i, lut[0][i], lut[1][i], lut[2][i] );
39 printf(
"\t%4d %4d %4d", lut[0][i] / i,
40 lut[1][i] / i, lut[2][i] / i );
int init_qcr(short verbose)
char* lables[4] = { "Red", "Green", "Blue", "Neutral" } |