/external/libpng/contrib/examples/ |
D | pngpixel.c | 97 png_bytep trans_alpha = NULL; in print_pixel() local 99 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, in print_pixel() 101 trans_alpha != NULL) in print_pixel() 105 index < num_trans ? trans_alpha[index] : 255); in print_pixel()
|
/external/pdfium/third_party/libpng16/ |
D | pngget.c | 1064 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument 1074 if (trans_alpha != NULL) in png_get_tRNS() 1076 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS() 1092 if (trans_alpha != NULL) in png_get_tRNS() 1093 *trans_alpha = NULL; in png_get_tRNS()
|
D | pngset.c | 946 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument 954 if (trans_alpha != NULL) in png_set_tRNS() 970 info_ptr->trans_alpha = png_voidcast(png_bytep, in png_set_tRNS() 973 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS() 975 png_ptr->trans_alpha = info_ptr->trans_alpha; in png_set_tRNS()
|
D | pngrtran.c | 1123 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations() 1125 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations() 1181 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations() 1182 png_ptr->trans_alpha[i]); in png_init_palette_transformations() 1675 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations() 1677 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations() 1686 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations() 1690 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations() 1694 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations() 1851 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations() [all …]
|
D | pnginfo.h | 153 png_bytep trans_alpha; /* alpha values for paletted image */ member
|
D | pngstruct.h | 315 png_bytep trans_alpha; /* alpha values for paletted files */ member
|
D | pngwrite.c | 227 info_ptr->trans_alpha[j] = in png_write_info() 228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info() 231 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()
|
D | pngread.c | 962 png_free(png_ptr, png_ptr->trans_alpha); in png_read_destroy() 963 png_ptr->trans_alpha = NULL; in png_read_destroy() 2789 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
|
D | png.h | 2166 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, 2172 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
|
D | pngwutil.c | 1343 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, in png_write_tRNS() argument 1360 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha, in png_write_tRNS()
|
D | png.c | 489 png_free(png_ptr, info_ptr->trans_alpha); in png_free_data() 490 info_ptr->trans_alpha = NULL; in png_free_data()
|
/external/libpng/ |
D | pngget.c | 1093 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument 1103 if (trans_alpha != NULL) in png_get_tRNS() 1105 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS() 1121 if (trans_alpha != NULL) in png_get_tRNS() 1122 *trans_alpha = NULL; in png_get_tRNS()
|
D | pngset.c | 995 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument 1003 if (trans_alpha != NULL) in png_set_tRNS() 1019 info_ptr->trans_alpha = png_voidcast(png_bytep, in png_set_tRNS() 1021 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS() 1023 png_ptr->trans_alpha = info_ptr->trans_alpha; in png_set_tRNS()
|
D | pngrtran.c | 1126 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations() 1128 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations() 1184 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations() 1185 png_ptr->trans_alpha[i]); in png_init_palette_transformations() 1678 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations() 1680 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations() 1689 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations() 1693 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations() 1697 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations() 1854 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations() [all …]
|
D | pnginfo.h | 153 png_bytep trans_alpha; /* alpha values for paletted image */ member
|
D | pngstruct.h | 315 png_bytep trans_alpha; /* alpha values for paletted files */ member
|
D | pngtest.c | 1364 png_bytep trans_alpha; in test_one_file() local 1368 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file() 1379 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans, in test_one_file()
|
D | pngwrite.c | 227 info_ptr->trans_alpha[j] = in png_write_info() 228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info() 231 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()
|
D | pngread.c | 973 png_free(png_ptr, png_ptr->trans_alpha); in png_read_destroy() 974 png_ptr->trans_alpha = NULL; in png_read_destroy() 2803 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
|
D | png.h | 2172 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, 2178 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
|
D | pngwutil.c | 1350 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, in png_write_tRNS() argument 1367 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha, in png_write_tRNS()
|
D | png.c | 510 png_free(png_ptr, info_ptr->trans_alpha); in png_free_data() 511 info_ptr->trans_alpha = NULL; in png_free_data()
|
D | libpng-manual.txt | 1453 png_get_tRNS(png_ptr, info_ptr, &trans_alpha, 1456 trans_alpha - array of alpha (transparency) 3102 png_set_tRNS(png_ptr, info_ptr, trans_alpha, 3105 trans_alpha - array of alpha (transparency) 4734 changed to "trans_alpha" and "trans_color", respectively.
|
D | CHANGES | 2377 Changed png_ptr and info_ptr member "trans" to "trans_alpha".
|
/external/libpng/contrib/libtests/ |
D | pngvalid.c | 5048 png_bytep trans_alpha; in read_palette() local 5083 trans_alpha = 0; in read_palette() 5085 if ((png_get_tRNS(pp, pi, &trans_alpha, &num, 0) & PNG_INFO_tRNS) != 0 && in read_palette() 5086 (trans_alpha != NULL || num != 1/*returns 1 for a transparent color*/) && in read_palette() 5092 !(trans_alpha != NULL && num == 0)) /* TODO: fix this in libpng. */ in read_palette() 5102 if (trans_alpha == NULL || num <= 0 || num > 256 || num > *npalette) in read_palette() 5106 palette[i].alpha = trans_alpha[i]; in read_palette()
|