Lines Matching refs:custom_gamma_table
186 if ( md_first_dev->custom_gamma_table[i] )
188 DBG(100, "free md_first_dev->custom_gamma_table[%d] at %p\n",
189 i, (void *) md_first_dev->custom_gamma_table[i]);
190 free((void *) md_first_dev->custom_gamma_table[i]);
191 md_first_dev->custom_gamma_table[i] = NULL;
2236 if ( md->custom_gamma_table[color] )
2237 free((void *) md->custom_gamma_table[color]);
2238 md->custom_gamma_table[color] =
2240 DBG(100, "init_options: md->custom_gamma_table[%d]=%p, malloc'd %lu bytes\n",
2241 color, (void *) md->custom_gamma_table[color], (u_long) (tablesize * sizeof(SANE_Int)));
2242 if ( md->custom_gamma_table[color] == NULL )
2249 md->custom_gamma_table[color][i] = i;
2261 val[OPT_GAMMA_CUSTOM].wa = &md->custom_gamma_table[0][0];
2262 val[OPT_GAMMA_CUSTOM_R].wa = &md->custom_gamma_table[1][0];
2263 val[OPT_GAMMA_CUSTOM_G].wa = &md->custom_gamma_table[2][0];
2264 val[OPT_GAMMA_CUSTOM_B].wa = &md->custom_gamma_table[3][0];
3290 md->custom_gamma_table[color][i] = (SANE_Int) i;