Searched refs:trans_alpha (Results 1 - 23 of 23) sorted by relevance

/external/libpng/contrib/examples/
H A Dpngpixel.c97 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 Dpnginfo.h153 png_bytep trans_alpha; /* alpha values for paletted image */ member in struct:png_info_def
H A Dpngget.c1064 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 Dpngset.c934 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 Dpngrtran.c1123 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 Dpngstruct.h315 png_bytep trans_alpha; /* alpha values for paletted files */ member in struct:png_struct_def
H A Dpngtest.c1339 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 Dpngwrite.c227 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 Dpngread.c952 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 Dpng.h2166 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 Dpngwutil.c1343 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 Dpng.c489 png_free(png_ptr, info_ptr->trans_alpha);
490 info_ptr->trans_alpha = NULL;
/external/pdfium/third_party/lpng_v163/
H A Dpnginfo.h154 png_bytep trans_alpha; /* alpha values for paletted image */ member in struct:png_info_def
H A Dpngget.c1022 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 Dpngset.c912 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 Dpngrtran.c1118 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 Dpngstruct.h311 png_bytep trans_alpha; /* alpha values for paletted files */ member in struct:png_struct_def
H A Dpngwrite.c220 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 Dpng.h2586 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 Dpng.c475 png_free(png_ptr, info_ptr->trans_alpha);
476 info_ptr->trans_alpha = NULL;
H A Dpngread.c869 png_free(png_ptr, png_ptr->trans_alpha);
2649 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL;
H A Dpngwutil.c1418 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 Dpngvalid.c4673 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];

Completed in 631 milliseconds