Lines Matching refs:tRNS
450 unsigned int* palette_number, int low_depth_gray, int tRNS) in next_format() argument
471 if (((ct == 0/*GRAY*/ || ct/*RGB*/ == 2) && tRNS && pn < 2) || in next_format()
3671 png_byte tRNS[256]; in init_standard_palette() local
3675 if ((tRNS[i] = ppal[i].alpha) < 255) in init_standard_palette()
3680 tRNS[i] = 24; in init_standard_palette()
3684 png_set_tRNS(pp, pi, tRNS, j, 0/*color*/); in init_standard_palette()
3699 png_color_16 tRNS; in set_random_tRNS() local
3702 R8(tRNS); /* makes unset fields random */ in set_random_tRNS()
3708 tRNS.red = random_u16(); in set_random_tRNS()
3709 tRNS.green = random_u16(); in set_random_tRNS()
3710 tRNS.blue = tRNS.red ^ tRNS.green; in set_random_tRNS()
3711 tRNS.red &= mask; in set_random_tRNS()
3712 tRNS.green &= mask; in set_random_tRNS()
3713 tRNS.blue &= mask; in set_random_tRNS()
3718 tRNS.red = random_u16(); in set_random_tRNS()
3719 tRNS.green = (png_uint_16)(tRNS.red * 257); in set_random_tRNS()
3720 tRNS.blue = (png_uint_16)(tRNS.green * 17); in set_random_tRNS()
3726 tRNS.gray = random_u16(); in set_random_tRNS()
3727 tRNS.gray &= mask; in set_random_tRNS()
3730 png_set_tRNS(pp, pi, NULL, 0, &tRNS); in set_random_tRNS()