Lines Matching refs:CL_RED
1416 for (c = CL_RED; c <= CL_BLUE; c++)
1453 for (c = CL_RED; c <= CL_BLUE; c++)
1472 Triplet_Colour_HRes (scn->pColour1[CL_RED],
1475 scn->pColour2[CL_RED],
1481 scn->pColour[CL_RED], scn->pColour[CL_GREEN],
1485 Triplet_Colour_Order (dev, scn->pColour[CL_RED],
1507 for (c = CL_RED; c <= CL_BLUE; c++)
1930 offset[CL_BLUE] = offset[CL_GREEN] = offset[CL_RED] = 0;
1931 gain[CL_BLUE] = gain[CL_GREEN] = gain[CL_RED] = 0;
1970 for (a = CL_RED; a <= CL_BLUE; a++)
1985 offset[CL_RED]);
1996 for (a = CL_RED; a <= CL_BLUE; a++)
2005 for (a = CL_RED; a <= CL_BLUE; a++)
2016 gain[CL_RED], gain[CL_GREEN], gain[CL_BLUE], offset[CL_RED],
4067 offset[CL_RED] = offset[CL_GREEN] = offset[CL_BLUE] = 0;
4075 for (a = CL_RED; a <= CL_BLUE; a++)
4668 if ((hp_gamma->table[CL_RED] != NULL) &&
4678 hp_gamma->table[CL_RED][C] = table[C];
4684 hp_gamma->table[CL_RED][C] = C;
4692 if (hp_gamma->table[CL_RED][C] != 0)
4772 v1600 = (SANE_Byte *) & mygamma->table[CL_RED];
5648 scn->desp1[CL_RED] = 0;
5649 scn->desp2[CL_RED] =
5652 scn->pColour2[CL_RED] =
5653 scn->imagebuffer + scn->desp2[CL_RED];
5654 scn->pColour1[CL_RED] =
5655 scn->imagebuffer + scn->desp1[CL_RED];
5673 Triplet_Lineart (scn->pColour1[CL_RED], scn->pColour2[CL_RED],
5676 Triplet_Gray (scn->pColour1[CL_RED], scn->pColour2[CL_RED],
5695 scn->desp2[CL_RED] =
5696 (line_size + scn->desp2[CL_RED]) % scn->bfsize;
5697 scn->desp1[CL_RED] =
5698 (line_size + scn->desp1[CL_RED]) % scn->bfsize;
5700 scn->pColour2[CL_RED] = scn->imagebuffer + scn->desp2[CL_RED];
5701 scn->pColour1[CL_RED] = scn->imagebuffer + scn->desp1[CL_RED];
6618 for (c = CL_RED; c <= CL_BLUE; c++)
6655 for (c = CL_RED; c <= CL_BLUE; c++)
6677 Triplet_Compose_HRes (scn->pColour1[CL_RED],
6680 scn->pColour2[CL_RED],
6684 Triplet_Compose_LRes (scn->pColour[CL_RED],
6689 Triplet_Compose_Order (dev, scn->pColour[CL_RED],
6711 for (c = CL_RED; c <= CL_BLUE; c++)
6844 if (dev->sensorcfg->rgb_order[CL_RED] == 1)
6958 if (dev->sensorcfg->rgb_order[CL_RED] == 1)
6959 Colour = CL_RED;
6969 case CL_RED:
8647 for (a = CL_RED; a <= CL_BLUE; a++)
8658 data_lsb_set (&Regs[0x36], sm->expt[CL_RED], 3);
8665 data_lsb_set (&Regs[0x33], sm->mexpt[CL_RED], 3);
8977 /* mexpts[CL_RED] = mexpts[CL_GREEN] */
8981 /* expts[CL_RED] = expts[CL_GREEN] */
8987 /* mexpts[CL_RED] = mexpts[CL_BLUE] */
8991 /* expts[CL_RED] = expts[CL_BLUE] */
9269 data_bitset (&Regs[0x13], 0x03, gain_offset->pag[CL_RED]); /*------xx*/
9279 for (a = CL_RED; a <= CL_BLUE; a++)
9296 data_bitset (&Regs[0x13], 0x03, gain_offset->pag[CL_RED]); /*------xx*/
10552 scancfg.channel = CL_RED;
10591 for (C = CL_RED; C <= CL_BLUE; C++)
10837 case CL_RED:
10992 for (a = CL_RED; a <= CL_BLUE; a++)
11051 for (a = CL_RED; a <= CL_BLUE; a++)
11065 desp[CL_RED] = pointer1 - pointer3;
11077 for (a = CL_RED; a <= CL_BLUE; a++)
11107 for (a = CL_RED; a <= CL_BLUE; a++)
11115 maximus[CL_RED], maximus[CL_GREEN], maximus[CL_BLUE]);
11117 minimus[CL_RED], minimus[CL_GREEN], minimus[CL_BLUE]);
11120 average[CL_RED], average[CL_GREEN], average[CL_BLUE]);
11168 max (maximus[CL_BLUE], maximus[CL_RED]));
11479 &calibcfg->WRef[CL_RED], &calibcfg->WRef[CL_GREEN],
11484 for (a = CL_RED; a <= CL_BLUE; a++)
11545 for (a = CL_RED; a <= CL_BLUE; a++)
11697 for (a = CL_RED; a <= CL_BLUE; a++)
11715 chn_sum[CL_RED] = chn_sum[CL_GREEN] =
11721 for (a = CL_RED; a <= CL_BLUE; a++)
11727 for (a = CL_RED; a <= CL_BLUE; a++)
11749 dval[CL_RED] /= scancfg->coord.width;
11754 dval[CL_RED], dval[CL_GREEN], dval[CL_BLUE]);
11756 calibcfg->unk1[CL_RED], calibcfg->unk1[CL_GREEN],
11759 calibcfg->unk2[CL_RED], calibcfg->unk2[CL_GREEN],
11768 for (a = CL_RED; a <= CL_BLUE; a++)
11798 pgain[CL_RED]) / 40) * ((((1 << scancfg->depth) *
11804 for (a = CL_RED; a <= CL_BLUE; a++)
11839 for (a = CL_RED; a <= CL_BLUE; a++)
11881 for (a = CL_RED; a <= CL_BLUE; a++)
11991 ptr[CL_RED] = image;
12003 total[CL_RED] = 0;
12007 for (b = CL_RED; b <= CL_BLUE; b++)
12014 for (a = CL_RED; a <= CL_BLUE; a++)
12026 for (a = CL_RED; a <= CL_BLUE; a++)
12192 pedcg = &calibdata->gain_offset.edcg1[CL_RED];
12193 podcg = &calibdata->gain_offset.odcg1[CL_RED];
12194 poffseteven = &calibcfg->OffsetEven1[CL_RED];
12195 poffsetodd = &calibcfg->OffsetOdd1[CL_RED];
12200 pedcg = &calibdata->gain_offset.edcg2[CL_RED];
12201 podcg = &calibdata->gain_offset.odcg2[CL_RED];
12202 poffseteven = &calibcfg->OffsetEven2[CL_RED];
12203 poffsetodd = &calibcfg->OffsetOdd2[CL_RED];
12585 for (a = CL_RED; a <= CL_BLUE; a++)
13174 for (a = CL_RED; a <= CL_BLUE; a++)
13226 for (a = CL_RED; a <= CL_BLUE; a++)
13234 for (a = CL_RED; a <= CL_BLUE; a++)
13637 for (a = CL_RED; a <= CL_BLUE; a++)
13679 for (a = CL_RED; a <= CL_BLUE; a++)
13689 for (a = CL_RED; a <= CL_BLUE; a++)
13698 /*v14b4=1 offset[CL_RED]=0x174 offset[CL_GREEN]=0x16d offset[CL_BLUE]=0x160 */
13699 if ((v14b4 != 0) && (offset[CL_RED] != 0) && (offset[CL_GREEN] != 0)
13702 for (a = CL_RED; a <= CL_BLUE; a++)
13729 for (a = CL_RED; a <= CL_BLUE; a++)
13741 /*gain[CL_RED]=0x17 gain[CL_GREEN]=0x12 gain[CL_BLUE]=0x17 */
13742 if ((v14b4 != 0) && (gain[CL_RED] != 0) && (gain[CL_GREEN] != 0)
13745 for (a = CL_RED; a <= CL_BLUE; a++)
13761 for (a = CL_RED; a <= CL_BLUE; a++)
13780 for (a = CL_RED; a <= CL_BLUE; a++)
13797 for (a = CL_RED; a <= CL_BLUE; a++)
14470 for (C = CL_RED; C <= CL_BLUE; C++)
14748 for (C = CL_RED; C <= CL_BLUE; C++)
14824 for (C = CL_RED; C <= CL_BLUE; C++)
15016 for (C = CL_RED; C <= CL_BLUE; C++)