6 char *
lables[4] = {
"Red",
"Green",
"Blue",
"Neutral" };
11 unsigned char buf[BUFSIZ];
14 int print_luts = (strcmp(argv[1],
"-l") == 0);
24 qcr_rd_brt_tbl( buf );
25 for ( i = 1; i <= buf[0]; i++ )
26 printf(
"Bright %d: %3d\n", i - 1, buf[i] );
28 qcr_rd_brt_lvl( buf );
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 );
void main(int argc, char **argv)