Lines Matching defs:color
183 uint8_t color[16];
189 /* Fill color and compute direction for each component */
190 rgb5652rgb(color + 0, c0);
191 rgb5652rgb(color + 4, c1);
192 lerp13rgb(color + 8, color + 0, color + 4);
193 lerp13rgb(color + 12, color + 4, color + 0);
195 dirr = color[0 * 4 + 0] - color[1 * 4 + 0];
196 dirg = color[0 * 4 + 1] - color[1 * 4 + 1];
197 dirb = color[0 * 4 + 2] - color[1 * 4 + 2];
205 stops[y] = color[0 + y * 4] * dirr +
206 color[1 + y * 4] * dirg +
207 color[2 + y * 4] * dirb;
211 * then choose next color out of available ones. we compute the crossover
212 * points for 'best color in top half'/'best in bottom half' and then
251 /* Determine color distribution */
368 * single-color match on average color. */
439 /* Check if input block is a constant color */
452 /* Main color compression function */
459 /* Constant color will load values from tables */
487 /* Finally write the color block */
509 /* Find min/max color */
530 /* Determine bias and emit color indices.