Lines Matching defs:numpoints
154 int numpoints[2] = {0,0};
169 numpoints[idx]++;
174 vect_division(centroid[0], newcentroid[0], numpoints[0], dim);
175 vect_division(centroid[1], newcentroid[1], numpoints[1], dim);
349 static void do_elbg(ELBGContext *av_restrict elbg, int *points, int numpoints,
371 for (i=0; i < numpoints; i++) {
399 for (i=0; i < numpoints; i++) {
418 * If numpoints <= 24 * num_cb this function fills codebook with random numbers.
423 int numpoints, int max_steps)
427 if (numpoints > 24LL * elbg->num_cb) {
430 for (int i = 0; i < numpoints / 8; i++) {
431 int k = (i*BIG_PRIME) % numpoints;
437 init_elbg(elbg, temp_points, temp_points + numpoints / 8 * dim,
438 numpoints / 8, 2 * max_steps);
439 do_elbg(elbg, temp_points, numpoints / 8, 2 * max_steps);
442 memcpy(elbg->codebook + i * dim, points + ((i*BIG_PRIME)%numpoints)*dim,
446 int avpriv_elbg_do(ELBGContext **elbgp, int *points, int dim, int numpoints,
481 ALLOCATE_IF_NECESSARY(cell_buffer, numpoints, 1)
483 if (numpoints > 24LL * elbg->num_cb) {
485 * (numpoints / 8) * dim elements; the next step needs numpoints / 8 / 8
487 * numpoints / 8 * 8 / 7 * dim elements. */
488 uint64_t prod = dim * (uint64_t)(numpoints / 7U);
494 init_elbg(elbg, points, elbg->temp_points, numpoints, max_steps);
495 do_elbg (elbg, points, numpoints, max_steps);