Lines Matching refs:num_histograms
14 size_t num_histograms, in FN()
17 size_t block_length = length / num_histograms; in FN()
19 FN(ClearHistograms)(histograms, num_histograms); in FN()
20 for (i = 0; i < num_histograms; ++i) { in FN()
21 size_t pos = length * i / num_histograms; in FN()
48 size_t num_histograms, in FN()
54 iters = ((iters + num_histograms - 1) / num_histograms) * num_histograms; in FN()
59 FN(HistogramAddHistogram)(&histograms[iter % num_histograms], &sample); in FN()
68 const size_t num_histograms, in FN()
75 const size_t bitmaplen = (num_histograms + 7) >> 3; in FN()
79 BROTLI_DCHECK(num_histograms <= 256); in FN()
80 if (num_histograms <= 1) { in FN()
86 memset(insert_cost, 0, sizeof(insert_cost[0]) * data_size * num_histograms); in FN()
87 for (i = 0; i < num_histograms; ++i) { in FN()
92 for (j = 0; j < num_histograms; ++j) { in FN()
93 insert_cost[i * num_histograms + j] = in FN()
97 memset(cost, 0, sizeof(cost[0]) * num_histograms); in FN()
108 size_t insert_cost_ix = data[byte_ix] * num_histograms; in FN()
112 for (k = 0; k < num_histograms; ++k) { in FN()
124 for (k = 0; k < num_histograms; ++k) { in FN()
156 uint16_t* new_id, const size_t num_histograms) { in FN()
160 for (i = 0; i < num_histograms; ++i) { in FN()
164 BROTLI_DCHECK(block_ids[i] < num_histograms); in FN()
171 BROTLI_DCHECK(block_ids[i] < num_histograms); in FN()
173 BROTLI_DCHECK(next_id <= num_histograms); in FN()
179 const size_t num_histograms, in FN()
182 FN(ClearHistograms)(histograms, num_histograms); in FN()
373 size_t num_histograms = length / literals_per_histogram + 1; in FN() local
375 if (num_histograms > max_histograms) { in FN()
376 num_histograms = max_histograms; in FN()
393 histograms = BROTLI_ALLOC(m, HistogramType, num_histograms); in FN()
398 num_histograms, histograms); in FN()
401 num_histograms, histograms); in FN()
406 const size_t bitmaplen = (num_histograms + 7) >> 3; in FN()
407 double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); in FN()
408 double* cost = BROTLI_ALLOC(m, double, num_histograms); in FN()
410 uint16_t* new_id = BROTLI_ALLOC(m, uint16_t, num_histograms); in FN()
421 num_histograms, histograms, in FN()
424 num_histograms = FN(RemapBlockIds)(block_ids, length, in FN()
425 new_id, num_histograms); in FN()
427 num_histograms, histograms); in FN()