Lines Matching refs:mz_uint

256mz_uint comp_flags = TDEFL_COMPUTE_ADLER32 | tdefl_create_comp_flags_from_zip_params(level, window…  in mz_deflateInit2()
314 pStream->next_in += (mz_uint)in_bytes; pStream->avail_in -= (mz_uint)in_bytes; in mz_deflate()
315 …pStream->total_in += (mz_uint)in_bytes; pStream->adler = tdefl_get_adler32((tdefl_compressor*)pStr… in mz_deflate()
317 pStream->next_out += (mz_uint)out_bytes; pStream->avail_out -= (mz_uint)out_bytes; in mz_deflate()
318 pStream->total_out += (mz_uint)out_bytes; in mz_deflate()
401 mz_uint m_dict_ofs, m_dict_avail, m_first_call, m_has_flushed; int m_window_bits;
445 mz_uint n, first_call, decomp_flags = TINFL_FLAG_COMPUTE_ADLER32; in mz_inflate()
470 …pStream->next_in += (mz_uint)in_bytes; pStream->avail_in -= (mz_uint)in_bytes; pStream->total_in +… in mz_inflate()
472 …pStream->next_out += (mz_uint)out_bytes; pStream->avail_out -= (mz_uint)out_bytes; pStream->total_… in mz_inflate()
503 pStream->next_in += (mz_uint)in_bytes; pStream->avail_in -= (mz_uint)in_bytes; in mz_inflate()
504 pStream->total_in += (mz_uint)in_bytes; pStream->adler = tinfl_get_adler32(&pState->m_decomp); in mz_inflate()
506 pState->m_dict_avail = (mz_uint)out_bytes; in mz_inflate()
589 mz_uint i; in mz_error()
625 …, n) do { mz_uint c; TINFL_GET_BYTE(state_index, c); bit_buf |= (((tinfl_bit_buf_t)c) << num_bits)…
626 #define TINFL_SKIP_BITS(state_index, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_i…
627 #define TINFL_GET_BITS(state_index, b, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state…
653 int temp; mz_uint code_len, c; \
703 …if ((counter = (r->m_raw_header[0] | (r->m_raw_header[1] << 8))) != (mz_uint)(0xFFFF ^ (r->m_raw_h… in tinfl_decompress()
726 …L_MEMCPY(pOut_buf_cur, pIn_buf_cur, n); pIn_buf_cur += n; pOut_buf_cur += n; counter -= (mz_uint)n; in tinfl_decompress()
737 mz_uint8 *p = r->m_tables[0].m_code_size; mz_uint i; in tinfl_decompress()
744 …ode_size); for (counter = 0; counter < r->m_table_sizes[2]; counter++) { mz_uint s; TINFL_GET_BITS… in tinfl_decompress()
750mz_uint i, j, used_syms, total, sym_index, next_code[17], total_syms[16]; pTable = &r->m_tables[r-… in tinfl_decompress()
760mz_uint rev_code = 0, l, cur_code, code_size = pTable->m_code_size[sym_index]; if (!code_size) con… in tinfl_decompress()
776mz_uint s; TINFL_HUFF_DECODE(16, dist, &r->m_tables[2]); if (dist < 16) { r->m_len_codes[counter++… in tinfl_decompress()
806 int sym2; mz_uint code_len; in tinfl_decompress()
847 …if (num_extra) { mz_uint extra_bits; TINFL_GET_BITS(25, extra_bits, num_extra); counter += extra_b… in tinfl_decompress()
851 …if (num_extra) { mz_uint extra_bits; TINFL_GET_BITS(27, extra_bits, num_extra); dist += extra_bits… in tinfl_decompress()
912 …TINFL_SKIP_BITS(32, num_bits & 7); for (counter = 0; counter < 4; ++counter) { mz_uint s; if (num_… in tinfl_decompress()
1058 static tdefl_sym_freq* tdefl_radix_sort_syms(mz_uint num_syms, tdefl_sym_freq* pSyms0, tdefl_sym_fr… in tdefl_radix_sort_syms()
1061 …for (i = 0; i < num_syms; i++) { mz_uint freq = pSyms0[i].m_key; hist[freq & 0xFF]++; hist[256 + (… in tdefl_radix_sort_syms()
1066 mz_uint offsets[256], cur_ofs = 0; in tdefl_radix_sort_syms()
1112 …int i, j, l, num_codes[1 + TDEFL_MAX_SUPPORTED_HUFF_CODESIZE]; mz_uint next_code[TDEFL_MAX_SUPPORT… in tdefl_optimize_huffman_table()
1139mz_uint rev_code = 0, code, code_size; if ((code_size = d->m_huff_code_sizes[table_num][i]) == 0) … in tdefl_optimize_huffman_table()
1146 mz_uint bits = b; mz_uint len = l; MZ_ASSERT(bits <= ((1U << len) - 1U)); \
1177 …int num_lit_codes, num_dist_codes, num_bit_lengths; mz_uint i, total_code_sizes_to_pack, num_packe… in tdefl_start_dynamic_block()
1231mz_uint code = packed_code_sizes[packed_code_sizes_index++]; MZ_ASSERT(code < TDEFL_MAX_HUFF_SYMBO… in tdefl_start_dynamic_block()
1239 mz_uint i; in tdefl_start_static_block()
1255 static const mz_uint mz_bitmasks[17] = { 0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x…
1260 mz_uint flags; in tdefl_compress_lz_codes()
1265 mz_uint bits_in = d->m_bits_in; in tdefl_compress_lz_codes()
1277 mz_uint s0, s1, n0, n1, sym, num_extra_bits; in tdefl_compress_lz_codes()
1278mz_uint match_len = pLZ_codes[0], match_dist = *(const mz_uint16 *)(pLZ_codes + 1); pLZ_codes += 3; in tdefl_compress_lz_codes()
1298 mz_uint lit = *pLZ_codes++; in tdefl_compress_lz_codes()
1337 TDEFL_PUT_BITS((mz_uint)bit_buffer & mz_bitmasks[n], n); in tdefl_compress_lz_codes()
1349 mz_uint flags; in tdefl_compress_lz_codes()
1359 mz_uint sym, num_extra_bits; in tdefl_compress_lz_codes()
1360mz_uint match_len = pLZ_codes[0], match_dist = (pLZ_codes[1] | (pLZ_codes[2] << 8)); pLZ_codes += … in tdefl_compress_lz_codes()
1380 mz_uint lit = *pLZ_codes++; in tdefl_compress_lz_codes()
1403 mz_uint saved_bit_buf, saved_bits_in; in tdefl_flush_block()
1435mz_uint i; d->m_pOutput_buf = pSaved_output_buf; d->m_bit_buffer = saved_bit_buf, d->m_bits_in = s… in tdefl_flush_block()
1459 …if (d->m_flags & TDEFL_WRITE_ZLIB_HEADER) { mz_uint i, a = d->m_adler32; for (i = 0; i < 4; i++) {… in tdefl_flush_block()
1463mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); }… in tdefl_flush_block()
1504 …nd_match(tdefl_compressor *d, mz_uint lookahead_pos, mz_uint max_dist, mz_uint max_match_len, mz_u… in tdefl_find_match()
1506mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = … in tdefl_find_match()
1507 mz_uint num_probes_left = d->m_max_probes[match_len >= 32]; in tdefl_find_match()
1530 …else if ((probe_len = ((mz_uint)(p - s) * 2) + (mz_uint)(*(const mz_uint8*)p == *(const mz_uint8*)… in tdefl_find_match()
1538 …nd_match(tdefl_compressor *d, mz_uint lookahead_pos, mz_uint max_dist, mz_uint max_match_len, mz_u… in tdefl_find_match()
1540mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = … in tdefl_find_match()
1541 mz_uint num_probes_left = d->m_max_probes[match_len >= 32]; in tdefl_find_match()
1571mz_uint lookahead_pos = d->m_lookahead_pos, lookahead_size = d->m_lookahead_size, dict_size = d->m… in tdefl_compress_fast()
1573 mz_uint cur_pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK; in tdefl_compress_fast()
1577 const mz_uint TDEFL_COMP_FAST_LOOKAHEAD_SIZE = 4096; in tdefl_compress_fast()
1578 mz_uint dst_pos = (lookahead_pos + lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK; in tdefl_compress_fast()
1579mz_uint num_bytes_to_process = (mz_uint)MZ_MIN(d->m_src_buf_left, TDEFL_COMP_FAST_LOOKAHEAD_SIZE -… in tdefl_compress_fast()
1599 mz_uint cur_match_dist, cur_match_len = 1; in tdefl_compress_fast()
1601 mz_uint first_trigram = (*(const mz_uint32 *)pCur_dict) & 0xFFFFFF; in tdefl_compress_fast()
1602mz_uint hash = (first_trigram ^ (first_trigram >> (24 - (TDEFL_LZ_HASH_BITS - 8)))) & TDEFL_LEVEL1… in tdefl_compress_fast()
1603 mz_uint probe_pos = d->m_hash[hash]; in tdefl_compress_fast()
1613 …cur_match_len = ((mz_uint)(p - (const mz_uint16 *)pCur_dict) * 2) + (mz_uint)(*(const mz_uint8 *)p… in tdefl_compress_fast()
1714 static MZ_FORCEINLINE void tdefl_record_match(tdefl_compressor *d, mz_uint match_len, mz_uint match… in tdefl_record_match()
1743 mz_uint len_to_move, cur_match_dist, cur_match_len, cur_pos; in tdefl_compress_normal()
1747mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK, ins_pos = … in tdefl_compress_normal()
1748mz_uint hash = (d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << TDEFL_LZ_HASH_SHIFT) ^ d->m_dict[(… in tdefl_compress_normal()
1749mz_uint num_bytes_to_process = (mz_uint)MZ_MIN(src_buf_left, TDEFL_MAX_MATCH_LEN - d->m_lookahead_… in tdefl_compress_normal()
1766 mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK; in tdefl_compress_normal()
1773 mz_uint ins_pos = d->m_lookahead_pos + (d->m_lookahead_size - 1) - 2; in tdefl_compress_normal()
1774mz_uint hash = ((d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << (TDEFL_LZ_HASH_SHIFT * 2)) ^ (d->… in tdefl_compress_normal()
1841 …( (d->m_total_lz_bytes > 31*1024) && (((((mz_uint)(d->m_pLZ_code_buf - d->m_lz_code_buf) * 115) >>… in tdefl_compress_normal()
1865 d->m_output_flush_ofs += (mz_uint)n; in tdefl_flush_output_buffer()
1866 d->m_output_flush_remaining -= (mz_uint)n; in tdefl_flush_output_buffer()
1939 …d->m_flags = (mz_uint)(flags); d->m_max_probes[0] = 1 + ((flags & 0xFFF) + 2) / 3; d->m_greedy_par… in tdefl_init()
2015 static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 };
2018 mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy) in tdefl_create_comp_flags_from_zip_params()
2020mz_uint comp_flags = s_tdefl_num_probes[(level >= 0) ? MZ_MIN(10, level) : MZ_DEFAULT_LEVEL] | ((l… in tdefl_create_comp_flags_from_zip_params()
2041 …ry_ex(const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool fl… in tdefl_write_image_to_png_file_in_memory_ex()
2044 …static const mz_uint s_tdefl_png_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 150… in tdefl_write_image_to_png_file_in_memory_ex()
2212 mz_uint m_element_size;
2235 …sure_capacity(mz_zip_archive *pZip, mz_zip_array *pArray, size_t min_new_capacity, mz_uint growing) in mz_zip_array_ensure_capacity()
2244 …zip_array_reserve(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_capacity, mz_uint growing) in mz_zip_array_reserve()
2250 …l mz_zip_array_resize(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing) in mz_zip_array_resize()
2346 …ay *pCentral_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, mz_uint r_index) in mz_zip_reader_filename_less()
2350mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS), r_len = MZ_READ_LE16(pR + MZ_ZIP_C… in mz_zip_reader_filename_less()
2409 mz_uint cdir_size, num_this_disk, cdir_disk_index; in mz_zip_reader_read_central_dir()
2423 if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, n) != (mz_uint)n) in mz_zip_reader_read_central_dir()
2460 mz_uint i, n; in mz_zip_reader_read_central_dir()
2480 mz_uint total_header_size, comp_size, decomp_size, disk_index; in mz_zip_reader_read_central_dir()
2591 mz_uint mz_zip_reader_get_num_files(mz_zip_archive *pZip) in mz_zip_reader_get_num_files()
2596 static MZ_FORCEINLINE const mz_uint8 *mz_zip_reader_get_cdh(mz_zip_archive *pZip, mz_uint file_inde… in mz_zip_reader_get_cdh()
2603 mz_bool mz_zip_reader_is_file_encrypted(mz_zip_archive *pZip, mz_uint file_index) in mz_zip_reader_is_file_encrypted()
2605 mz_uint m_bit_flag; in mz_zip_reader_is_file_encrypted()
2613 mz_bool mz_zip_reader_is_file_a_directory(mz_zip_archive *pZip, mz_uint file_index) in mz_zip_reader_is_file_a_directory()
2615 mz_uint filename_len, external_attr; in mz_zip_reader_is_file_a_directory()
2638 mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat … in mz_zip_reader_file_stat()
2640 mz_uint n; in mz_zip_reader_file_stat()
2673 mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_ui… in mz_zip_reader_get_filename()
2675 mz_uint n; in mz_zip_reader_get_filename()
2688 …LINE mz_bool mz_zip_reader_string_equal(const char *pA, const char *pB, mz_uint len, mz_uint flags) in mz_zip_reader_string_equal()
2690 mz_uint i; in mz_zip_reader_string_equal()
2699 …al_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, const char *pR, mz_uint r… in mz_zip_reader_filename_compare()
2702 mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS); in mz_zip_reader_filename_compare()
2722 const mz_uint filename_len = (mz_uint)strlen(pFilename); in mz_zip_reader_locate_file_binary_search()
2737 …ip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags) in mz_zip_reader_locate_file()
2739 mz_uint file_index; size_t name_len, comment_len; in mz_zip_reader_locate_file()
2749 mz_uint filename_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_FILENAME_LEN_OFS); in mz_zip_reader_locate_file()
2755mz_uint file_extra_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_EXTRA_LEN_OFS), file_comment_len = MZ_R… in mz_zip_reader_locate_file()
2777 …r_extract_to_mem_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, m… in mz_zip_reader_extract_to_mem_no_alloc()
2904 …z_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, void *pUse… in mz_zip_reader_extract_file_to_mem_no_alloc()
2912 …zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, m… in mz_zip_reader_extract_to_mem()
2917 …ile_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags) in mz_zip_reader_extract_file_to_mem()
2922 …d *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, size_t *pSize, mz_uint in mz_zip_reader_extract_to_heap()
2956 …der_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags) in mz_zip_reader_extract_file_to_heap()
2967 …tract_to_callback(mz_zip_archive *pZip, mz_uint file_index, mz_file_write_func pCallback, void *pO… in mz_zip_reader_extract_to_callback()
2969 int status = TINFL_STATUS_DONE; mz_uint file_crc32 = MZ_CRC32_INIT; in mz_zip_reader_extract_to_callback()
3130 …p_archive *pZip, const char *pFilename, mz_file_write_func pCallback, void *pOpaque, mz_uint flags) in mz_zip_reader_extract_file_to_callback()
3144 …zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz… in mz_zip_reader_extract_to_file()
3193 …file(mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags) in mz_zip_reader_extract_file_to_file()
3374 …chive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_and_flags) in mz_zip_writer_add_mem()
3477 static mz_uint mz_zip_writer_compute_padding_needed_for_file_alignment(mz_zip_archive *pZip) in mz_zip_writer_compute_padding_needed_for_file_alignment()
3500 …id *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, … in mz_zip_writer_add_mem_ex()
3503 mz_uint level, ext_attributes = 0, num_alignment_padding_bytes; in mz_zip_writer_add_mem_ex()
3651 …, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) in mz_zip_writer_add_file()
3653 mz_uint uncomp_crc32 = MZ_CRC32_INIT, level, num_alignment_padding_bytes; in mz_zip_writer_add_file()
3731 mz_uint n = (mz_uint)MZ_MIN(MZ_ZIP_MAX_IO_BUF_SIZE, uncomp_remaining); in mz_zip_writer_add_file()
3829 …p_writer_add_from_zip_reader(mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint file_index) in mz_zip_writer_add_from_zip_reader()
3831 mz_uint n, bit_flags, num_alignment_padding_bytes; in mz_zip_writer_add_from_zip_reader()
3879 n = (mz_uint)MZ_MIN(MZ_ZIP_MAX_IO_BUF_SIZE, comp_bytes_remaining); in mz_zip_writer_add_from_zip_reader()
4050 …void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) in mz_zip_add_mem_to_archive_file_in_place()
4095 …ve_file_to_heap(const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags) in mz_zip_extract_archive_file_to_heap()