Home
last modified time | relevance | path

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

/external/libpng/contrib/examples/
Dpngpixel.c95 png_bytep trans_alpha = NULL; in print_pixel() local
97 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, in print_pixel()
99 trans_alpha != NULL) in print_pixel()
103 index < num_trans ? trans_alpha[index] : 255); in print_pixel()
/external/libpng/
Dpngget.c1023 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument
1032 if (trans_alpha != NULL) in png_get_tRNS()
1034 *trans_alpha = info_ptr->trans_alpha; in png_get_tRNS()
1050 if (trans_alpha != NULL) in png_get_tRNS()
1051 *trans_alpha = NULL; in png_get_tRNS()
Dpnginfo.h154 png_bytep trans_alpha; /* alpha values for paletted image */ member
Dpngrtran.c1120 if (png_ptr->trans_alpha[i] == 255) in png_init_palette_transformations()
1122 else if (png_ptr->trans_alpha[i] == 0) in png_init_palette_transformations()
1178 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations()
1179 png_ptr->trans_alpha[i]); in png_init_palette_transformations()
1673 png_ptr->trans_alpha[i] != 0xff) in png_init_read_transformations()
1675 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
1684 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1688 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations()
1692 png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); in png_init_read_transformations()
1849 if (png_ptr->trans_alpha[i] == 0) in png_init_read_transformations()
[all …]
Dpngset.c913 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument
920 if (trans_alpha != NULL) in png_set_tRNS()
934 png_ptr->trans_alpha = info_ptr->trans_alpha = png_voidcast(png_bytep, in png_set_tRNS()
938 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS()
Dpngstruct.h358 png_bytep trans_alpha; /* alpha values for paletted files */ member
Dpngtest.c1297 png_bytep trans_alpha; in test_one_file() local
1301 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file()
1312 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans, in test_one_file()
Dpngwrite.c221 info_ptr->trans_alpha[j] = in png_write_info()
222 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
225 png_write_tRNS(png_ptr, info_ptr->trans_alpha, &(info_ptr->trans_color), in png_write_info()
Dpng.h2296 png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans,
2302 png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans,
Dpngwutil.c1419 png_write_tRNS(png_structrp png_ptr, png_const_bytep trans_alpha, in png_write_tRNS() argument
1436 png_write_complete_chunk(png_ptr, png_tRNS, trans_alpha, in png_write_tRNS()
Dpng.c481 png_free(png_ptr, info_ptr->trans_alpha); in png_free_data()
482 info_ptr->trans_alpha = NULL; in png_free_data()
Dpngread.c1090 png_free(png_ptr, png_ptr->trans_alpha); in png_read_destroy()
2915 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap()
Dlibpng-manual.txt1417 png_get_tRNS(png_ptr, info_ptr, &trans_alpha,
1420 trans_alpha - array of alpha (transparency)
3042 png_set_tRNS(png_ptr, info_ptr, trans_alpha,
3045 trans_alpha - array of alpha (transparency)
4720 changed to "trans_alpha" and "trans_color", respectively.
DCHANGES2368 Changed png_ptr and info_ptr member "trans" to "trans_alpha".
/external/libpng/contrib/libtests/
Dpngvalid.c4349 png_bytep trans_alpha; in read_palette() local
4384 trans_alpha = 0; in read_palette()
4386 if ((png_get_tRNS(pp, pi, &trans_alpha, &num, 0) & PNG_INFO_tRNS) != 0 && in read_palette()
4387 (trans_alpha != NULL || num != 1/*returns 1 for a transparent color*/) && in read_palette()
4393 !(trans_alpha != NULL && num == 0)) /* TODO: fix this in libpng. */ in read_palette()
4403 if (trans_alpha == NULL || num <= 0 || num > 256 || num > *npalette) in read_palette()
4407 palette[i].alpha = trans_alpha[i]; in read_palette()