Lines Matching refs:gamma_table

240    png_const_bytep gamma_table)  in set_color()  argument
242 color->red = gamma_table[red]; in set_color()
243 color->green = gamma_table[green]; in set_color()
244 color->blue = gamma_table[blue]; in set_color()
250 png_const_bytep gamma_table, unsigned int *colors) in generate_palette() argument
270 gamma_table); in generate_palette()
275 colors[2], gamma_table); in generate_palette()
280 gamma_table); in generate_palette()
285 colors[4], gamma_table); in generate_palette()
291 set_color(palette+0, trans+0, 255, 0, 0, 0, gamma_table); in generate_palette()
292 set_color(palette+1, trans+1, 255, 255, 255, 255, gamma_table); in generate_palette()
320 gamma_table); in generate_palette()
330 png_uint_32 value, png_const_bytep gamma_table, double conv) in set_value() argument
370 *row = gamma_table[value]; in set_value()
391 int bit_depth, png_const_bytep gamma_table, double conv, in generate_row() argument
548 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, conv); in generate_row()
564 (depth_max * x * 2 + size_max) / (2 * size_max), gamma_table, in generate_row()
566 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table, in generate_row()
595 gamma_table, conv); in generate_row()
598 gamma_table, conv); in generate_row()
601 gamma_table, conv); in generate_row()
632 gamma_table, conv); in generate_row()
635 gamma_table, conv); in generate_row()
638 gamma_table, conv); in generate_row()
641 gamma_table, conv); in generate_row()
668 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, in generate_row()
681 set_value(row, rowbytes, 2*x, bit_depth, luma, gamma_table, in generate_row()
683 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table, in generate_row()
698 set_value(row, rowbytes, 3*x+0, bit_depth, red, gamma_table, in generate_row()
700 set_value(row, rowbytes, 3*x+1, bit_depth, green, gamma_table, in generate_row()
702 set_value(row, rowbytes, 3*x+2, bit_depth, blue, gamma_table, in generate_row()
718 set_value(row, rowbytes, 4*x+0, bit_depth, red, gamma_table, in generate_row()
720 set_value(row, rowbytes, 4*x+1, bit_depth, green, gamma_table, in generate_row()
722 set_value(row, rowbytes, 4*x+2, bit_depth, blue, gamma_table, in generate_row()
724 set_value(row, rowbytes, 4*x+3, bit_depth, alpha, gamma_table, in generate_row()
819 png_byte gamma_table[256]; in write_png() local
863 gamma_table[i] = (png_byte)i; in write_png()
875 gamma_table[0] = 0; in write_png()
878 gamma_table[i] = floorb(pow(i/255.,conv) * 255 + .5); in write_png()
880 gamma_table[255] = 255; in write_png()
893 npalette = generate_palette(palette, trans, bit_depth, gamma_table, in write_png()
903 gamma_table[npalette] = (png_byte)npalette; in write_png()
968 gamma_table, conv, colors, small); in write_png()