Searched refs:stretch_regions (Results 1 – 1 of 1) sorted by relevance
222 const std::vector<Range>& stretch_regions, const int32_t length, in PopulateBounds() argument238 } else if (!stretch_regions.empty()) { in PopulateBounds()241 *padding_start = stretch_regions.front().start; in PopulateBounds()242 *padding_end = length - stretch_regions.back().end; in PopulateBounds()281 static int32_t CalculateSegmentCount(const std::vector<Range>& stretch_regions, int32_t length) { in CalculateSegmentCount() argument282 if (stretch_regions.size() == 0) { in CalculateSegmentCount()286 const bool start_is_fixed = stretch_regions.front().start != 0; in CalculateSegmentCount()287 const bool end_is_fixed = stretch_regions.back().end != length; in CalculateSegmentCount()294 return static_cast<int32_t>(stretch_regions.size()) * 2 + modifier; in CalculateSegmentCount()