Lines Matching refs:tRNS
451 unsigned int* palette_number, int low_depth_gray, int tRNS) in next_format() argument
472 if (((ct == 0/*GRAY*/ || ct/*RGB*/ == 2) && tRNS && pn < 2) || in next_format()
3672 png_byte tRNS[256]; in init_standard_palette() local
3676 if ((tRNS[i] = ppal[i].alpha) < 255) in init_standard_palette()
3681 tRNS[i] = 24; in init_standard_palette()
3685 png_set_tRNS(pp, pi, tRNS, j, 0/*color*/); in init_standard_palette()
3700 png_color_16 tRNS; in set_random_tRNS() local
3703 R8(tRNS); /* makes unset fields random */ in set_random_tRNS()
3709 tRNS.red = random_u16(); in set_random_tRNS()
3710 tRNS.green = random_u16(); in set_random_tRNS()
3711 tRNS.blue = tRNS.red ^ tRNS.green; in set_random_tRNS()
3712 tRNS.red &= mask; in set_random_tRNS()
3713 tRNS.green &= mask; in set_random_tRNS()
3714 tRNS.blue &= mask; in set_random_tRNS()
3719 tRNS.red = random_u16(); in set_random_tRNS()
3720 tRNS.green = (png_uint_16)(tRNS.red * 257); in set_random_tRNS()
3721 tRNS.blue = (png_uint_16)(tRNS.green * 17); in set_random_tRNS()
3727 tRNS.gray = random_u16(); in set_random_tRNS()
3728 tRNS.gray &= mask; in set_random_tRNS()
3731 png_set_tRNS(pp, pi, NULL, 0, &tRNS); in set_random_tRNS()