Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/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()
/third_party/skia/third_party/externals/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()
/third_party/python/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]:
/third_party/skia/third_party/externals/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 …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/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
/third_party/python/Modules/
D_zoneinfo.c514 size_t num_trans = self->num_transitions; in zoneinfo_fromutc() local
519 if (num_trans >= 1 && timestamp < self->trans_list_utc[0]) { in zoneinfo_fromutc()
522 else if (num_trans == 0 || in zoneinfo_fromutc()
523 timestamp > self->trans_list_utc[num_trans - 1]) { in zoneinfo_fromutc()
532 if (num_trans) { in zoneinfo_fromutc()
534 if (num_trans == 1) { in zoneinfo_fromutc()
538 tti_prev = self->trans_ttinfos[num_trans - 2]; in zoneinfo_fromutc()
542 timestamp < (self->trans_list_utc[num_trans - 1] + diff)) { in zoneinfo_fromutc()
548 size_t idx = _bisect(timestamp, self->trans_list_utc, num_trans); in zoneinfo_fromutc()
2151 size_t num_trans = self->num_transitions; in find_ttinfo() local
[all …]

12