Home
last modified time | relevance | path

Searched refs:trans_alpha (Results 1 – 25 of 36) sorted by relevance

12

/external/libpng/contrib/examples/
Dpngpixel.c97 png_bytep trans_alpha = NULL; in print_pixel() local
99 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, in print_pixel()
101 trans_alpha != NULL) in print_pixel()
105 index < num_trans ? trans_alpha[index] : 255); in print_pixel()
/external/opencv3/3rdparty/libpng/
Dpngget.c993 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1002 if (trans_alpha != NULL) in png_get_tRNS()
1004 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS()
1020 if (trans_alpha != NULL) in png_get_tRNS()
1021 *trans_alpha = NULL; in png_get_tRNS()
Dpngset.c893 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
900 if (trans_alpha != NULL) in png_set_tRNS()
910 png_ptr->trans_alpha = info_ptr->trans_alpha = in png_set_tRNS()
914 png_memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
Dpnginfo.h141 png_bytep trans_alpha; /* alpha values for paletted image */ member
Dpngrtran.c1096 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations()
1098 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations()
1149 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations()
1150 png_ptr->trans_alpha[i]); in png_init_palette_transformations()
1633 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations()
1635 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
1644 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1648 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations()
1652 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations()
1808 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
[all …]
Dpngstruct.h197 png_bytep trans_alpha; /* alpha values for paletted files */ member
Dpngwrite.c152 info_ptr->trans_alpha[j] = in png_write_info()
153 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
156 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()
Dpng.h2303 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color));
2309 png_const_bytep trans_alpha, int num_trans,
Dpng.c367 png_free(png_ptr, info_ptr->trans_alpha); in png_free_data()
368 info_ptr->trans_alpha = NULL; in png_free_data()
/external/libpng/
Dpngget.c1064 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1074 if (trans_alpha != NULL) in png_get_tRNS()
1076 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS()
1092 if (trans_alpha != NULL) in png_get_tRNS()
1093 *trans_alpha = NULL; in png_get_tRNS()
Dpnginfo.h153 png_bytep trans_alpha; /* alpha values for paletted image */ member
Dpngrtran.c1123 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations()
1125 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations()
1181 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations()
1182 png_ptr->trans_alpha[i]); in png_init_palette_transformations()
1675 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations()
1677 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
1686 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1690 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations()
1694 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations()
1851 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
[all …]
Dpngset.c934 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
942 if (trans_alpha != NULL) in png_set_tRNS()
956 png_ptr->trans_alpha = info_ptr->trans_alpha = png_voidcast(png_bytep, in png_set_tRNS()
960 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
Dpngstruct.h315 png_bytep trans_alpha; /* alpha values for paletted files */ member
Dpngtest.c1339 png_bytep trans_alpha; in test_one_file() local
1343 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file()
1354 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans, in test_one_file()
Dpngwrite.c227 info_ptr->trans_alpha[j] = in png_write_info()
228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
231 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()
Dpngread.c952 png_free(png_ptr, png_ptr->trans_alpha); in png_read_destroy()
953 png_ptr->trans_alpha = NULL; in png_read_destroy()
2779 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
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,
Dpngwutil.c1343 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, in png_write_tRNS() argument
1360 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha, in png_write_tRNS()
/external/pdfium/third_party/lpng_v163/
Dpngget.c1022 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1031 if (trans_alpha != NULL) in png_get_tRNS()
1033 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS()
1049 if (trans_alpha != NULL) in png_get_tRNS()
1050 *trans_alpha = NULL; in png_get_tRNS()
Dpnginfo.h154 png_bytep trans_alpha; /* alpha values for paletted image */ member
Dpngrtran.c1118 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations()
1120 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations()
1171 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations()
1172 png_ptr->trans_alpha[i]); in png_init_palette_transformations()
1666 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations()
1668 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
1677 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1681 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations()
1685 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations()
1842 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
[all …]
Dpngset.c912 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
919 if (trans_alpha != NULL) in png_set_tRNS()
933 png_ptr->trans_alpha = info_ptr->trans_alpha = png_voidcast(png_bytep, in png_set_tRNS()
937 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
Dpngstruct.h311 png_bytep trans_alpha; /* alpha values for paletted files */ member
Dpngwrite.c220 info_ptr->trans_alpha[j] = in png_write_info()
221 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
224 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()

12