Searched defs:num_trans (Results 1 - 19 of 19) sorted by relevance

/external/libpng/contrib/examples/
H A Dpngpixel.c98 int num_trans = 0; local
99 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans,
100 NULL) & PNG_INFO_tRNS) && num_trans > 0 &&
105 index < num_trans ? trans_alpha[index] : 255);
/external/libpng/
H A Dpnginfo.h64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member in struct:png_info_def
146 * "num_trans" transparency values for a paletted image, stored in the
H A Dpngget.c1064 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
1096 if (num_trans != NULL)
1098 *num_trans = info_ptr->num_trans;
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)
955 /* Changed from num_trans to PNG_MAX_PALETTE_LENGTH in version 1.2.1 */
959 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH)
960 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans);
983 if (num_trans == 0)
984 num_trans = 1;
987 info_ptr->num_trans = (png_uint_16)num_trans;
989 if (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
[all...]
H A Dpngwrite.c222 jend = info_ptr->num_trans;
232 info_ptr->num_trans, info_ptr->color_type);
1796 int i, num_trans; local
1803 for (i=num_trans=0; i<entries; ++i)
1846 num_trans = i+1;
1875 num_trans = i+1;
1886 num_trans = i+1;
1909 if (num_trans > 0)
1911 num_trans, NULL);
H A Dpngread.c1344 else if (png_ptr->num_trans > 0)
2090 png_ptr->num_trans > 0) /* alpha in input */ &&
2170 if (png_ptr->num_trans > 0)
2245 if (png_ptr->num_trans > 0)
2502 png_ptr->num_trans > 0) &&
2537 png_ptr->num_trans > 0) &&
2550 png_ptr->num_trans > 0)
2621 png_ptr->num_trans > 0)
2778 unsigned int num_trans = png_ptr->num_trans; local
[all...]
H A Dpngrtran.c1110 * STRIP_ALPHA has already been handled in the caller (by setting num_trans
1116 if (png_ptr->num_trans > 0)
1121 for (i=0; i<png_ptr->num_trans; ++i)
1178 int i, istop = png_ptr->num_trans;
1199 int input_has_transparency = png_ptr->num_trans > 0;
1399 png_ptr->num_trans = 0;
1674 if (i < (int)png_ptr->num_trans &&
1841 int istop = (int)png_ptr->num_trans;
1939 if (png_ptr->num_trans > 0)
1946 info_ptr->num_trans
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.h247 png_uint_16 num_trans; /* number of transparency values */ member in struct:png_struct_def
H A Dpngtest.c1340 int num_trans; 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 Dpngwutil.c1344 png_const_color_16p tran, int num_trans, int color_type)
1352 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette)
1361 (png_size_t)num_trans);
1343 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, png_const_color_16p tran, int num_trans, int color_type) argument
/external/pdfium/third_party/lpng_v163/
H A Dpnginfo.h65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member in struct:png_info_def
147 * "num_trans" transparency values for a paletted image, stored in the
H A Dpngget.c1022 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
1053 if (num_trans != NULL)
1055 *num_trans = info_ptr->num_trans;
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)
932 /* Changed from num_trans to PNG_MAX_PALETTE_LENGTH in version 1.2.1 */
936 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH)
937 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans);
955 if (num_trans == 0)
956 num_trans = 1;
959 info_ptr->num_trans = (png_uint_16)num_trans;
961 if (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
[all...]
H A Dpngwrite.c219 for (j = 0; j<(int)info_ptr->num_trans; j++)
225 info_ptr->num_trans, info_ptr->color_type);
1896 int i, num_trans; local
1903 for (i=num_trans=0; i<entries; ++i)
1946 num_trans = i+1;
1975 num_trans = i+1;
1986 num_trans = i+1;
2009 if (num_trans > 0)
2011 num_trans, NULL);
H A Dpngread.c1237 else if (png_ptr->num_trans > 0)
1973 png_ptr->num_trans > 0) /* alpha in input */ &&
2053 if (png_ptr->num_trans > 0)
2128 if (png_ptr->num_trans > 0)
2372 png_ptr->num_trans > 0) &&
2407 png_ptr->num_trans > 0) &&
2420 png_ptr->num_trans > 0)
2491 png_ptr->num_trans > 0)
2648 unsigned int num_trans = png_ptr->num_trans; local
[all...]
H A Dpngrtran.c1106 * STRIP_ALPHA has already been handled in the caller (by setting num_trans
1112 if (png_ptr->num_trans > 0)
1117 for (i=0; i<png_ptr->num_trans; ++i)
1168 int i, istop = png_ptr->num_trans;
1189 int input_has_transparency = png_ptr->num_trans > 0;
1389 png_ptr->num_trans = 0;
1665 if (i < (int)png_ptr->num_trans &&
1832 int istop = (int)png_ptr->num_trans;
1929 if (png_ptr->num_trans > 0)
1936 info_ptr->num_trans
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.h246 png_uint_16 num_trans; /* number of transparency values */ member in struct:png_struct_def
H A Dpngwutil.c1419 png_const_color_16p tran, int num_trans, int color_type)
1427 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette)
1436 (png_size_t)num_trans);
1418 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, png_const_color_16p tran, int num_trans, int color_type) argument
/external/skia/src/images/
H A DSkImageDecoder_libpng.cpp182 int num_trans; local
185 png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, nullptr);
186 return num_trans > 0;
771 int i, num_trans = 0; local
775 ctable. PNG allows num_trans < num_palette, but all of the trans
782 num_trans = ctCount;
787 num_trans -= 1;
793 for (i = 0; i < num_trans; i++) {
807 for (i = num_trans; i < ctCount; i++) {
813 return num_trans;
[all...]

Completed in 141 milliseconds