Lines Matching refs:numpoints
140 int numpoints[2] = {0,0}; in simple_lbg() local
155 numpoints[idx]++; in simple_lbg()
160 vect_division(centroid[0], newcentroid[0], numpoints[0], dim); in simple_lbg()
161 vect_division(centroid[1], newcentroid[1], numpoints[1], dim); in simple_lbg()
337 int avpriv_init_elbg(int *points, int dim, int numpoints, int *codebook, in avpriv_init_elbg() argument
343 if (numpoints > 24*numCB) { in avpriv_init_elbg()
346 int *temp_points = av_malloc_array(dim, (numpoints/8)*sizeof(int)); in avpriv_init_elbg()
349 for (i=0; i<numpoints/8; i++) { in avpriv_init_elbg()
350 k = (i*BIG_PRIME) % numpoints; in avpriv_init_elbg()
354 ret = avpriv_init_elbg(temp_points, dim, numpoints / 8, codebook, in avpriv_init_elbg()
360 ret = avpriv_do_elbg(temp_points, dim, numpoints / 8, codebook, in avpriv_init_elbg()
366 memcpy(codebook + i*dim, points + ((i*BIG_PRIME)%numpoints)*dim, in avpriv_init_elbg()
371 int avpriv_do_elbg(int *points, int dim, int numpoints, int *codebook, in avpriv_do_elbg() argument
379 int *dist_cb = av_malloc_array(numpoints, sizeof(int)); in avpriv_do_elbg()
381 cell *list_buffer = av_malloc_array(numpoints, sizeof(cell)); in avpriv_do_elbg()
415 for (i=0; i < numpoints; i++) { in avpriv_do_elbg()
440 for (i=0; i < numpoints; i++) { in avpriv_do_elbg()