/external/libpng/ |
D | pngstruct.h | 178 png_uint_32 mode; /* tells us where we are in the PNG file */ 179 png_uint_32 flags; /* flags indicating various things to libpng */ 180 png_uint_32 transformations; /* which transformations to perform */ 182 png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */ 213 png_uint_32 width; /* width of image in pixels */ 214 png_uint_32 height; /* height of image in pixels */ 215 png_uint_32 num_rows; /* number of rows in current pass */ 216 png_uint_32 usr_width; /* width of row at start of write */ 218 png_uint_32 iwidth; /* width of current interlaced row in pixels */ 219 png_uint_32 row_number; /* current row in interlace pass */ [all …]
|
D | png.h | 680 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL) 681 #define PNG_UINT_32_MAX ((png_uint_32)(-1)) 787 png_uint_32 width; /* width of row */ 809 typedef PNG_CALLBACK(void, *png_read_status_ptr, (png_structp, png_uint_32, 811 typedef PNG_CALLBACK(void, *png_write_status_ptr, (png_structp, png_uint_32, 829 png_uint_32, int)); 932 PNG_EXPORT(1, png_uint_32, png_access_version_number, (void)); 1025 png_const_bytep chunk_name, png_uint_32 length)); 1276 PNG_EXPORT(39, void, png_set_filler, (png_structrp png_ptr, png_uint_32 filler, 1283 png_uint_32 filler, int flags)); [all …]
|
D | pngwtran.c | 25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() 38 png_uint_32 i; in png_do_pack() 39 png_uint_32 row_width = row_info->width; in png_do_pack() 76 png_uint_32 i; in png_do_pack() 77 png_uint_32 row_width = row_info->width; in png_do_pack() 116 png_uint_32 i; in png_do_pack() 117 png_uint_32 row_width = row_info->width; in png_do_pack() 252 png_uint_32 i; in png_do_shift() 253 png_uint_32 istop = channels * row_info->width; in png_do_shift() 281 png_uint_32 i; in png_do_shift() [all …]
|
D | pngget.c | 19 png_uint_32 PNGAPI 21 png_uint_32 flag) in png_get_valid() 51 png_uint_32 PNGAPI 60 png_uint_32 PNGAPI 114 png_uint_32 PNGAPI 136 png_uint_32 PNGAPI 158 png_uint_32 PNGAPI 316 static png_uint_32 317 ppi_from_ppm(png_uint_32 ppm) in ppi_from_ppm() 323 png_uint_32 t1001, t1101; in ppi_from_ppm() [all …]
|
D | pngread.c | 108 png_uint_32 length = png_read_chunk_header(png_ptr); in png_read_info() 109 png_uint_32 chunk_name = png_ptr->chunk_name; in png_read_info() 329 png_uint_32 row_width = row_info->width; in png_do_read_intrapixel() 334 png_uint_32 i; in png_do_read_intrapixel() 354 png_uint_32 i; in png_do_read_intrapixel() 367 png_uint_32 s0 = (png_uint_32)(*(rp ) << 8) | *(rp + 1); in png_do_read_intrapixel() 368 png_uint_32 s1 = (png_uint_32)(*(rp + 2) << 8) | *(rp + 3); in png_do_read_intrapixel() 369 png_uint_32 s2 = (png_uint_32)(*(rp + 4) << 8) | *(rp + 5); in png_do_read_intrapixel() 370 png_uint_32 red = (s0 + s1 + 65536) & 0xffff; in png_do_read_intrapixel() 371 png_uint_32 blue = (s2 + s1 + 65536) & 0xffff; in png_do_read_intrapixel() [all …]
|
D | pngpriv.h | 726 #define PNG_DIV257(v16) PNG_DIV65535((png_uint_32)(v16) * 255) 747 (((pixel_bits) * ((width) % (png_uint_32)8)) % 8) 812 #define PNG_32b(b,s) ((png_uint_32)(b) << (s)) 1078 PNG_INTERNAL_FUNCTION(png_uint_32,png_read_chunk_header,(png_structrp png_ptr), 1087 png_uint_32 length),PNG_EMPTY); 1091 png_uint_32 skip),PNG_EMPTY); 1113 png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, 1117 png_const_colorp palette, png_uint_32 num_pal),PNG_EMPTY); 1216 png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, 1275 png_bytep row, int pass, png_uint_32 transformations),PNG_EMPTY); [all …]
|
D | pnginfo.h | 58 png_uint_32 width; /* width of image in pixels (from IHDR) */ 59 png_uint_32 height; /* height of image in pixels (from IHDR) */ 60 png_uint_32 valid; /* valid chunk data (see PNG_INFO_ below) */ 108 png_uint_32 iccp_proflen; /* ICC profile data length */ 183 png_uint_32 x_pixels_per_unit; /* horizontal pixel density */ 184 png_uint_32 y_pixels_per_unit; /* vertical pixel density */ 228 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
|
D | pngrutil.c | 21 png_uint_32 PNGAPI 24 png_uint_32 uval = png_get_uint_32(buf); in png_get_uint_31() 43 png_uint_32 uval = png_get_uint_32(buf); in png_get_fixed_point() 67 png_uint_32 (PNGAPI in png_uint_32() function 70 png_uint_32 uval = in png_uint_32() 71 ((png_uint_32)(*(buf )) << 24) + in png_uint_32() 72 ((png_uint_32)(*(buf + 1)) << 16) + in png_uint_32() 73 ((png_uint_32)(*(buf + 2)) << 8) + in png_uint_32() 74 ((png_uint_32)(*(buf + 3)) ) ; in png_uint_32() 87 png_uint_32 uval = png_get_uint_32(buf); in png_int_32() [all …]
|
D | pngwutil.c | 24 png_save_uint_32(png_bytep buf, png_uint_32 i) in png_save_uint_32() 73 png_write_chunk_header(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_chunk_header() 74 png_uint_32 length) in png_write_chunk_header() 116 png_uint_32 length) in png_write_chunk_start() 176 png_write_complete_chunk(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_complete_chunk() 186 png_write_chunk_header(png_ptr, chunk_name, (png_uint_32)length); in png_write_complete_chunk() 210 png_uint_32 h = png_ptr->height; in png_image_size() 219 png_uint_32 w = png_ptr->width; in png_image_size() 226 png_uint_32 pw = PNG_PASS_COLS(w, pass); in png_image_size() 293 png_deflate_claim(png_structrp png_ptr, png_uint_32 owner, in png_deflate_claim() [all …]
|
D | pngwrite.c | 207 (png_uint_32)info_ptr->num_palette); in png_write_info() 580 png_uint_32 num_rows) in png_write_rows() 582 png_uint_32 i; /* row counter */ in png_write_rows() 603 png_uint_32 i; /* row index */ in png_write_image() 641 png_uint_32 row_width = row_info->width; in png_do_write_intrapixel() 645 png_uint_32 i; in png_do_write_intrapixel() 667 png_uint_32 i; in png_do_write_intrapixel() 680 png_uint_32 s0 = (png_uint_32)(*(rp ) << 8) | *(rp + 1); in png_do_write_intrapixel() 681 png_uint_32 s1 = (png_uint_32)(*(rp + 2) << 8) | *(rp + 3); in png_do_write_intrapixel() 682 png_uint_32 s2 = (png_uint_32)(*(rp + 4) << 8) | *(rp + 5); in png_do_write_intrapixel() [all …]
|
D | png.c | 130 png_ptr->crc = (png_uint_32)crc32(0, Z_NULL, 0); in png_reset_crc() 185 png_ptr->crc = (png_uint_32)crc; in png_calculate_crc() 453 int freer, png_uint_32 mask) in png_data_freer() 471 png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask, in png_free_data() 663 png_uint_32 row; in png_free_data() 728 png_save_uint_32(buf, (png_uint_32)i); in png_save_int_32() 967 png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name) 991 png_uint_32 PNGAPI 995 return((png_uint_32)PNG_LIBPNG_VER); 1792 png_icc_tag_char(png_uint_32 byte) [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngstruct.h | 178 png_uint_32 mode; /* tells us where we are in the PNG file */ 179 png_uint_32 flags; /* flags indicating various things to libpng */ 180 png_uint_32 transformations; /* which transformations to perform */ 182 png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */ 213 png_uint_32 width; /* width of image in pixels */ 214 png_uint_32 height; /* height of image in pixels */ 215 png_uint_32 num_rows; /* number of rows in current pass */ 216 png_uint_32 usr_width; /* width of row at start of write */ 218 png_uint_32 iwidth; /* width of current interlaced row in pixels */ 219 png_uint_32 row_number; /* current row in interlace pass */ [all …]
|
D | png.h | 685 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL) 686 #define PNG_UINT_32_MAX ((png_uint_32)(-1)) 791 png_uint_32 width; /* width of row */ 813 typedef PNG_CALLBACK(void, *png_read_status_ptr, (png_structp, png_uint_32, 815 typedef PNG_CALLBACK(void, *png_write_status_ptr, (png_structp, png_uint_32, 833 png_uint_32, int)); 936 PNG_EXPORT(1, png_uint_32, png_access_version_number, (void)); 1029 png_const_bytep chunk_name, png_uint_32 length)); 1280 PNG_EXPORT(39, void, png_set_filler, (png_structrp png_ptr, png_uint_32 filler, 1287 png_uint_32 filler, int flags)); [all …]
|
D | pngwtran.c | 25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() 38 png_uint_32 i; in png_do_pack() 39 png_uint_32 row_width = row_info->width; in png_do_pack() 76 png_uint_32 i; in png_do_pack() 77 png_uint_32 row_width = row_info->width; in png_do_pack() 116 png_uint_32 i; in png_do_pack() 117 png_uint_32 row_width = row_info->width; in png_do_pack() 252 png_uint_32 i; in png_do_shift() 253 png_uint_32 istop = channels * row_info->width; in png_do_shift() 281 png_uint_32 i; in png_do_shift() [all …]
|
D | pngget.c | 19 png_uint_32 PNGAPI 21 png_uint_32 flag) in png_get_valid() 51 png_uint_32 PNGAPI 60 png_uint_32 PNGAPI 114 png_uint_32 PNGAPI 136 png_uint_32 PNGAPI 158 png_uint_32 PNGAPI 316 static png_uint_32 317 ppi_from_ppm(png_uint_32 ppm) in ppi_from_ppm() 323 png_uint_32 t1001, t1101; in ppi_from_ppm() [all …]
|
D | pngpriv.h | 671 #define PNG_DIV257(v16) PNG_DIV65535((png_uint_32)(v16) * 255) 739 #define PNG_32b(b,s) ((png_uint_32)(b) << (s)) 1004 PNG_INTERNAL_FUNCTION(png_uint_32,png_read_chunk_header,(png_structrp png_ptr), 1013 png_uint_32 length),PNG_EMPTY); 1017 png_uint_32 skip),PNG_EMPTY); 1039 png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, 1043 png_const_colorp palette, png_uint_32 num_pal),PNG_EMPTY); 1137 png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, 1196 png_bytep row, int pass, png_uint_32 transformations),PNG_EMPTY); 1317 png_inforp info_ptr, png_uint_32 length),PNG_EMPTY); [all …]
|
D | pnginfo.h | 58 png_uint_32 width; /* width of image in pixels (from IHDR) */ 59 png_uint_32 height; /* height of image in pixels (from IHDR) */ 60 png_uint_32 valid; /* valid chunk data (see PNG_INFO_ below) */ 108 png_uint_32 iccp_proflen; /* ICC profile data length */ 183 png_uint_32 x_pixels_per_unit; /* horizontal pixel density */ 184 png_uint_32 y_pixels_per_unit; /* vertical pixel density */ 220 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
|
D | pngread.c | 108 png_uint_32 length = png_read_chunk_header(png_ptr); in png_read_info() 109 png_uint_32 chunk_name = png_ptr->chunk_name; in png_read_info() 324 png_uint_32 row_width = row_info->width; in png_do_read_intrapixel() 329 png_uint_32 i; in png_do_read_intrapixel() 349 png_uint_32 i; in png_do_read_intrapixel() 362 png_uint_32 s0 = (*(rp ) << 8) | *(rp + 1); in png_do_read_intrapixel() 363 png_uint_32 s1 = (*(rp + 2) << 8) | *(rp + 3); in png_do_read_intrapixel() 364 png_uint_32 s2 = (*(rp + 4) << 8) | *(rp + 5); in png_do_read_intrapixel() 365 png_uint_32 red = (s0 + s1 + 65536) & 0xffff; in png_do_read_intrapixel() 366 png_uint_32 blue = (s2 + s1 + 65536) & 0xffff; in png_do_read_intrapixel() [all …]
|
D | pngwutil.c | 24 png_save_uint_32(png_bytep buf, png_uint_32 i) in png_save_uint_32() 73 png_write_chunk_header(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_chunk_header() 74 png_uint_32 length) in png_write_chunk_header() 116 png_uint_32 length) in png_write_chunk_start() 176 png_write_complete_chunk(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_complete_chunk() 186 png_write_chunk_header(png_ptr, chunk_name, (png_uint_32)length); in png_write_complete_chunk() 210 png_uint_32 h = png_ptr->height; in png_image_size() 219 png_uint_32 w = png_ptr->width; in png_image_size() 226 png_uint_32 pw = PNG_PASS_COLS(w, pass); in png_image_size() 293 png_deflate_claim(png_structrp png_ptr, png_uint_32 owner, in png_deflate_claim() [all …]
|
D | pngrutil.c | 21 png_uint_32 PNGAPI 24 png_uint_32 uval = png_get_uint_32(buf); in png_get_uint_31() 43 png_uint_32 uval = png_get_uint_32(buf); in png_get_fixed_point() 67 png_uint_32 (PNGAPI in png_uint_32() function 70 png_uint_32 uval = in png_uint_32() 71 ((png_uint_32)(*(buf )) << 24) + in png_uint_32() 72 ((png_uint_32)(*(buf + 1)) << 16) + in png_uint_32() 73 ((png_uint_32)(*(buf + 2)) << 8) + in png_uint_32() 74 ((png_uint_32)(*(buf + 3)) ) ; in png_uint_32() 87 png_uint_32 uval = png_get_uint_32(buf); in png_int_32() [all …]
|
/external/libpng/contrib/pngminus/ |
D | pnm2png.c | 70 png_uint_32 get_data (FILE *pnm_file, int depth); 71 png_uint_32 get_value (FILE *pnm_file, int depth); 211 volatile png_uint_32 row_bytes; in pnm2png() 221 volatile png_uint_32 width=0, height=0; in pnm2png() 222 volatile png_uint_32 alpha_width=0, alpha_height=0; in pnm2png() 223 png_uint_32 maxval; in pnm2png() 233 png_uint_32 tmp16; in pnm2png() 250 width = (png_uint_32) ul_width; in pnm2png() 253 height = (png_uint_32) ul_height; in pnm2png() 267 width = (png_uint_32) ul_width; in pnm2png() [all …]
|
/external/libpng/contrib/tools/ |
D | pngfix.c | 106 #define PNG_32b(b,s) ((png_uint_32)(b) << (s)) 253 uarb_add32(uarb num, int in_digits, png_uint_32 add) in uarb_add32() 285 png_uint_32 carry = 0; in uarb_mult_digit() 294 carry += (png_uint_32)num[out_digits] * val; in uarb_mult_digit() 311 uarb_mult32(uarb acc, int a_digits, uarb num, int n_digits, png_uint_32 val) in uarb_mult32() 383 uarb_eq32(uarb num, int digits, png_uint_32 val) 448 make_random_bytes(png_uint_32* seed, void* pv, size_t size) in make_random_bytes() 450 png_uint_32 u0 = seed[0], u1 = seed[1]; in make_random_bytes() 460 png_uint_32 u = ((u0 >> (20-8)) ^ ((u1 << 7) | (u0 >> (32-7)))) & 0xff; in make_random_bytes() 476 static png_uint_32 clear_seed[2] = { 0x12345678, 0x9abcdef0 }; in clear() [all …]
|
/external/libpng/contrib/libtests/ |
D | pngunknown.c | 107 (((png_uint_32)PNG_u2(b1, b2) << 16) + PNG_u2(b3, b4)) 185 png_uint_32 flag; 186 png_uint_32 tag; 369 find_by_flag(png_uint_32 flag) in find_by_flag() 399 png_uint_32 before_IDAT; 400 png_uint_32 after_IDAT; 479 static png_uint_32 482 png_uint_32 flags = png_get_valid(d->png_ptr, info_ptr, (png_uint_32)~0); in get_valid() 487 png_uint_32 ntext = png_get_text(d->png_ptr, info_ptr, &text, NULL); in get_valid() 564 png_uint_32 flag = chunk_info[chunk].flag; in read_callback() [all …]
|
D | makepng.c | 329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value() 330 png_uint_32 value, png_const_bytep gamma_table, double conv) in set_value() 338 png_uint_32 offset = x >> 3; in set_value() 395 png_uint_32 size_max = in generate_row() 397 png_uint_32 depth_max = (1U << bit_depth)-1; /* up to 65536 */ in generate_row() 537 png_uint_32 x; in generate_row() 538 png_uint_32 base = 2*size_max - abs(2*y-size_max); in generate_row() 542 png_uint_32 luma = base - abs(2*x-size_max); in generate_row() 558 png_uint_32 alpha = (depth_max * y * 2 + size_max) / (2 * size_max); in generate_row() 559 png_uint_32 x; in generate_row() [all …]
|
/external/libpng/contrib/examples/ |
D | pngpixel.c | 34 component(png_const_bytep row, png_uint_32 x, unsigned int c, in component() 42 png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels); in component() 43 png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c); in component() 74 png_uint_32 x) in print_pixel() 182 png_uint_32 width, height; in main() 247 png_uint_32 ystart, xstart, ystep, xstep; in main() 248 png_uint_32 py; in main() 284 png_uint_32 px, ppx; in main()
|