/external/libpng/contrib/examples/ |
H A D | pngpixel.c | 97 png_bytep trans_alpha = NULL; local 99 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, 101 trans_alpha != NULL) 105 index < num_trans ? trans_alpha[index] : 255);
|
/external/libpng/ |
H A D | pnginfo.h | 153 png_bytep trans_alpha; /* alpha values for paletted image */ member in struct:png_info_def
|
H A D | pngget.c | 1064 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) 1074 if (trans_alpha != NULL) 1076 *trans_alpha = info_ptr->trans_alpha; 1092 if (trans_alpha != NULL) 1093 *trans_alpha = NULL; 1063 png_get_tRNS(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) argument
|
H A D | pngset.c | 934 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) 942 if (trans_alpha != NULL) 944 /* It may not actually be necessary to set png_ptr->trans_alpha here; 956 png_ptr->trans_alpha = info_ptr->trans_alpha = png_voidcast(png_bytep, 960 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); 933 png_set_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) argument
|
H A D | pngrtran.c | 1123 if (png_ptr->trans_alpha[i] == 255) 1125 else if (png_ptr->trans_alpha[i] == 0) 1181 png_ptr->trans_alpha[i] = (png_byte)(255 - 1182 png_ptr->trans_alpha[i]); 1675 png_ptr->trans_alpha[i] != 0xff) 1677 if (png_ptr->trans_alpha[i] == 0) 1681 else /* if (png_ptr->trans_alpha[i] != 0xff) */ 1686 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); 1690 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); 1694 png_composite(w, v, png_ptr->trans_alpha[ 4197 png_do_expand_palette(png_row_infop row_info, png_bytep row, png_const_colorp palette, png_const_bytep trans_alpha, int num_trans) argument [all...] |
H A D | pngstruct.h | 315 png_bytep trans_alpha; /* alpha values for paletted files */ member in struct:png_struct_def
|
H A D | pngtest.c | 1339 png_bytep trans_alpha; local 1343 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, 1354 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans,
|
H A D | pngwrite.c | 227 info_ptr->trans_alpha[j] = 228 (png_byte)(255 - info_ptr->trans_alpha[j]); 231 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color),
|
H A D | pngread.c | 952 png_free(png_ptr, png_ptr->trans_alpha); 953 png_ptr->trans_alpha = NULL; 2779 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL;
|
H A 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,
|
H A D | pngwutil.c | 1343 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, argument 1360 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha,
|
H A D | png.c | 489 png_free(png_ptr, info_ptr->trans_alpha); 490 info_ptr->trans_alpha = NULL;
|
/external/pdfium/third_party/lpng_v163/ |
H A D | pnginfo.h | 154 png_bytep trans_alpha; /* alpha values for paletted image */
member in struct:png_info_def
|
H A D | pngget.c | 1022 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
1031 if (trans_alpha != NULL)
1033 *trans_alpha = info_ptr->trans_alpha;
1049 if (trans_alpha != NULL)
1050 *trans_alpha = NULL;
1021 png_get_tRNS(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) argument
|
H A D | pngset.c | 912 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color)
919 if (trans_alpha != NULL)
921 /* It may not actually be necessary to set png_ptr->trans_alpha here;
933 png_ptr->trans_alpha = info_ptr->trans_alpha = png_voidcast(png_bytep,
937 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans);
911 png_set_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) argument
|
H A D | pngrtran.c | 1118 if (png_ptr->trans_alpha[i] == 255)
1120 else if (png_ptr->trans_alpha[i] == 0)
1171 png_ptr->trans_alpha[i] = (png_byte)(255 -
1172 png_ptr->trans_alpha[i]);
1666 png_ptr->trans_alpha[i] != 0xff)
1668 if (png_ptr->trans_alpha[i] == 0)
1672 else /* if (png_ptr->trans_alpha[i] != 0xff) */
1677 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red);
1681 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green);
1685 png_composite(w, v, png_ptr->trans_alpha[ 4535 png_do_expand_palette(png_row_infop row_info, png_bytep row, png_const_colorp palette, png_const_bytep trans_alpha, int num_trans) argument [all...] |
H A D | pngstruct.h | 311 png_bytep trans_alpha; /* alpha values for paletted files */
member in struct:png_struct_def
|
H A D | pngwrite.c | 220 info_ptr->trans_alpha[j] =
221 (png_byte)(255 - info_ptr->trans_alpha[j]);
224 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color),
|
H A D | png.h | 2586 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, 2592 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
|
H A D | png.c | 475 png_free(png_ptr, info_ptr->trans_alpha);
476 info_ptr->trans_alpha = NULL;
|
H A D | pngread.c | 869 png_free(png_ptr, png_ptr->trans_alpha);
2649 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL;
|
H A D | pngwutil.c | 1418 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha,
argument 1435 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha,
|
/external/libpng/contrib/libtests/ |
H A D | pngvalid.c | 4673 png_bytep trans_alpha; local 4708 trans_alpha = 0; 4710 if ((png_get_tRNS(pp, pi, &trans_alpha, &num, 0) & PNG_INFO_tRNS) != 0 && 4711 (trans_alpha != NULL || num != 1/*returns 1 for a transparent color*/) && 4713 * far as 1.5.4) does not remove the trans_alpha pointer, only num_trans, 4717 !(trans_alpha != NULL && num == 0)) /* TODO: fix this in libpng. */ 4727 if (trans_alpha == NULL || num <= 0 || num > 256 || num > *npalette) 4731 palette[i].alpha = trans_alpha[i];
|