Lines Matching refs:palette

381 png_set_quantize(png_structp png_ptr, png_colorp palette,  in png_set_quantize()  argument
467 palette[i] = palette[j]; in png_set_quantize()
489 tmp_color = palette[j]; in png_set_quantize()
490 palette[j] = palette[i]; in png_set_quantize()
491 palette[i] = tmp_color; in png_set_quantize()
507 min_d = PNG_COLOR_DIST(palette[d_index], palette[0]); in png_set_quantize()
512 d = PNG_COLOR_DIST(palette[d_index], palette[k]); in png_set_quantize()
584 d = PNG_COLOR_DIST(palette[i], palette[j]); in png_set_quantize()
633 palette[png_ptr->index_to_palette[j]] in png_set_quantize()
634 = palette[num_new_palette]; in png_set_quantize()
697 if (png_ptr->palette == NULL) in png_set_quantize()
699 png_ptr->palette = palette; in png_set_quantize()
725 int r = (palette[i].red >> (8 - PNG_QUANTIZE_RED_BITS)); in png_set_quantize()
726 int g = (palette[i].green >> (8 - PNG_QUANTIZE_GREEN_BITS)); in png_set_quantize()
727 int b = (palette[i].blue >> (8 - PNG_QUANTIZE_BLUE_BITS)); in png_set_quantize()
1132 png_ptr->palette[png_ptr->background.index].red; in png_init_palette_transformations()
1134 png_ptr->palette[png_ptr->background.index].green; in png_init_palette_transformations()
1136 png_ptr->palette[png_ptr->background.index].blue; in png_init_palette_transformations()
1553 png_colorp palette = png_ptr->palette; in png_init_read_transformations() local
1637 palette[i] = back; in png_init_read_transformations()
1643 v = png_ptr->gamma_to_1[palette[i].red]; in png_init_read_transformations()
1645 palette[i].red = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1647 v = png_ptr->gamma_to_1[palette[i].green]; in png_init_read_transformations()
1649 palette[i].green = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1651 v = png_ptr->gamma_to_1[palette[i].blue]; in png_init_read_transformations()
1653 palette[i].blue = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1658 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1659 palette[i].green = png_ptr->gamma_table[palette[i].green]; in png_init_read_transformations()
1660 palette[i].blue = png_ptr->gamma_table[palette[i].blue]; in png_init_read_transformations()
1769 png_colorp palette = png_ptr->palette; in png_init_read_transformations() local
1778 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1779 palette[i].green = png_ptr->gamma_table[palette[i].green]; in png_init_read_transformations()
1780 palette[i].blue = png_ptr->gamma_table[palette[i].blue]; in png_init_read_transformations()
1800 png_colorp palette = png_ptr->palette; in png_init_read_transformations() local
1810 palette[i] = back; in png_init_read_transformations()
1816 png_composite(palette[i].red, palette[i].red, in png_init_read_transformations()
1819 png_composite(palette[i].green, palette[i].green, in png_init_read_transformations()
1822 png_composite(palette[i].blue, palette[i].blue, in png_init_read_transformations()
1848 int component = png_ptr->palette[i].red; in png_init_read_transformations()
1851 png_ptr->palette[i].red = (png_byte)component; in png_init_read_transformations()
1857 int component = png_ptr->palette[i].green; in png_init_read_transformations()
1860 png_ptr->palette[i].green = (png_byte)component; in png_init_read_transformations()
1866 int component = png_ptr->palette[i].blue; in png_init_read_transformations()
1869 png_ptr->palette[i].blue = (png_byte)component; in png_init_read_transformations()
2114 png_ptr->palette, png_ptr->trans_alpha, png_ptr->num_trans); in png_do_read_transformations()
3429 png_build_grayscale_palette(int bit_depth, png_colorp palette) in png_build_grayscale_palette() argument
3438 if (palette == NULL) in png_build_grayscale_palette()
3471 palette[i].red = (png_byte)v; in png_build_grayscale_palette()
3472 palette[i].green = (png_byte)v; in png_build_grayscale_palette()
3473 palette[i].blue = (png_byte)v; in png_build_grayscale_palette()
4488 png_const_colorp palette, png_const_bytep trans_alpha, int num_trans) in png_do_expand_palette() argument
4600 *dp-- = palette[*sp].blue; in png_do_expand_palette()
4601 *dp-- = palette[*sp].green; in png_do_expand_palette()
4602 *dp-- = palette[*sp].red; in png_do_expand_palette()
4619 *dp-- = palette[*sp].blue; in png_do_expand_palette()
4620 *dp-- = palette[*sp].green; in png_do_expand_palette()
4621 *dp-- = palette[*sp].red; in png_do_expand_palette()