Lines Matching refs:int32_t

98   const int32_t length = image_line->GetLength();  in FillRanges()
101 for (int32_t idx = 1; idx < length - 1; idx++) { in FillRanges()
136 explicit HorizontalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in HorizontalImageLine()
137 int32_t length) in HorizontalImageLine()
140 inline int32_t GetLength() const { return length_; } in GetLength()
142 inline uint32_t GetColor(int32_t idx) const { in GetColor()
148 int32_t xoffset_, yoffset_, length_;
159 explicit VerticalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in VerticalImageLine()
160 int32_t length) in VerticalImageLine()
163 inline int32_t GetLength() const { return length_; } in GetLength()
165 inline uint32_t GetColor(int32_t idx) const { in GetColor()
171 int32_t xoffset_, yoffset_, length_;
178 explicit DiagonalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in DiagonalImageLine()
179 int32_t xstep, int32_t ystep, int32_t length) in DiagonalImageLine()
187 inline int32_t GetLength() const { return length_; } in GetLength()
189 inline uint32_t GetColor(int32_t idx) const { in GetColor()
196 int32_t xoffset_, yoffset_, xstep_, ystep_, length_;
221 const std::vector<Range>& stretch_regions, const int32_t length, in PopulateBounds()
222 int32_t* padding_start, int32_t* padding_end, int32_t* layout_start, in PopulateBounds()
223 int32_t* layout_end, StringPiece edge_name, std::string* out_err) { in PopulateBounds()
283 static int32_t CalculateSegmentCount(const std::vector<Range>& stretch_regions, in CalculateSegmentCount()
284 int32_t length) { in CalculateSegmentCount()
291 int32_t modifier = 0; in CalculateSegmentCount()
297 return static_cast<int32_t>(stretch_regions.size()) * 2 + modifier; in CalculateSegmentCount()
304 for (int32_t y = region.top; y < region.bottom; y++) { in GetRegionColor()
306 for (int32_t x = region.left; x < region.right; x++) { in GetRegionColor()
341 const std::vector<Range>& vertical_stretch_regions, const int32_t width, in CalculateRegionColors()
342 const int32_t height, std::vector<uint32_t>* out_colors) { in CalculateRegionColors()
343 int32_t next_top = 0; in CalculateRegionColors()
370 int32_t next_left = 0; in CalculateRegionColors()
404 static void FindOutlineInsets(const ImageLine* image_line, int32_t* out_start, in FindOutlineInsets()
405 int32_t* out_end) { in FindOutlineInsets()
409 const int32_t length = image_line->GetLength(); in FindOutlineInsets()
417 const int32_t mid2 = length / 2; in FindOutlineInsets()
418 const int32_t mid1 = mid2 + (length % 2); in FindOutlineInsets()
421 for (int32_t i = 0; i < mid1 && max_alpha != 0xff; i++) { in FindOutlineInsets()
430 for (int32_t i = length - 1; i >= mid2 && max_alpha != 0xff; i--) { in FindOutlineInsets()
442 const int32_t length = image_line->GetLength(); in FindMaxAlpha()
444 for (int32_t idx = 0; idx < length && max_alpha != 0xff; idx++) { in FindMaxAlpha()
459 const int32_t width, in Create()
460 const int32_t height, in Create()
547 const int32_t num_rows = in Create()
549 const int32_t num_cols = in Create()
573 const int32_t outline_width = in Create()
575 const int32_t outline_height = in Create()
593 int32_t top_left, bottom_right; in Create()
618 data, (const int32_t*)horizontal_stretch_regions.data(), in SerializeBase()
619 (const int32_t*)vertical_stretch_regions.data(), region_colors.data(), in SerializeBase()