Home
last modified time | relevance | path

Searched refs:BROTLI_MIN (Results 1 - 25 of 32) sorted by relevance

12

/third_party/node/deps/brotli/c/enc/
H A Dbackward_references_inc.h42 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in CreateBackwardReferences()
43 size_t dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in CreateBackwardReferences()
65 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in CreateBackwardReferences()
66 dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
88 dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
113 size_t range_end = BROTLI_MIN(size_t, position + sr.len, store_end); in CreateBackwardReferences()
115 range_start = BROTLI_MIN(size_t, range_end, BROTLI_MAX(size_t, in CreateBackwardReferences()
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in CreateBackwardReferences()
151 BROTLI_MIN(size_ in CreateBackwardReferences()
[all...]
H A 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()
H A 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()
H A Dhash_to_binary_tree_inc.h120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in StoreAndFindMatches()
154 const size_t cur_len = BROTLI_MIN(size_t, best_len_left, best_len_right); in StoreAndFindMatches()
250 size_t maxlen = BROTLI_MIN( in FindAllMatches()
307 const size_t i_end = BROTLI_MIN(size_t, position, i_start + num_bytes); in StitchToPreviousBlock()
H A 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_ in BrotliCreateHqZopfliBackwardReferences()
[all...]
H A 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()
H A 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_ in BrotliEncoderCompressStreamFast()
[all...]
H A 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()
H A 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()
H A Dblock_splitter_inc.h206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH));
245 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH);
282 BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters);
H A Dcluster_inc.h279 BROTLI_MIN(size_t, in_size - i, max_input_histograms);
297 size_t max_num_pairs = BROTLI_MIN(size_t,
H A Dmetablock_inc.h53 BROTLI_MIN(size_t, max_num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES + 1); in InitBlockSplitter()
H A 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()
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dbackward_references_inc.h42 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in CreateBackwardReferences()
43 size_t dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in CreateBackwardReferences()
65 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in CreateBackwardReferences()
66 dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
88 dictionary_start = BROTLI_MIN(size_t, in CreateBackwardReferences()
113 size_t range_end = BROTLI_MIN(size_t, position + sr.len, store_end); in CreateBackwardReferences()
115 range_start = BROTLI_MIN(size_t, range_end, BROTLI_MAX(size_t, in CreateBackwardReferences()
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in CreateBackwardReferences()
151 BROTLI_MIN(size_ in CreateBackwardReferences()
[all...]
H A 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()
H A 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()
H A Dhash_to_binary_tree_inc.h120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in StoreAndFindMatches()
154 const size_t cur_len = BROTLI_MIN(size_t, best_len_left, best_len_right); in StoreAndFindMatches()
250 size_t maxlen = BROTLI_MIN( in FindAllMatches()
307 const size_t i_end = BROTLI_MIN(size_t, position, i_start + num_bytes); in StitchToPreviousBlock()
H A 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_ in BrotliCreateHqZopfliBackwardReferences()
[all...]
H A 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()
H A 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_ in BrotliEncoderCompressStreamFast()
[all...]
H A 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()
H A 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()
H A Dblock_splitter_inc.h206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH));
245 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH);
282 BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters);
H A Dcluster_inc.h279 BROTLI_MIN(size_t, in_size - i, max_input_histograms);
297 size_t max_num_pairs = BROTLI_MIN(size_t,
H A Dmetablock_inc.h53 BROTLI_MIN(size_t, max_num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES + 1); in InitBlockSplitter()

Completed in 43 milliseconds

12