Lines Matching refs:win
88 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
91 if (win->left < 0) { in btcx_screen_clips()
95 clips[n].c.width = -win->left; in btcx_screen_clips()
96 clips[n].c.height = win->height; in btcx_screen_clips()
99 if (win->left + win->width > swidth) { in btcx_screen_clips()
101 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
104 clips[n].c.height = win->height; in btcx_screen_clips()
107 if (win->top < 0) { in btcx_screen_clips()
111 clips[n].c.width = win->width; in btcx_screen_clips()
112 clips[n].c.height = -win->top; in btcx_screen_clips()
115 if (win->top + win->height > sheight) { in btcx_screen_clips()
118 clips[n].c.top = sheight - win->top; in btcx_screen_clips()
119 clips[n].c.width = win->width; in btcx_screen_clips()
120 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
127 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) in btcx_align() argument
133 nx = (win->left + mask) & ~mask; in btcx_align()
134 nw = (win->width) & ~mask; in btcx_align()
135 if (nx + nw > win->left + win->width) in btcx_align()
137 dx = nx - win->left; in btcx_align()
138 win->left = nx; in btcx_align()
139 win->width = nw; in btcx_align()
142 win->width, win->height, win->left, win->top, dx); in btcx_align()