Lines Matching defs:win
93 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
96 if (win->left < 0) {
100 clips[n].c.width = -win->left;
101 clips[n].c.height = win->height;
104 if (win->left + win->width > swidth) {
106 clips[n].c.left = swidth - win->left;
108 clips[n].c.width = win->width - clips[n].c.left;
109 clips[n].c.height = win->height;
112 if (win->top < 0) {
116 clips[n].c.width = win->width;
117 clips[n].c.height = -win->top;
120 if (win->top + win->height > sheight) {
123 clips[n].c.top = sheight - win->top;
124 clips[n].c.width = win->width;
125 clips[n].c.height = win->height - clips[n].c.top;
132 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask)
138 nx = (win->left + mask) & ~mask;
139 nw = (win->width) & ~mask;
140 if (nx + nw > win->left + win->width)
142 dx = nx - win->left;
143 win->left = nx;
144 win->width = nw;
147 win->width, win->height, win->left, win->top, dx);