/external/libpng/contrib/examples/ |
D | pngpixel.c | 98 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/arm/ |
D | palette_neon_intrinsics.c | 30 int num_trans = png_ptr->num_trans; in png_riffle_palette_neon() local 56 for (i = 0; i < num_trans; i++) in png_riffle_palette_neon()
|
/external/libpng/arm/ |
D | palette_neon_intrinsics.c | 30 int num_trans = png_ptr->num_trans; in png_riffle_palette_neon() local 56 for (i = 0; i < num_trans; i++) in png_riffle_palette_neon()
|
/external/libpng/ |
D | pngset.c | 995 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, (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()
|
D | pngread.c | 1370 else if (png_ptr->num_trans > 0) in png_image_format() 2120 png_ptr->num_trans > 0) /* alpha in input */ && in png_image_read_colormap() 2200 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2275 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2532 png_ptr->num_trans > 0) && in png_image_read_colormap() 2567 png_ptr->num_trans > 0) && in png_image_read_colormap() 2580 png_ptr->num_trans > 0) in png_image_read_colormap() 2651 png_ptr->num_trans > 0) in png_image_read_colormap() 2808 unsigned int num_trans = png_ptr->num_trans; in png_image_read_colormap() local 2809 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap() [all …]
|
D | pngrtran.c | 1130 if (png_ptr->num_trans > 0) in png_init_palette_transformations() 1135 for (i=0; i<png_ptr->num_trans; ++i) in png_init_palette_transformations() 1192 int i, istop = png_ptr->num_trans; in png_init_palette_transformations() 1213 int input_has_transparency = png_ptr->num_trans > 0; in png_init_rgb_transformations() 1413 png_ptr->num_trans = 0; in png_init_read_transformations() 1688 if (i < (int)png_ptr->num_trans && in png_init_read_transformations() 1855 int istop = (int)png_ptr->num_trans; in png_init_read_transformations() 1953 if (png_ptr->num_trans > 0) in png_read_transform_info() 1960 info_ptr->num_trans = 0; in png_read_transform_info() 1967 if (png_ptr->num_trans != 0) in png_read_transform_info() [all …]
|
D | pngwrite.c | 222 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()
|
D | pnginfo.h | 64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member
|
D | pngrutil.c | 1072 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() 1852 png_ptr->num_trans = 1; in png_handle_tRNS() 1868 png_ptr->num_trans = 1; in png_handle_tRNS() 1894 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS() 1906 png_ptr->num_trans = 0; in png_handle_tRNS() 1914 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS() 4458 if (png_ptr->num_trans != 0) in png_read_start_row() 4470 if (png_ptr->num_trans != 0) in png_read_start_row() [all …]
|
D | pngget.c | 1094 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument 1126 if (num_trans != NULL) in png_get_tRNS() 1128 *num_trans = info_ptr->num_trans; in png_get_tRNS()
|
D | pngstruct.h | 247 png_uint_16 num_trans; /* number of transparency values */ member
|
D | pngtest.c | 1367 int num_trans; in test_one_file() local 1370 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file() 1381 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans, in test_one_file()
|
D | pngwutil.c | 1349 png_const_color_16p tran, int num_trans, int color_type) in png_write_tRNS() argument 1357 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1366 (size_t)num_trans); in png_write_tRNS()
|
D | png.h | 2141 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, 2147 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
|
/external/pdfium/third_party/libpng16/ |
D | pngset.c | 995 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, (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()
|
D | pngread.c | 1370 else if (png_ptr->num_trans > 0) in png_image_format() 2120 png_ptr->num_trans > 0) /* alpha in input */ && in png_image_read_colormap() 2200 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2275 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2532 png_ptr->num_trans > 0) && in png_image_read_colormap() 2567 png_ptr->num_trans > 0) && in png_image_read_colormap() 2580 png_ptr->num_trans > 0) in png_image_read_colormap() 2651 png_ptr->num_trans > 0) in png_image_read_colormap() 2808 unsigned int num_trans = png_ptr->num_trans; in png_image_read_colormap() local 2809 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap() [all …]
|
D | pngrtran.c | 1130 if (png_ptr->num_trans > 0) in png_init_palette_transformations() 1135 for (i=0; i<png_ptr->num_trans; ++i) in png_init_palette_transformations() 1192 int i, istop = png_ptr->num_trans; in png_init_palette_transformations() 1213 int input_has_transparency = png_ptr->num_trans > 0; in png_init_rgb_transformations() 1413 png_ptr->num_trans = 0; in png_init_read_transformations() 1688 if (i < (int)png_ptr->num_trans && in png_init_read_transformations() 1855 int istop = (int)png_ptr->num_trans; in png_init_read_transformations() 1953 if (png_ptr->num_trans > 0) in png_read_transform_info() 1960 info_ptr->num_trans = 0; in png_read_transform_info() 1967 if (png_ptr->num_trans != 0) in png_read_transform_info() [all …]
|
D | pngwrite.c | 222 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()
|
D | pnginfo.h | 64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member
|
D | pngrutil.c | 1072 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() 1852 png_ptr->num_trans = 1; in png_handle_tRNS() 1868 png_ptr->num_trans = 1; in png_handle_tRNS() 1894 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS() 1906 png_ptr->num_trans = 0; in png_handle_tRNS() 1914 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS() 4458 if (png_ptr->num_trans != 0) in png_read_start_row() 4470 if (png_ptr->num_trans != 0) in png_read_start_row() [all …]
|
D | pngget.c | 1094 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument 1126 if (num_trans != NULL) in png_get_tRNS() 1128 *num_trans = info_ptr->num_trans; in png_get_tRNS()
|
D | pngstruct.h | 247 png_uint_16 num_trans; /* number of transparency values */ member
|
D | pngwutil.c | 1349 png_const_color_16p tran, int num_trans, int color_type) in png_write_tRNS() argument 1357 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1366 (size_t)num_trans); in png_write_tRNS()
|
D | png.h | 2141 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, 2147 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
|
D | png.c | 512 info_ptr->num_trans = 0; in png_free_data()
|