Home
last modified time | relevance | path

Searched refs:png_uint_32 (Results 1 – 25 of 54) sorted by relevance

123

/external/libpng/
Dpngstruct.h178 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 …]
Dpng.h649 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL)
650 #define PNG_UINT_32_MAX ((png_uint_32)(-1))
756 png_uint_32 width; /* width of row */
778 typedef PNG_CALLBACK(void, *png_read_status_ptr, (png_structp, png_uint_32,
780 typedef PNG_CALLBACK(void, *png_write_status_ptr, (png_structp, png_uint_32,
798 png_uint_32, int));
901 PNG_EXPORT(1, png_uint_32, png_access_version_number, (void));
994 png_const_bytep chunk_name, png_uint_32 length));
1245 PNG_EXPORT(39, void, png_set_filler, (png_structrp png_ptr, png_uint_32 filler,
1252 png_uint_32 filler, int flags));
[all …]
Dpngwtran.c25 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()
280 png_uint_32 i; in png_do_shift()
[all …]
Dpngget.c19 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 …]
Dpngpriv.h726 #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 …]
Dpngread.c108 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 …]
Dpnginfo.h58 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 */
Dpngrutil.c21 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 …]
Dpngwutil.c24 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()
175 png_write_complete_chunk(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_complete_chunk()
185 png_write_chunk_header(png_ptr, chunk_name, (png_uint_32)length); in png_write_complete_chunk()
209 png_uint_32 h = png_ptr->height; in png_image_size()
218 png_uint_32 w = png_ptr->width; in png_image_size()
225 png_uint_32 pw = PNG_PASS_COLS(w, pass); in png_image_size()
292 png_deflate_claim(png_structrp png_ptr, png_uint_32 owner, in png_deflate_claim()
[all …]
Dpngwrite.c207 (png_uint_32)info_ptr->num_palette); in png_write_info()
590 png_uint_32 num_rows) in png_write_rows()
592 png_uint_32 i; /* row counter */ in png_write_rows()
613 png_uint_32 i; /* row index */ in png_write_image()
651 png_uint_32 row_width = row_info->width; in png_do_write_intrapixel()
655 png_uint_32 i; in png_do_write_intrapixel()
677 png_uint_32 i; in png_do_write_intrapixel()
690 png_uint_32 s0 = (png_uint_32)(*(rp ) << 8) | *(rp + 1); in png_do_write_intrapixel()
691 png_uint_32 s1 = (png_uint_32)(*(rp + 2) << 8) | *(rp + 3); in png_do_write_intrapixel()
692 png_uint_32 s2 = (png_uint_32)(*(rp + 4) << 8) | *(rp + 5); in png_do_write_intrapixel()
[all …]
Dpng.c130 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()
961 png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
985 png_uint_32 PNGAPI
989 return((png_uint_32)PNG_LIBPNG_VER);
1786 png_icc_tag_char(png_uint_32 byte)
[all …]
Dpngtrans.c120 png_set_filler(png_structrp png_ptr, png_uint_32 filler, int filler_loc) in png_set_filler()
205 png_set_add_alpha(png_structrp png_ptr, png_uint_32 filler, int filler_loc) in png_set_add_alpha()
326 png_uint_32 i; in png_do_swap()
327 png_uint_32 istop= row_info->width * row_info->channels; in png_do_swap()
625 png_uint_32 row_width = row_info->width; in png_do_bgr()
631 png_uint_32 i; in png_do_bgr()
644 png_uint_32 i; in png_do_bgr()
661 png_uint_32 i; in png_do_bgr()
677 png_uint_32 i; in png_do_bgr()
843 png_uint_32 PNGAPI
Dpngconf.h511 typedef unsigned int png_uint_32; typedef
513 typedef unsigned long int png_uint_32; typedef
555 typedef png_uint_32 png_alloc_size_t;
581 typedef png_uint_32 * png_uint_32p;
582 typedef const png_uint_32 * png_const_uint_32p;
607 typedef png_uint_32 * * png_uint_32pp;
Dpngrtran.c444 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
461 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
595 (png_alloc_size_t)((png_uint_32)num_palette * in png_set_quantize()
598 (png_alloc_size_t)((png_uint_32)num_palette * in png_set_quantize()
1022 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1023 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
2158 png_uint_32 i; in png_do_unpack()
2159 png_uint_32 row_width=row_info->width; in png_do_unpack()
2167 png_uint_32 shift = 7U - ((row_width + 7U) & 0x07); in png_do_unpack()
2191 png_uint_32 shift = ((3U - ((row_width + 3U) & 0x03)) << 1); in png_do_unpack()
[all …]
Dpngtest.c174 read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass) in read_row_callback()
199 write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass) in write_row_callback()
226 static png_uint_32 zero_samples;
249 png_uint_32 n, nstop; in count_zero_samples()
303 png_uint_32 n, nstop; in count_zero_samples()
349 png_uint_32 io_op);
352 png_uint_32 io_op) in pngtest_check_io_state()
354 png_uint_32 io_state = png_get_io_state(png_ptr); in pngtest_check_io_state()
641 png_uint_32 vpAg_width, vpAg_height;
873 png_uint_32 y; in test_one_file()
[all …]
/external/libpng/contrib/pngminus/
Dpnm2png.c37 png_uint_32 get_data (FILE *pnm_file, int depth);
38 png_uint_32 get_value (FILE *pnm_file, int depth);
171 volatile png_uint_32 row_bytes; in pnm2png()
181 volatile png_uint_32 width = 0, height = 0; in pnm2png()
182 volatile png_uint_32 alpha_width = 0, alpha_height = 0; in pnm2png()
183 png_uint_32 maxval; in pnm2png()
193 png_uint_32 tmp16; in pnm2png()
210 width = (png_uint_32) ul_width; in pnm2png()
213 height = (png_uint_32) ul_height; in pnm2png()
228 width = (png_uint_32) ul_width; in pnm2png()
[all …]
/external/libpng/contrib/tools/
Dpngfix.c106 #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/
Dpngunknown.c107 (((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()
401 png_uint_32 before_IDAT;
402 png_uint_32 after_IDAT;
481 static png_uint_32
484 png_uint_32 flags = png_get_valid(d->png_ptr, info_ptr, (png_uint_32)~0); in get_valid()
489 png_uint_32 ntext = png_get_text(d->png_ptr, info_ptr, &text, NULL); in get_valid()
568 png_uint_32 flag = chunk_info[chunk].flag; in read_callback()
[all …]
Dmakepng.c330 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value()
331 png_uint_32 value, png_const_bytep gamma_table, double conv) in set_value()
339 png_uint_32 offset = x >> 3; in set_value()
396 png_uint_32 size_max = in generate_row()
398 png_uint_32 depth_max = (1U << bit_depth)-1; /* up to 65536 */ in generate_row()
538 png_uint_32 x; in generate_row()
539 png_uint_32 base = 2*size_max - abs(2*y-size_max); in generate_row()
543 png_uint_32 luma = base - abs(2*x-size_max); in generate_row()
559 png_uint_32 alpha = (depth_max * y * 2 + size_max) / (2 * size_max); in generate_row()
560 png_uint_32 x; in generate_row()
[all …]
Dpngvalid.c271 make_random_bytes(png_uint_32* seed, void* pv, size_t size) in make_random_bytes()
273 png_uint_32 u0 = seed[0], u1 = seed[1]; in make_random_bytes()
283 png_uint_32 u = ((u0 >> (20-8)) ^ ((u1 << 7) | (u0 >> (32-7)))) & 0xff; in make_random_bytes()
296 make_four_random_bytes(png_uint_32* seed, png_bytep bytes) in make_four_random_bytes()
306 static png_uint_32 random_seed[2] = {0x56789abc, 0xd}; in randomize()
332 static png_uint_32
368 ((png_uint_32)((col) + ((depth)<<3) + ((palette)<<8) + ((interlace)<<13) + \
383 png_uint_32 w, png_uint_32 h, int do_interlace) in standard_name()
421 standard_name_from_id(char *buffer, size_t bufsize, size_t pos, png_uint_32 id) in standard_name_from_id()
522 png_uint_32 x, unsigned int sample_index, int swap16, int littleendian) in sample()
[all …]
Dpngstest.c87 make_random_bytes(png_uint_32* seed, void* pv, size_t size) in make_random_bytes()
89 png_uint_32 u0 = seed[0], u1 = seed[1]; in make_random_bytes()
99 png_uint_32 u = ((u0 >> (20-8)) ^ ((u1 << 7) | (u0 >> (32-7)))) & 0xff; in make_random_bytes()
111 static png_uint_32 color_seed[2];
341 print_opts(png_uint_32 opts) in print_opts()
452 static png_uint_32
459 return (png_uint_32)format; in formatof()
464 return (png_uint_32)format; in formatof()
475 png_uint_32 bits[FORMAT_SET_COUNT];
505 static int format_set(format_list *pf, png_uint_32 format) in format_set()
[all …]
Dtarith.c622 png_uint_32 randbuffer; in validation_muldiv()
745 static png_uint_32 png_log8bit(unsigned x) in png_log8bit()
748 return (png_uint_32)floor(.5-log(x/255.)*L2INV); in png_log8bit()
753 static png_uint_32 png_log16bit(png_uint_32 x) in png_log16bit()
756 return (png_uint_32)floor(.5-log(x/65535.)*L2INV); in png_log16bit()
761 static png_uint_32 png_exp(png_uint_32 x) in png_exp()
763 return (png_uint_32)floor(.5 + exp(x * -LN2) * 0xffffffffU); in png_exp()
766 static png_byte png_exp8bit(png_uint_32 log) in png_exp8bit()
771 static png_uint_16 png_exp16bit(png_uint_32 log) in png_exp16bit()
/external/libpng/arm/
Dpalette_neon_intrinsics.c65 png_uint_32 row_width = row_info->width; in png_do_expand_palette_rgba8_neon()
66 const png_uint_32 *riffled_palette = in png_do_expand_palette_rgba8_neon()
67 (const png_uint_32 *)png_ptr->riffled_palette; in png_do_expand_palette_rgba8_neon()
68 const png_uint_32 pixels_per_chunk = 4; in png_do_expand_palette_rgba8_neon()
69 png_uint_32 i; in png_do_expand_palette_rgba8_neon()
81 *ddp = *ddp - ((pixels_per_chunk * sizeof(png_uint_32)) - 1); in png_do_expand_palette_rgba8_neon()
110 png_uint_32 row_width = row_info->width; in png_do_expand_palette_rgb8_neon()
112 const png_uint_32 pixels_per_chunk = 8; in png_do_expand_palette_rgb8_neon()
113 png_uint_32 i; in png_do_expand_palette_rgb8_neon()
/external/libpng/contrib/examples/
Dpngpixel.c34 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()
/external/pdfium/core/fxcodec/png/
Dpng_decoder.cpp56 png_uint_32 res_x, res_y; in _png_load_bmp_attribute()
70 png_uint_32 icc_proflen; in _png_load_bmp_attribute()
89 png_uint_32 width = 0; in _png_get_header_func()
90 png_uint_32 height = 0; in _png_get_header_func()
155 png_uint_32 row_num, in _png_get_row_func()

123