Home
last modified time | relevance | path

Searched refs:BROTLI_MIN (Results 1 – 16 of 16) sorted by relevance

/external/brotli/c/enc/
Dbackward_references_inc.h42 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in EXPORT_FN()
43 size_t dictionary_start = BROTLI_MIN(size_t, in EXPORT_FN()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
65 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in EXPORT_FN()
66 dictionary_start = BROTLI_MIN(size_t, in EXPORT_FN()
88 dictionary_start = BROTLI_MIN(size_t, in EXPORT_FN()
113 size_t range_end = BROTLI_MIN(size_t, position + sr.len, store_end); in EXPORT_FN()
115 range_start = BROTLI_MIN(size_t, range_end, BROTLI_MAX(size_t, in EXPORT_FN()
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in EXPORT_FN()
151 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in EXPORT_FN()
Dquality.h60 params->quality = BROTLI_MIN(int, BROTLI_MAX_QUALITY, in SanitizeParams()
85 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock()
88 lgblock = BROTLI_MIN(int, BROTLI_MAX_INPUT_BLOCK_BITS, in ComputeLgBlock()
106 BROTLI_MIN(int, ComputeRbBits(params), BROTLI_MAX_INPUT_BLOCK_BITS); in MaxMetablockSize()
Dliteral_cost.c25 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()
Dbackward_references_hq.c180 min_cost_cmd = BROTLI_MIN(float, min_cost_cmd, cost_cmd[i]); in ZopfliCostModelSetFromCommands()
277 return BROTLI_MIN(size_t, self->idx_, 8); in StartPosQueueSize()
412 const size_t max_distance = BROTLI_MIN(size_t, cur_ix, max_backward_limit); in UpdateNodes()
413 const size_t dictionary_start = BROTLI_MIN(size_t, in UpdateNodes()
594 size_t dictionary_start = BROTLI_MIN(size_t, in BrotliZopfliCreateCommands()
682 const size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliZopfliComputeShortestPath()
683 const size_t dictionary_start = BROTLI_MIN(size_t, in BrotliZopfliComputeShortestPath()
706 ringbuffer, ringbuffer_mask, pos + 1, BROTLI_MIN( in BrotliZopfliComputeShortestPath()
768 size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliCreateHqZopfliBackwardReferences()
769 size_t dictionary_start = BROTLI_MIN(size_t, in BrotliCreateHqZopfliBackwardReferences()
[all …]
Dhash_to_binary_tree_inc.h120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in FN()
154 const size_t cur_len = BROTLI_MIN(size_t, best_len_left, best_len_right); in FN()
250 size_t maxlen = BROTLI_MIN( in FN()
307 const size_t i_end = BROTLI_MIN(size_t, position, i_start + num_bytes); in FN()
Dringbuffer.h100 BROTLI_MIN(size_t, n, rb->tail_size_ - masked_pos)); in RingBufferWriteTail()
144 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
Dcompress_fragment.c90 const uint32_t adjust = 2 * BROTLI_MIN(uint32_t, histogram[i], 11u); in BuildAndStoreLiteralPrefixCode()
106 const uint32_t adjust = 1 + 2 * BROTLI_MIN(uint32_t, histogram[i], 11u); in BuildAndStoreLiteralPrefixCode()
350 size_t n_changed_bits = BROTLI_MIN(size_t, n_bits, 8 - n_unchanged_bits); in UpdateBits()
448 size_t block_size = BROTLI_MIN(size_t, input_size, kFirstBlockSize); in BrotliCompressFragmentFastImpl()
499 const size_t len_limit = BROTLI_MIN(size_t, block_size - kMinMatchLen, in BrotliCompressFragmentFastImpl()
664 block_size = BROTLI_MIN(size_t, input_size, kMergeBlockSize); in BrotliCompressFragmentFastImpl()
705 block_size = BROTLI_MIN(size_t, input_size, kFirstBlockSize); in BrotliCompressFragmentFastImpl()
Dencode.c725 s->params.stream_offset = BROTLI_MIN(size_t, in EnsureInitialized()
1219 const size_t hasher_eff_size = BROTLI_MIN(size_t, in BrotliCompressBufferQuality10()
1224 const int lgmetablock = BROTLI_MIN(int, 24, lgwin + 1); in BrotliCompressBufferQuality10()
1257 BROTLI_MIN(size_t, input_size, metablock_start + max_metablock_size); in BrotliCompressBufferQuality10()
1277 BROTLI_MIN(size_t, metablock_end - block_start, max_block_size); in BrotliCompressBufferQuality10()
1492 const int lg_win = BROTLI_MIN(int, BROTLI_LARGE_MAX_WINDOW_BITS, in BrotliEncoderCompress()
1575 BROTLI_MIN(size_t, s->available_out_, *available_out); in InjectFlushOrPushOutput()
1602 const size_t buf_size = BROTLI_MIN(size_t, kCompressFragmentTwoPassBlockSize, in BrotliEncoderCompressStreamFast()
1603 BROTLI_MIN(size_t, *available_in, block_size_limit)); in BrotliEncoderCompressStreamFast()
1650 size_t block_size = BROTLI_MIN(size_t, block_size_limit, *available_in); in BrotliEncoderCompressStreamFast()
[all …]
Dblock_splitter_inc.h206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN()
245 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH); in FN()
282 BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters); in FN()
Dstatic_dict.c29 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch()
39 BROTLI_MIN(size_t, len, maxlen)); in DictMatchLength()
117 maxlen = BROTLI_MIN(size_t, matchlen, l - 2); in BrotliFindAllStaticDictionaryMatches()
Dcluster_inc.h279 BROTLI_MIN(size_t, in_size - i, max_input_histograms);
297 size_t max_num_pairs = BROTLI_MIN(size_t,
Dmetablock_inc.h53 BROTLI_MIN(size_t, max_num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES + 1); in FN()
Dcompress_fragment_two_pass.c260 const size_t len_limit = BROTLI_MIN(size_t, block_size - min_match, in CreateCommands()
569 BROTLI_MIN(size_t, input_size, kCompressFragmentTwoPassBlockSize); in BrotliCompressFragmentTwoPassImpl()
Dmetablock.c360 BROTLI_MIN(size_t, max_num_blocks, self->max_block_types_ + 1); in InitContextBlockSplitter()
Dbrotli_bit_stream.c644 max_prefix = BROTLI_MIN(uint32_t, max_prefix, *max_run_length_prefix); in RunLengthCodeZeros()
/external/brotli/c/common/
Dplatform.h519 #define BROTLI_MIN(T, A, B) (brotli_min_ ## T((A), (B))) macro