Lines Matching refs:t_roi

2250    struct hwc_rect t_roi = roi;  in getSanitizeROI()  local
2260 if((t_roi.right - t_roi.left) < MIN_WIDTH) { in getSanitizeROI()
2261 if((t_roi.left + MIN_WIDTH) > boundary.right) in getSanitizeROI()
2262 t_roi.left = t_roi.right - MIN_WIDTH; in getSanitizeROI()
2264 t_roi.right = t_roi.left + MIN_WIDTH; in getSanitizeROI()
2268 if((t_roi.bottom - t_roi.top) < MIN_HEIGHT) { in getSanitizeROI()
2269 if((t_roi.top + MIN_HEIGHT) > boundary.bottom) in getSanitizeROI()
2270 t_roi.top = t_roi.bottom - MIN_HEIGHT; in getSanitizeROI()
2272 t_roi.bottom = t_roi.top + MIN_HEIGHT; in getSanitizeROI()
2277 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN); in getSanitizeROI()
2280 int width = t_roi.right - t_roi.left; in getSanitizeROI()
2282 t_roi.right = t_roi.left + width; in getSanitizeROI()
2284 if(t_roi.right > boundary.right) { in getSanitizeROI()
2285 t_roi.right = boundary.right; in getSanitizeROI()
2286 t_roi.left = t_roi.right - width; in getSanitizeROI()
2289 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN); in getSanitizeROI()
2296 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN); in getSanitizeROI()
2299 int height = t_roi.bottom - t_roi.top; in getSanitizeROI()
2301 t_roi.bottom = t_roi.top + height; in getSanitizeROI()
2303 if(t_roi.bottom > boundary.bottom) { in getSanitizeROI()
2304 t_roi.bottom = boundary.bottom; in getSanitizeROI()
2305 t_roi.top = t_roi.bottom - height; in getSanitizeROI()
2308 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN); in getSanitizeROI()
2313 return t_roi; in getSanitizeROI()