Lines Matching refs:rec
50 struct spl_rect rec; in intersect_rec() local
56 rec.x = r0->x > r1->x ? r0->x : r1->x; in intersect_rec()
57 rec.width = r0_x_end > r1_x_end ? r1_x_end - rec.x : r0_x_end - rec.x; in intersect_rec()
58 rec.y = r0->y > r1->y ? r0->y : r1->y; in intersect_rec()
59 rec.height = r0_y_end > r1_y_end ? r1_y_end - rec.y : r0_y_end - rec.y; in intersect_rec()
62 if (rec.width < 0 || rec.height < 0) in intersect_rec()
63 memset(&rec, 0, sizeof(rec)); in intersect_rec()
65 return rec; in intersect_rec()
78 static void spl_opp_adjust_rect(struct spl_rect *rec, const struct spl_opp_adjust *adjust) in spl_opp_adjust_rect() argument
80 if ((rec->x + adjust->x) >= 0) in spl_opp_adjust_rect()
81 rec->x += adjust->x; in spl_opp_adjust_rect()
83 if ((rec->y + adjust->y) >= 0) in spl_opp_adjust_rect()
84 rec->y += adjust->y; in spl_opp_adjust_rect()
86 if ((rec->width + adjust->width) >= 1) in spl_opp_adjust_rect()
87 rec->width += adjust->width; in spl_opp_adjust_rect()
89 if ((rec->height + adjust->height) >= 1) in spl_opp_adjust_rect()
90 rec->height += adjust->height; in spl_opp_adjust_rect()