Lines Matching defs:win
84 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
87 if (win->left < 0) {
91 clips[n].c.width = -win->left;
92 clips[n].c.height = win->height;
95 if (win->left + win->width > swidth) {
97 clips[n].c.left = swidth - win->left;
99 clips[n].c.width = win->width - clips[n].c.left;
100 clips[n].c.height = win->height;
103 if (win->top < 0) {
107 clips[n].c.width = win->width;
108 clips[n].c.height = -win->top;
111 if (win->top + win->height > sheight) {
114 clips[n].c.top = sheight - win->top;
115 clips[n].c.width = win->width;
116 clips[n].c.height = win->height - clips[n].c.top;
123 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask)
129 nx = (win->left + mask) & ~mask;
130 nw = (win->width) & ~mask;
131 if (nx + nw > win->left + win->width)
133 dx = nx - win->left;
134 win->left = nx;
135 win->width = nw;
137 win->width, win->height, win->left, win->top, dx);