/external/brotli/enc/ |
D | backward_references_inc.h | 38 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in FN() 55 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in FN() 59 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in FN() 78 max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in FN() 100 BROTLI_MIN(size_t, position + sr.len, store_end)); in FN() 122 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in FN() 131 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in FN()
|
D | quality.h | 78 params->quality = BROTLI_MIN(int, BROTLI_MAX_QUALITY, in SanitizeParams() 98 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock() 101 lgblock = BROTLI_MIN(int, BROTLI_MAX_INPUT_BLOCK_BITS, in ComputeLgBlock() 119 BROTLI_MIN(int, ComputeRbBits(params), BROTLI_MAX_INPUT_BLOCK_BITS); in MaxMetablockSize()
|
D | literal_cost.c | 25 return BROTLI_MIN(size_t, 1, clamp); in UTF8Position() 31 return BROTLI_MIN(size_t, 2, clamp); in UTF8Position() 63 size_t in_window = BROTLI_MIN(size_t, window_half, len); in EstimateBitCostsForLiteralsUTF8() 135 size_t in_window = BROTLI_MIN(size_t, window_half, len); in BrotliEstimateBitCostsForLiterals()
|
D | hash_to_binary_tree_inc.h | 120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in FN() 153 const size_t cur_len = BROTLI_MIN(size_t, best_len_left, best_len_right); in FN() 245 size_t maxlen = BROTLI_MIN( in FN() 300 const size_t i_end = BROTLI_MIN(size_t, position, i_start + num_bytes); in FN()
|
D | backward_references_hq.c | 158 min_cost_cmd = BROTLI_MIN(float, min_cost_cmd, cost_cmd[i]); in ZopfliCostModelSetFromCommands() 248 return BROTLI_MIN(size_t, self->idx_, 8); in StartPosQueueSize() 381 const size_t max_distance = BROTLI_MIN(size_t, cur_ix, max_backward_limit); in UpdateNodes() 548 BROTLI_MIN(size_t, block_start + pos, max_backward_limit); in BrotliZopfliCreateCommands() 641 const size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliZopfliComputeShortestPath() 659 StoreRangeH10(hasher, ringbuffer, ringbuffer_mask, pos + 1, BROTLI_MIN( in BrotliZopfliComputeShortestPath() 718 size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliCreateHqZopfliBackwardReferences() 746 BROTLI_MIN(size_t, pos + match_len, store_end)); in BrotliCreateHqZopfliBackwardReferences()
|
D | compress_fragment.c | 91 const uint32_t adjust = 2 * BROTLI_MIN(uint32_t, histogram[i], 11u); in BuildAndStoreLiteralPrefixCode() 107 const uint32_t adjust = 1 + 2 * BROTLI_MIN(uint32_t, histogram[i], 11u); in BuildAndStoreLiteralPrefixCode() 351 size_t n_changed_bits = BROTLI_MIN(size_t, n_bits, 8 - n_unchanged_bits); in UpdateBits() 449 size_t block_size = BROTLI_MIN(size_t, input_size, kFirstBlockSize); in BrotliCompressFragmentFastImpl() 500 const size_t len_limit = BROTLI_MIN(size_t, block_size - kMinMatchLen, in BrotliCompressFragmentFastImpl() 665 block_size = BROTLI_MIN(size_t, input_size, kMergeBlockSize); in BrotliCompressFragmentFastImpl() 706 block_size = BROTLI_MIN(size_t, input_size, kFirstBlockSize); in BrotliCompressFragmentFastImpl()
|
D | ringbuffer.h | 100 BROTLI_MIN(size_t, n, rb->tail_size_ - masked_pos)); in RingBufferWriteTail() 141 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
|
D | encode.c | 1130 BROTLI_MIN(size_t, input_size, max_backward_limit + BROTLI_WINDOW_GAP); in BrotliCompressBufferQuality10() 1135 const int lgmetablock = BROTLI_MIN(int, 24, lgwin + 1); in BrotliCompressBufferQuality10() 1161 BROTLI_MIN(size_t, input_size, metablock_start + max_metablock_size); in BrotliCompressBufferQuality10() 1177 BROTLI_MIN(size_t, metablock_end - block_start, max_block_size); in BrotliCompressBufferQuality10() 1392 const int lg_win = BROTLI_MIN(int, BROTLI_MAX_WINDOW_BITS, in BrotliEncoderCompress() 1471 BROTLI_MIN(size_t, s->available_out_, *available_out); in InjectFlushOrPushOutput() 1498 const size_t buf_size = BROTLI_MIN(size_t, kCompressFragmentTwoPassBlockSize, in BrotliEncoderCompressStreamFast() 1499 BROTLI_MIN(size_t, *available_in, block_size_limit)); in BrotliEncoderCompressStreamFast() 1540 size_t block_size = BROTLI_MIN(size_t, block_size_limit, *available_in); in BrotliEncoderCompressStreamFast() 1651 uint32_t copy = (uint32_t)BROTLI_MIN( in ProcessMetadata() [all …]
|
D | cluster_inc.h | 274 BROTLI_MIN(size_t, in_size - i, max_input_histograms); 292 size_t max_num_pairs = BROTLI_MIN(size_t,
|
D | static_dict.c | 33 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch() 43 BROTLI_MIN(size_t, len, maxlen)); in DictMatchLength() 120 maxlen = BROTLI_MIN(size_t, matchlen, l - 2); in BrotliFindAllStaticDictionaryMatches()
|
D | block_splitter_inc.h | 207 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN() 241 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH); in FN() 278 BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters); in FN()
|
D | port.h | 137 #define BROTLI_MIN(T, A, B) (brotli_min_ ## T((A), (B))) macro
|
D | metablock_inc.h | 53 BROTLI_MIN(size_t, max_num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES + 1); in FN()
|
D | compress_fragment_two_pass.c | 258 const size_t len_limit = BROTLI_MIN(size_t, block_size - kMinMatchLen, in CreateCommands() 537 BROTLI_MIN(size_t, input_size, kCompressFragmentTwoPassBlockSize); in BrotliCompressFragmentTwoPassImpl()
|
D | metablock.c | 221 BROTLI_MIN(size_t, max_num_blocks, self->max_block_types_ + 1); in InitContextBlockSplitter()
|
D | brotli_bit_stream.c | 658 max_prefix = BROTLI_MIN(uint32_t, max_prefix, *max_run_length_prefix); in RunLengthCodeZeros()
|