Home
last modified time | relevance | path

Searched refs:num_trans (Results 1 – 25 of 26) sorted by relevance

12

/external/libpng/contrib/examples/
Dpngpixel.c98 int num_trans = 0; in print_pixel() local
99 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, in print_pixel()
100 NULL) & PNG_INFO_tRNS) && num_trans > 0 && in print_pixel()
105 index < num_trans ? trans_alpha[index] : 255); in print_pixel()
/external/pdfium/third_party/libpng16/
Dpngset.c946 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
967 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) in png_set_tRNS()
973 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
998 if (num_trans == 0) in png_set_tRNS()
999 num_trans = 1; in png_set_tRNS()
1002 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS()
1004 if (num_trans != 0) in png_set_tRNS()
Dpngread.c1354 else if (png_ptr->num_trans > 0) in png_image_format()
2100 png_ptr->num_trans > 0) /* alpha in input */ && in png_image_read_colormap()
2180 if (png_ptr->num_trans > 0) in png_image_read_colormap()
2255 if (png_ptr->num_trans > 0) in png_image_read_colormap()
2512 png_ptr->num_trans > 0) && in png_image_read_colormap()
2547 png_ptr->num_trans > 0) && in png_image_read_colormap()
2560 png_ptr->num_trans > 0) in png_image_read_colormap()
2631 png_ptr->num_trans > 0) in png_image_read_colormap()
2788 unsigned int num_trans = png_ptr->num_trans; in png_image_read_colormap() local
2789 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
[all …]
Dpngwrite.c222 jend = info_ptr->num_trans; in png_write_info()
232 info_ptr->num_trans, info_ptr->color_type); in png_write_info()
1796 int i, num_trans; in png_image_set_PLTE() local
1803 for (i=num_trans=0; i<entries; ++i) in png_image_set_PLTE()
1846 num_trans = i+1; in png_image_set_PLTE()
1875 num_trans = i+1; in png_image_set_PLTE()
1886 num_trans = i+1; in png_image_set_PLTE()
1909 if (num_trans > 0) in png_image_set_PLTE()
1911 num_trans, NULL); in png_image_set_PLTE()
Dpngrtran.c1116 if (png_ptr->num_trans > 0) in png_init_palette_transformations()
1121 for (i=0; i<png_ptr->num_trans; ++i) in png_init_palette_transformations()
1178 int i, istop = png_ptr->num_trans; in png_init_palette_transformations()
1199 int input_has_transparency = png_ptr->num_trans > 0; in png_init_rgb_transformations()
1399 png_ptr->num_trans = 0; in png_init_read_transformations()
1674 if (i < (int)png_ptr->num_trans && in png_init_read_transformations()
1841 int istop = (int)png_ptr->num_trans; in png_init_read_transformations()
1939 if (png_ptr->num_trans > 0) in png_read_transform_info()
1946 info_ptr->num_trans = 0; in png_read_transform_info()
1953 if (png_ptr->num_trans != 0) in png_read_transform_info()
[all …]
Dpnginfo.h64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member
Dpngrutil.c1062 if (png_ptr->num_trans > 0 || in png_handle_PLTE()
1069 png_ptr->num_trans = 0; in png_handle_PLTE()
1072 info_ptr->num_trans = 0; in png_handle_PLTE()
1839 png_ptr->num_trans = 1; in png_handle_tRNS()
1855 png_ptr->num_trans = 1; in png_handle_tRNS()
1881 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS()
1893 png_ptr->num_trans = 0; in png_handle_tRNS()
1901 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS()
4306 if (png_ptr->num_trans != 0) in png_read_start_row()
4318 if (png_ptr->num_trans != 0) in png_read_start_row()
[all …]
Dpngget.c1064 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1096 if (num_trans != NULL) in png_get_tRNS()
1098 *num_trans = info_ptr->num_trans; in png_get_tRNS()
Dpngstruct.h247 png_uint_16 num_trans; /* number of transparency values */ member
Dpngwutil.c1344 png_const_color_16p tran, int num_trans, int color_type) in png_write_tRNS() argument
1352 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS()
1361 (png_size_t)num_trans); in png_write_tRNS()
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,
Dpng.c491 info_ptr->num_trans = 0; in png_free_data()
/external/libpng/
Dpngset.c995 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
1016 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) in png_set_tRNS()
1021 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
1046 if (num_trans == 0) in png_set_tRNS()
1047 num_trans = 1; in png_set_tRNS()
1050 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS()
1052 if (num_trans != 0) in png_set_tRNS()
Dpngread.c1364 else if (png_ptr->num_trans > 0) in png_image_format()
2114 png_ptr->num_trans > 0) /* alpha in input */ && in png_image_read_colormap()
2194 if (png_ptr->num_trans > 0) in png_image_read_colormap()
2269 if (png_ptr->num_trans > 0) in png_image_read_colormap()
2526 png_ptr->num_trans > 0) && in png_image_read_colormap()
2561 png_ptr->num_trans > 0) && in png_image_read_colormap()
2574 png_ptr->num_trans > 0) in png_image_read_colormap()
2645 png_ptr->num_trans > 0) in png_image_read_colormap()
2802 unsigned int num_trans = png_ptr->num_trans; in png_image_read_colormap() local
2803 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
[all …]
Dpngwrite.c222 jend = info_ptr->num_trans; in png_write_info()
232 info_ptr->num_trans, info_ptr->color_type); in png_write_info()
1809 int i, num_trans; in png_image_set_PLTE() local
1816 for (i=num_trans=0; i<entries; ++i) in png_image_set_PLTE()
1859 num_trans = i+1; in png_image_set_PLTE()
1888 num_trans = i+1; in png_image_set_PLTE()
1899 num_trans = i+1; in png_image_set_PLTE()
1922 if (num_trans > 0) in png_image_set_PLTE()
1924 num_trans, NULL); in png_image_set_PLTE()
Dpngrtran.c1119 if (png_ptr->num_trans > 0) in png_init_palette_transformations()
1124 for (i=0; i<png_ptr->num_trans; ++i) in png_init_palette_transformations()
1181 int i, istop = png_ptr->num_trans; in png_init_palette_transformations()
1202 int input_has_transparency = png_ptr->num_trans > 0; in png_init_rgb_transformations()
1402 png_ptr->num_trans = 0; in png_init_read_transformations()
1677 if (i < (int)png_ptr->num_trans && in png_init_read_transformations()
1844 int istop = (int)png_ptr->num_trans; in png_init_read_transformations()
1942 if (png_ptr->num_trans > 0) in png_read_transform_info()
1949 info_ptr->num_trans = 0; in png_read_transform_info()
1956 if (png_ptr->num_trans != 0) in png_read_transform_info()
[all …]
Dpnginfo.h64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member
Dpngrutil.c1072 if (png_ptr->num_trans > 0 || in png_handle_PLTE()
1079 png_ptr->num_trans = 0; in png_handle_PLTE()
1082 info_ptr->num_trans = 0; in png_handle_PLTE()
1853 png_ptr->num_trans = 1; in png_handle_tRNS()
1869 png_ptr->num_trans = 1; in png_handle_tRNS()
1895 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS()
1907 png_ptr->num_trans = 0; in png_handle_tRNS()
1915 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS()
4438 if (png_ptr->num_trans != 0) in png_read_start_row()
4450 if (png_ptr->num_trans != 0) in png_read_start_row()
[all …]
Dpngget.c1093 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1125 if (num_trans != NULL) in png_get_tRNS()
1127 *num_trans = info_ptr->num_trans; in png_get_tRNS()
Dpngstruct.h247 png_uint_16 num_trans; /* number of transparency values */ member
Dpngtest.c1365 int num_trans; 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()
Dpngwutil.c1351 png_const_color_16p tran, int num_trans, int color_type) in png_write_tRNS() argument
1359 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS()
1368 (png_size_t)num_trans); in png_write_tRNS()
Dpng.h2172 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans,
2178 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
Dpng.c512 info_ptr->num_trans = 0; in png_free_data()
DCHANGES393 Added a test such that png_do_gamma will be done when num_trans==0
771 info_ptr->num_trans as well as png_ptr->num_trans (Matthias Benckmann)
1599 Make sure num_trans is <= 256 before copying data in png_set_tRNS().
1894 Added "png_ptr->num_trans=0" before error return in png_handle_tRNS,

12