Searched refs:divs (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp93 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { argument
95 divs[i] = int32_t(divs[i] * scale + 0.5f);
96 if (i > 0 && divs[i] == divs[i - 1]) {
97 divs[i]++; // avoid collisions
101 if (CC_UNLIKELY(divs[count - 1] > maxValue)) {
102 // if the collision avoidance above put some divs outside the bounds of the bitmap,
103 // slide outer stretchable divs inward to stay within bounds
106 divs[
[all...]

Completed in 59 milliseconds