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.h38 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in EXPORT_FN()
55 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
59 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in EXPORT_FN()
79 max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in EXPORT_FN()
103 size_t range_end = BROTLI_MIN(size_t, position + sr.len, store_end); in EXPORT_FN()
105 range_start = BROTLI_MIN(size_t, range_end, BROTLI_MAX(size_t, in EXPORT_FN()
132 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in EXPORT_FN()
141 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()
Dhash_to_binary_tree_inc.h122 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in FN()
155 const size_t cur_len = BROTLI_MIN(size_t, best_len_left, best_len_right); in FN()
249 size_t maxlen = BROTLI_MIN( in FN()
306 const size_t i_end = BROTLI_MIN(size_t, position, i_start + num_bytes); in FN()
Dbackward_references_hq.c182 min_cost_cmd = BROTLI_MIN(float, min_cost_cmd, cost_cmd[i]); in ZopfliCostModelSetFromCommands()
279 return BROTLI_MIN(size_t, self->idx_, 8); in StartPosQueueSize()
413 const size_t max_distance = BROTLI_MIN(size_t, cur_ix, max_backward_limit); in UpdateNodes()
591 BROTLI_MIN(size_t, block_start + pos, max_backward_limit); in BrotliZopfliCreateCommands()
674 const size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliZopfliComputeShortestPath()
695 StoreRangeH10(hasher, ringbuffer, ringbuffer_mask, pos + 1, BROTLI_MIN( in BrotliZopfliComputeShortestPath()
753 size_t max_distance = BROTLI_MIN(size_t, pos, max_backward_limit); in BrotliCreateHqZopfliBackwardReferences()
781 BROTLI_MIN(size_t, pos + match_len, store_end)); in BrotliCreateHqZopfliBackwardReferences()
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.c1179 const size_t hasher_eff_size = BROTLI_MIN(size_t, in BrotliCompressBufferQuality10()
1184 const int lgmetablock = BROTLI_MIN(int, 24, lgwin + 1); in BrotliCompressBufferQuality10()
1214 BROTLI_MIN(size_t, input_size, metablock_start + max_metablock_size); in BrotliCompressBufferQuality10()
1233 BROTLI_MIN(size_t, metablock_end - block_start, max_block_size); in BrotliCompressBufferQuality10()
1452 const int lg_win = BROTLI_MIN(int, BROTLI_LARGE_MAX_WINDOW_BITS, in BrotliEncoderCompress()
1535 BROTLI_MIN(size_t, s->available_out_, *available_out); in InjectFlushOrPushOutput()
1562 const size_t buf_size = BROTLI_MIN(size_t, kCompressFragmentTwoPassBlockSize, in BrotliEncoderCompressStreamFast()
1563 BROTLI_MIN(size_t, *available_in, block_size_limit)); in BrotliEncoderCompressStreamFast()
1604 size_t block_size = BROTLI_MIN(size_t, block_size_limit, *available_in); in BrotliEncoderCompressStreamFast()
1716 uint32_t copy = (uint32_t)BROTLI_MIN( in ProcessMetadata()
[all …]
Dringbuffer.h100 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()
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()
Dblock_splitter_inc.h206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN()
240 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH); in FN()
277 BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters); in FN()
Dcluster_inc.h276 BROTLI_MIN(size_t, in_size - i, max_input_histograms);
294 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.c364 BROTLI_MIN(size_t, max_num_blocks, self->max_block_types_ + 1); in InitContextBlockSplitter()
Dbrotli_bit_stream.c659 max_prefix = BROTLI_MIN(uint32_t, max_prefix, *max_run_length_prefix); in RunLengthCodeZeros()
/external/brotli/c/common/
Dplatform.h517 #define BROTLI_MIN(T, A, B) (brotli_min_ ## T((A), (B))) in BROTLI_MIN_MAX() macro