Lines Matching refs:idx
101 for (int32_t idx = 1; idx < length - 1; idx++) { in FillRanges() local
102 const uint32_t color = image_line->GetColor(idx); in FillRanges()
112 primary_ranges->back().end = idx - 1; in FillRanges()
114 secondary_ranges->back().end = idx - 1; in FillRanges()
120 primary_ranges->push_back(Range(idx - 1, length - 2)); in FillRanges()
122 secondary_ranges->push_back(Range(idx - 1, length - 2)); in FillRanges()
142 inline uint32_t GetColor(int32_t idx) const { in GetColor()
143 return NinePatch::PackRGBA(rows_[yoffset_] + (idx + xoffset_) * 4); in GetColor()
165 inline uint32_t GetColor(int32_t idx) const { in GetColor()
166 return NinePatch::PackRGBA(rows_[yoffset_ + idx] + (xoffset_ * 4)); in GetColor()
189 inline uint32_t GetColor(int32_t idx) const { in GetColor()
190 return NinePatch::PackRGBA(rows_[yoffset_ + (idx * ystep_)] + in GetColor()
191 ((idx + xoffset_) * xstep_) * 4); in GetColor()
444 for (int32_t idx = 0; idx < length && max_alpha != 0xff; idx++) { in FindMaxAlpha() local
445 uint32_t alpha = get_alpha(image_line->GetColor(idx)); in FindMaxAlpha()