/external/libpng/contrib/examples/ |
D | pngpixel.c | 96 int num_trans = 0; in print_pixel() local 97 if ((png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, in print_pixel() 98 NULL) & PNG_INFO_tRNS) && num_trans > 0 && in print_pixel() 103 index < num_trans ? trans_alpha[index] : 255); in print_pixel()
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkImageDecoder_libpng.cpp | 202 int num_trans; in hasTransparencyInPalette() local 205 png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, NULL); in hasTransparencyInPalette() 206 return num_trans > 0; in hasTransparencyInPalette() 1056 int i, num_trans = 0; in pack_palette() local 1067 num_trans = ctCount; in pack_palette() 1072 num_trans -= 1; in pack_palette() 1078 for (i = 0; i < num_trans; i++) { in pack_palette() 1092 for (i = num_trans; i < ctCount; i++) { in pack_palette() 1098 return num_trans; in pack_palette()
|
/external/skia/src/images/ |
D | SkImageDecoder_libpng.cpp | 202 int num_trans; in hasTransparencyInPalette() local 205 png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, NULL); in hasTransparencyInPalette() 206 return num_trans > 0; in hasTransparencyInPalette() 1056 int i, num_trans = 0; in pack_palette() local 1067 num_trans = ctCount; in pack_palette() 1072 num_trans -= 1; in pack_palette() 1078 for (i = 0; i < num_trans; i++) { in pack_palette() 1092 for (i = num_trans; i < ctCount; i++) { in pack_palette() 1098 return num_trans; in pack_palette()
|
/external/qemu/distrib/libpng-1.2.46/ |
D | pngset.c | 846 png_bytep trans, int num_trans, png_color_16p trans_values) in png_set_tRNS() argument 867 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) in png_set_tRNS() 868 png_memcpy(info_ptr->trans, trans, (png_size_t)num_trans); in png_set_tRNS() 884 if (num_trans == 0) in png_set_tRNS() 885 num_trans = 1; in png_set_tRNS() 888 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS() 889 if (num_trans != 0) in png_set_tRNS()
|
D | pngrtran.c | 895 istop=(int)png_ptr->num_trans; in png_init_read_transformations() 911 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0) in png_init_read_transformations() 917 for (i=0; i<png_ptr->num_trans; i++) in png_init_read_transformations() 1003 if (i < (int)png_ptr->num_trans && png_ptr->trans[i] != 0xff) in png_init_read_transformations() 1132 int istop = (int)png_ptr->num_trans; in png_init_read_transformations() 1210 if (png_ptr->num_trans) in png_read_transform_info() 1215 info_ptr->num_trans = 0; in png_read_transform_info() 1219 if (png_ptr->num_trans) in png_read_transform_info() 1226 info_ptr->num_trans = 0; in png_read_transform_info() 1235 info_ptr->num_trans = 0; in png_read_transform_info() [all …]
|
D | pngrutil.c | 656 if (png_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE() 659 png_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE() 661 if (info_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE() 664 info_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE() 1382 png_ptr->num_trans = 1; in png_handle_tRNS() 1396 png_ptr->num_trans = 1; in png_handle_tRNS() 1422 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS() 1433 png_ptr->num_trans = 0; in png_handle_tRNS() 1437 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS() 3291 if (png_ptr->num_trans) in png_read_start_row() [all …]
|
D | pngget.c | 806 png_bytep *trans, int *num_trans, png_color_16p *trans_values) in png_get_tRNS() argument 835 if (num_trans != NULL) in png_get_tRNS() 837 *num_trans = info_ptr->num_trans; in png_get_tRNS()
|
D | png.h | 868 png_uint_16 num_trans PNG_DEPSTRUCT; /* number of transparent palette color (tRNS) */ 1368 png_uint_16 num_trans PNG_DEPSTRUCT; /* number of transparency values */ 2597 png_infop info_ptr, png_bytep *trans, int *num_trans, 2603 png_infop info_ptr, png_bytep trans, int num_trans, 3635 int num_trans)) PNG_PRIVATE;
|
D | pngwutil.c | 1077 int num_trans, int color_type) in png_write_tRNS() argument 1088 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1095 (png_size_t)num_trans); in png_write_tRNS()
|
/external/chromium_org/third_party/libpng/ |
D | pngset.c | 836 png_bytep trans, int num_trans, png_color_16p trans_values) in png_set_tRNS() argument 857 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) in png_set_tRNS() 858 png_memcpy(info_ptr->trans, trans, (png_size_t)num_trans); in png_set_tRNS() 874 if (num_trans == 0) in png_set_tRNS() 875 num_trans = 1; in png_set_tRNS() 878 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS() 879 if (num_trans != 0) in png_set_tRNS()
|
D | pngrtran.c | 895 istop=(int)png_ptr->num_trans; in png_init_read_transformations() 911 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0) in png_init_read_transformations() 917 for (i=0; i<png_ptr->num_trans; i++) in png_init_read_transformations() 1003 if (i < (int)png_ptr->num_trans && png_ptr->trans[i] != 0xff) in png_init_read_transformations() 1132 int istop = (int)png_ptr->num_trans; in png_init_read_transformations() 1210 if (png_ptr->num_trans) in png_read_transform_info() 1215 info_ptr->num_trans = 0; in png_read_transform_info() 1219 if (png_ptr->num_trans) in png_read_transform_info() 1226 info_ptr->num_trans = 0; in png_read_transform_info() 1235 info_ptr->num_trans = 0; in png_read_transform_info() [all …]
|
D | pngrutil.c | 640 if (png_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE() 643 png_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE() 645 if (info_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE() 648 info_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE() 1366 png_ptr->num_trans = 1; in png_handle_tRNS() 1380 png_ptr->num_trans = 1; in png_handle_tRNS() 1406 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS() 1417 png_ptr->num_trans = 0; in png_handle_tRNS() 1421 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS() 3249 if (png_ptr->num_trans) in png_read_start_row() [all …]
|
D | pngget.c | 806 png_bytep *trans, int *num_trans, png_color_16p *trans_values) in png_get_tRNS() argument 835 if (num_trans != NULL) in png_get_tRNS() 837 *num_trans = info_ptr->num_trans; in png_get_tRNS()
|
D | png.h | 821 png_uint_16 num_trans PNG_DEPSTRUCT; /* number of transparent palette color (tRNS) */ 1315 png_uint_16 num_trans PNG_DEPSTRUCT; /* number of transparency values */ 2525 png_infop info_ptr, png_bytep *trans, int *num_trans, 2531 png_infop info_ptr, png_bytep trans, int num_trans, 3546 int num_trans)) PNG_PRIVATE;
|
D | pngwutil.c | 1077 int num_trans, int color_type) in png_write_tRNS() argument 1088 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1095 (png_size_t)num_trans); in png_write_tRNS()
|
/external/libpng/ |
D | pngset.c | 913 png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) in png_set_tRNS() argument 937 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) in png_set_tRNS() 938 memcpy(info_ptr->trans_alpha, trans_alpha, (png_size_t)num_trans); in png_set_tRNS() 956 if (num_trans == 0) in png_set_tRNS() 957 num_trans = 1; in png_set_tRNS() 960 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS() 962 if (num_trans != 0) in png_set_tRNS()
|
D | pngread.c | 1496 else if (png_ptr->num_trans > 0) in png_image_format() 2239 png_ptr->num_trans > 0) /* alpha in input */ && in png_image_read_colormap() 2319 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2394 if (png_ptr->num_trans > 0) in png_image_read_colormap() 2638 png_ptr->num_trans > 0) && in png_image_read_colormap() 2673 png_ptr->num_trans > 0) && in png_image_read_colormap() 2686 png_ptr->num_trans > 0) in png_image_read_colormap() 2757 png_ptr->num_trans > 0) in png_image_read_colormap() 2914 unsigned int num_trans = png_ptr->num_trans; in png_image_read_colormap() local 2915 png_const_bytep trans = num_trans > 0 ? png_ptr->trans_alpha : NULL; in png_image_read_colormap() [all …]
|
D | pnginfo.h | 65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ member
|
D | pngwrite.c | 220 for (j = 0; j<(int)info_ptr->num_trans; j++) in png_write_info() 226 info_ptr->num_trans, info_ptr->color_type); in png_write_info() 2003 int i, num_trans; in png_image_set_PLTE() local 2010 for (i=num_trans=0; i<entries; ++i) in png_image_set_PLTE() 2053 num_trans = i+1; in png_image_set_PLTE() 2082 num_trans = i+1; in png_image_set_PLTE() 2093 num_trans = i+1; in png_image_set_PLTE() 2116 if (num_trans > 0) in png_image_set_PLTE() 2118 num_trans, NULL); in png_image_set_PLTE()
|
D | pngrtran.c | 1113 if (png_ptr->num_trans > 0) in png_init_palette_transformations() 1118 for (i=0; i<png_ptr->num_trans; ++i) in png_init_palette_transformations() 1175 int i, istop = png_ptr->num_trans; in png_init_palette_transformations() 1196 int input_has_transparency = png_ptr->num_trans > 0; in png_init_rgb_transformations() 1396 png_ptr->num_trans = 0; in png_init_read_transformations() 1672 if (i < (int)png_ptr->num_trans && in png_init_read_transformations() 1839 int istop = (int)png_ptr->num_trans; in png_init_read_transformations() 1937 if (png_ptr->num_trans > 0) in png_read_transform_info() 1944 info_ptr->num_trans = 0; in png_read_transform_info() 1951 if (png_ptr->num_trans) in png_read_transform_info() [all …]
|
D | pngrutil.c | 1040 if (png_ptr->num_trans > 0 || in png_handle_PLTE() 1047 png_ptr->num_trans = 0; in png_handle_PLTE() 1050 info_ptr->num_trans = 0; in png_handle_PLTE() 1812 png_ptr->num_trans = 1; in png_handle_tRNS() 1828 png_ptr->num_trans = 1; in png_handle_tRNS() 1853 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS() 1865 png_ptr->num_trans = 0; in png_handle_tRNS() 1873 png_set_tRNS(png_ptr, info_ptr, readbuf, png_ptr->num_trans, in png_handle_tRNS() 4312 if (png_ptr->num_trans) in png_read_start_row() 4324 if (png_ptr->num_trans) in png_read_start_row() [all …]
|
D | pngget.c | 1023 png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) in png_get_tRNS() argument 1054 if (num_trans != NULL) in png_get_tRNS() 1056 *num_trans = info_ptr->num_trans; in png_get_tRNS()
|
D | pngstruct.h | 293 png_uint_16 num_trans; /* number of transparency values */ member
|
D | pngtest.c | 1298 int num_trans; 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()
|
D | pngwutil.c | 1420 png_const_color_16p tran, int num_trans, int color_type) in png_write_tRNS() argument 1428 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1437 (png_size_t)num_trans); in png_write_tRNS()
|