Home
last modified time | relevance | path

Searched refs:num_trans (Results 1 – 25 of 30) 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/arm/
Dpalette_neon_intrinsics.c30 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/
Dpalette_neon_intrinsics.c30 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/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py123 num_trans = len(self._trans_utc)
125 if num_trans >= 1 and timestamp < self._trans_utc[0]:
129 num_trans == 0 or timestamp > self._trans_utc[-1]
134 elif num_trans == 0:
140 if num_trans > 1 and timestamp >= self._trans_utc[1]:
169 num_trans = len(lt)
171 if num_trans and ts < lt[0]:
173 elif not num_trans or ts > lt[-1]:
/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, (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.c1370 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 …]
Dpngrtran.c1130 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 …]
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()
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()
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 …]
Dpngget.c1094 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()
Dpngstruct.h247 png_uint_16 num_trans; /* number of transparency values */ member
Dpngtest.c1367 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()
Dpngwutil.c1349 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()
Dpng.h2141 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/
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, (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.c1370 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 …]
Dpngrtran.c1130 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 …]
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()
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()
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 …]
Dpngget.c1094 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()
Dpngstruct.h247 png_uint_16 num_trans; /* number of transparency values */ member
Dpngwutil.c1349 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()
/external/python/cpython3/Modules/
D_zoneinfo.c512 size_t num_trans = self->num_transitions; in zoneinfo_fromutc() local
517 if (num_trans >= 1 && timestamp < self->trans_list_utc[0]) { in zoneinfo_fromutc()
520 else if (num_trans == 0 || in zoneinfo_fromutc()
521 timestamp > self->trans_list_utc[num_trans - 1]) { in zoneinfo_fromutc()
530 if (num_trans) { in zoneinfo_fromutc()
532 if (num_trans == 1) { in zoneinfo_fromutc()
536 tti_prev = self->trans_ttinfos[num_trans - 2]; in zoneinfo_fromutc()
540 timestamp < (self->trans_list_utc[num_trans - 1] + diff)) { in zoneinfo_fromutc()
546 size_t idx = _bisect(timestamp, self->trans_list_utc, num_trans); in zoneinfo_fromutc()
2147 size_t num_trans = self->num_transitions; in find_ttinfo() local
[all …]

12