Lines Matching refs:t_roi
2231 struct hwc_rect t_roi = roi;
2241 if((t_roi.right - t_roi.left) < MIN_WIDTH) {
2242 if((t_roi.left + MIN_WIDTH) > boundary.right)
2243 t_roi.left = t_roi.right - MIN_WIDTH;
2245 t_roi.right = t_roi.left + MIN_WIDTH;
2249 if((t_roi.bottom - t_roi.top) < MIN_HEIGHT) {
2250 if((t_roi.top + MIN_HEIGHT) > boundary.bottom)
2251 t_roi.top = t_roi.bottom - MIN_HEIGHT;
2253 t_roi.bottom = t_roi.top + MIN_HEIGHT;
2258 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2261 int width = t_roi.right - t_roi.left;
2263 t_roi.right = t_roi.left + width;
2265 if(t_roi.right > boundary.right) {
2266 t_roi.right = boundary.right;
2267 t_roi.left = t_roi.right - width;
2270 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2277 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN);
2280 int height = t_roi.bottom - t_roi.top;
2282 t_roi.bottom = t_roi.top + height;
2284 if(t_roi.bottom > boundary.bottom) {
2285 t_roi.bottom = boundary.bottom;
2286 t_roi.top = t_roi.bottom - height;
2289 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN);
2294 return t_roi;