Lines Matching refs:divs
424 /** Randomly divides subset into count divs. */
425 static void init_random_divs(int divs[], int count, int subsetStart, int subsetStop,
427 // Rules for lattice divs: Must be strictly increasing and in the range
429 // Not terribly efficient alg for generating random divs:
431 // 2) Randomly assign the remaining pixels of the subset to divs.
434 // 1) Initially each divs[i] represents the number of pixels between
436 // must be one pixel spacing between subsequent divs.
437 divs[0] = 0;
439 divs[i] = 1;
444 // +1 because count divs means count+1 intervals.
448 divs[entry]++;
451 // 3) Now convert the counts between divs to pixel indices, incorporating the subset's offset.
454 divs[i] += offset;
455 offset = divs[i];