Home | History | Annotate | Download | only in libhwcomposer

Lines Matching refs:t_roi

2247    struct hwc_rect t_roi = roi;
2257 if((t_roi.right - t_roi.left) < MIN_WIDTH) {
2258 if((t_roi.left + MIN_WIDTH) > boundary.right)
2259 t_roi.left = t_roi.right - MIN_WIDTH;
2261 t_roi.right = t_roi.left + MIN_WIDTH;
2265 if((t_roi.bottom - t_roi.top) < MIN_HEIGHT) {
2266 if((t_roi.top + MIN_HEIGHT) > boundary.bottom)
2267 t_roi.top = t_roi.bottom - MIN_HEIGHT;
2269 t_roi.bottom = t_roi.top + MIN_HEIGHT;
2274 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2277 int width = t_roi.right - t_roi.left;
2279 t_roi.right = t_roi.left + width;
2281 if(t_roi.right > boundary.right) {
2282 t_roi.right = boundary.right;
2283 t_roi.left = t_roi.right - width;
2286 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2293 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN);
2296 int height = t_roi.bottom - t_roi.top;
2298 t_roi.bottom = t_roi.top + height;
2300 if(t_roi.bottom > boundary.bottom) {
2301 t_roi.bottom = boundary.bottom;
2302 t_roi.top = t_roi.bottom - height;
2305 t_roi.top = t_roi.top - (t_roi.top % TOP_ALIGN);
2310 return t_roi;