• Home
  • Raw
  • Download

Lines Matching refs:png_uint_32

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()
488 static png_uint_32 crc_table[256] =
550 static png_uint_32
551 crc_one_byte(png_uint_32 crc, int b) in crc_one_byte()
556 static png_uint_32
557 crc_init_4(png_uint_32 value) in crc_init_4()
566 png_uint_32 crc = crc_table[(~value >> 24)] ^ 0xffffff; in crc_init_4()
574 chunk_type_valid(png_uint_32 c) in chunk_type_valid()
580 png_uint_32 t; in chunk_type_valid()
617 png_uint_32 lengths[IDAT_INIT_LENGTH];
706 png_uint_32 idat_max; /* 0 to perform no re-chunking */
756 skip_chunk_type(const struct global *global, png_uint_32 type) in skip_chunk_type()
848 png_uint_32 width;
849 png_uint_32 height;
874 png_uint_32 length; /* First word (length or signature start) */
875 png_uint_32 type; /* Second word (type or signature end) */
876 png_uint_32 crc; /* Running chunk CRC (used by read_chunk) */
882 png_uint_32 read_count; /* Count of bytes read (in the chunk) */
883 png_uint_32 write_count; /* Count of bytes written (in the chunk) */
1095 type_char(png_uint_32 v) in type_char()
1111 type_name(png_uint_32 type, FILE *out) in type_name()
1126 static png_uint_32 current_type(struct file *file, int code);
1151 png_uint_32 type; in stop()
1190 type_message(struct file *file, png_uint_32 type, const char *what) in type_message()
1311 static png_uint_32
1315 png_uint_32 result = 0; in reread_4()
1362 read_4(struct file *file, png_uint_32 *pu) in read_4()
1368 png_uint_32 val = 0; in read_4()
1386 crc_read_many(struct file *file, png_uint_32 length) in crc_read_many()
1393 png_uint_32 crc = file->crc; in crc_read_many()
1485 png_uint_32 pw = PNG_PASS_COLS(file->width, pass); in calc_image_size()
1556 png_uint_32 chunk_length; /* From header (or modified below) */
1557 png_uint_32 chunk_type; /* From header */
1560 png_uint_32 write_crc; /* Output CRC (may differ from read_crc) */
1561 png_uint_32 rewrite_offset; /* Count of bytes before rewrite. */
1610 static png_uint_32
1621 png_uint_32 type = file->chunk->chunk_type; in current_type()
1660 static int zlib_check(struct file *file, png_uint_32 offset);
1669 png_uint_32 length; in process_zTXt_iCCP()
1670 png_uint_32 index = 0; in process_zTXt_iCCP()
1698 png_uint_32 length; in process_iTXt()
1699 png_uint_32 index = 0; in process_iTXt()
1762 png_uint_32 idat_index; /* Index of *next* input byte to write */
1763 png_uint_32 idat_length; /* Cache of current chunk length */
1825 static png_uint_32
1831 png_uint_32 len = idat->global->idat_max; in rechunk_length()
1866 png_uint_32 have = idat->idat_length - idat->idat_index; in rechunk_length()
2019 png_uint_32 rewrite_offset;
2032 png_uint_32 extra_bytes; /* Count of extra compressed bytes */
2196 int window_bits, png_uint_32 offset) in zlib_init()
2266 zlib_advance(struct zlib *zlib, png_uint_32 nbytes) in zlib_advance()
2284 png_uint_32 in_bytes = 0; in zlib_advance()
2291 png_uint_32 out_bytes; in zlib_advance()
2607 zlib_check(struct file *file, png_uint_32 offset) in zlib_check()
2784 process_chunk(struct file *file, png_uint_32 file_crc, png_uint_32 next_length, in process_chunk()
2785 png_uint_32 next_type) in process_chunk()
2794 png_uint_32 type = file->type; in process_chunk()
2951 static png_uint_32
2969 png_uint_32 file_crc; in sync_stream()
2991 png_uint_32 length; in sync_stream()
2992 png_uint_32 type = file->type; in sync_stream()
2993 png_uint_32 crc = crc_init_4(type); in sync_stream()
3030 png_uint_32 next_length = get32(buffer, nused); in sync_stream()
3034 png_uint_32 next_type = get32(buffer, nused+4); in sync_stream()
3096 png_uint_32 length = file->length; in read_chunk()
3097 png_uint_32 type = file->type; in read_chunk()
3119 png_uint_32 file_crc; /* CRC read from file */ in read_chunk()
3126 png_uint_32 next_length; in read_chunk()
3131 png_uint_32 next_type; in read_chunk()
3191 png_uint_32 type, length; /* For the chunk be *WRITTEN* */ in read_callback()
3267 png_uint_32 b; in read_callback()
3622 png_uint_32 height = png_get_image_height(png_ptr, info_ptr); in read_png()
3630 png_uint_32 y = height; in read_png()
3884 global.idat_max = (png_uint_32)atol(6+*argv); in main()