Lines Matching refs:num_blocks
76 size_t num_blocks = 1; in FN() local
146 ++num_blocks; in FN()
152 return num_blocks; in FN()
190 const size_t num_blocks, in FN()
193 uint32_t* histogram_symbols = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN()
194 uint32_t* block_lengths = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN()
196 (num_blocks + HISTOGRAMS_PER_BATCH - 1) / HISTOGRAMS_PER_BATCH; in FN()
206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN()
224 memset(block_lengths, 0, num_blocks * sizeof(uint32_t)); in FN()
229 BROTLI_DCHECK(block_idx < num_blocks); in FN()
235 BROTLI_DCHECK(block_idx == num_blocks); in FN()
238 for (i = 0; i < num_blocks; i += HISTOGRAMS_PER_BATCH) { in FN()
240 BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH); in FN()
291 num_clusters, num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES, in FN()
302 for (i = 0; i < num_blocks; ++i) { in FN()
331 m, uint8_t, split->types, split->types_alloc_size, num_blocks); in FN()
333 m, uint32_t, split->lengths, split->lengths_alloc_size, num_blocks); in FN()
339 for (i = 0; i < num_blocks; ++i) { in FN()
341 if (i + 1 == num_blocks || in FN()
351 split->num_blocks = block_idx; in FN()
378 split->types, split->types_alloc_size, split->num_blocks + 1); in FN()
380 split->lengths, split->lengths_alloc_size, split->num_blocks + 1); in FN()
383 split->types[split->num_blocks] = 0; in FN()
384 split->lengths[split->num_blocks] = (uint32_t)length; in FN()
385 split->num_blocks++; in FN()
400 size_t num_blocks = 0; in FN() local
410 num_blocks = FN(FindBlocks)(data, length, in FN()
425 FN(ClusterBlocks)(m, data, length, num_blocks, block_ids, split); in FN()