Lines Matching refs:hp_gamma
4662 hp_gamma->depth = 8;
4665 if (hp_gamma->table[C] == NULL)
4666 hp_gamma->table[C] = malloc (sizeof (SANE_Byte) * 256);
4668 if ((hp_gamma->table[CL_RED] != NULL) &&
4669 (hp_gamma->table[CL_GREEN] != NULL) &&
4670 (hp_gamma->table[CL_BLUE] != NULL))
4678 hp_gamma->table[CL_RED][C] = table[C];
4679 hp_gamma->table[CL_GREEN][C] = table[0x100 + C];
4680 hp_gamma->table[CL_BLUE][C] = table[0x200 + C];
4684 hp_gamma->table[CL_RED][C] = C;
4685 hp_gamma->table[CL_GREEN][C] = C;
4686 hp_gamma->table[CL_BLUE][C] = C;
4692 if (hp_gamma->table[CL_RED][C] != 0)
6315 if (hp_gamma->table[c] != NULL)
6317 free (hp_gamma->table[c]);
6318 hp_gamma->table[c] = NULL;
8349 hp_gamma->depth = 0;
8371 Gamma_Apply (dev, Regs, &scancfg, &hwdcfg, hp_gamma);
14110 hp_gamma = malloc (sizeof (struct st_gammatables));
14111 if (hp_gamma != NULL)
14112 memset (hp_gamma, 0, sizeof (struct st_gammatables));
14173 if (hp_gamma != NULL)
14175 free (hp_gamma);
14176 hp_gamma = NULL;