Lines Matching refs:t_roi

2239    struct hwc_rect t_roi = roi;  in getSanitizeROI()  local
2249 if((t_roi.right - t_roi.left) < MIN_WIDTH) { in getSanitizeROI()
2250 if((t_roi.left + MIN_WIDTH) > boundary.right) in getSanitizeROI()
2251 t_roi.left = t_roi.right - MIN_WIDTH; in getSanitizeROI()
2253 t_roi.right = t_roi.left + MIN_WIDTH; in getSanitizeROI()
2257 if((t_roi.bottom - t_roi.top) < MIN_HEIGHT) { in getSanitizeROI()
2258 if((t_roi.top + MIN_HEIGHT) > boundary.bottom) in getSanitizeROI()
2259 t_roi.top = t_roi.bottom - MIN_HEIGHT; in getSanitizeROI()
2261 t_roi.bottom = t_roi.top + MIN_HEIGHT; in getSanitizeROI()
2266 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN); in getSanitizeROI()
2269 int width = t_roi.right - t_roi.left; in getSanitizeROI()
2271 t_roi.right = t_roi.left + width; in getSanitizeROI()
2273 if(t_roi.right > boundary.right) { in getSanitizeROI()
2274 t_roi.right = boundary.right; in getSanitizeROI()
2275 t_roi.left = t_roi.right - width; in getSanitizeROI()
2278 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN); in getSanitizeROI()
2285 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN); in getSanitizeROI()
2288 int height = t_roi.bottom - t_roi.top; in getSanitizeROI()
2290 t_roi.bottom = t_roi.top + height; in getSanitizeROI()
2292 if(t_roi.bottom > boundary.bottom) { in getSanitizeROI()
2293 t_roi.bottom = boundary.bottom; in getSanitizeROI()
2294 t_roi.top = t_roi.bottom - height; in getSanitizeROI()
2297 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN); in getSanitizeROI()
2302 return t_roi; in getSanitizeROI()