Lines Matching defs:rect
68 rect_minify_inclusive(RECT *rect)
70 rect->left = rect->left >> 2;
71 rect->top = rect->top >> 2;
72 rect->right = DIV_ROUND_UP(rect->right, 2);
73 rect->bottom = DIV_ROUND_UP(rect->bottom, 2);
77 * 0 <= rect->left < rect->right
78 * 0 <= rect->top < rect->bottom
81 fit_rect_format_inclusive(enum pipe_format format, RECT *rect, int width, int height)
87 rect->left = rect->left - rect->left % w;
88 rect->top = rect->top - rect->top % h;
89 rect->right = (rect->right % w) == 0 ?
90 rect->right :
91 rect->right - (rect->right % w) + w;
92 rect->bottom = (rect->bottom % h) == 0 ?
93 rect->bottom :
94 rect->bottom - (rect->bottom % h) + h;
97 rect->right = MIN2(rect->right, width);
98 rect->bottom = MIN2(rect->bottom, height);