Lines Matching full:box
9 u_box_1d(unsigned x, unsigned w, struct pipe_box *box) in u_box_1d() argument
11 box->x = x; in u_box_1d()
12 box->y = 0; in u_box_1d()
13 box->z = 0; in u_box_1d()
14 box->width = w; in u_box_1d()
15 box->height = 1; in u_box_1d()
16 box->depth = 1; in u_box_1d()
20 u_box_2d(unsigned x,unsigned y, unsigned w, unsigned h, struct pipe_box *box) in u_box_2d() argument
22 box->x = x; in u_box_2d()
23 box->y = y; in u_box_2d()
24 box->z = 0; in u_box_2d()
25 box->width = w; in u_box_2d()
26 box->height = h; in u_box_2d()
27 box->depth = 1; in u_box_2d()
31 u_box_origin_2d(unsigned w, unsigned h, struct pipe_box *box) in u_box_origin_2d() argument
33 box->x = 0; in u_box_origin_2d()
34 box->y = 0; in u_box_origin_2d()
35 box->z = 0; in u_box_origin_2d()
36 box->width = w; in u_box_origin_2d()
37 box->height = h; in u_box_origin_2d()
38 box->depth = 1; in u_box_origin_2d()
43 unsigned w, unsigned h, struct pipe_box *box) in u_box_2d_zslice() argument
45 box->x = x; in u_box_2d_zslice()
46 box->y = y; in u_box_2d_zslice()
47 box->z = z; in u_box_2d_zslice()
48 box->width = w; in u_box_2d_zslice()
49 box->height = h; in u_box_2d_zslice()
50 box->depth = 1; in u_box_2d_zslice()
56 struct pipe_box *box) in u_box_3d() argument
58 box->x = x; in u_box_3d()
59 box->y = y; in u_box_3d()
60 box->z = z; in u_box_3d()
61 box->width = w; in u_box_3d()
62 box->height = h; in u_box_3d()
63 box->depth = d; in u_box_3d()
67 * Returns -1 if the resulting box would be empty (then @dst is left unchanged).
76 const struct pipe_box *box, int w, int h) in u_box_clip_2d() argument
83 if (!box->width || !box->height) in u_box_clip_2d()
87 a[0] = box->x; in u_box_clip_2d()
88 a[1] = box->y; in u_box_clip_2d()
89 b[0] = box->x + box->width; in u_box_clip_2d()
90 b[1] = box->y + box->height; in u_box_clip_2d()
118 u_box_volume_3d(const struct pipe_box *box) in u_box_volume_3d() argument
120 return (int64_t)box->width * box->height * box->depth; in u_box_volume_3d()
283 /* Converts a box specified in pixels to an equivalent box specified