Lines Matching refs:win
92 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
95 if (win->left < 0) { in btcx_screen_clips()
99 clips[n].c.width = -win->left; in btcx_screen_clips()
100 clips[n].c.height = win->height; in btcx_screen_clips()
103 if (win->left + win->width > swidth) { in btcx_screen_clips()
105 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
107 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
108 clips[n].c.height = win->height; in btcx_screen_clips()
111 if (win->top < 0) { in btcx_screen_clips()
115 clips[n].c.width = win->width; in btcx_screen_clips()
116 clips[n].c.height = -win->top; in btcx_screen_clips()
119 if (win->top + win->height > sheight) { in btcx_screen_clips()
122 clips[n].c.top = sheight - win->top; in btcx_screen_clips()
123 clips[n].c.width = win->width; in btcx_screen_clips()
124 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
131 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) in btcx_align() argument
137 nx = (win->left + mask) & ~mask; in btcx_align()
138 nw = (win->width) & ~mask; in btcx_align()
139 if (nx + nw > win->left + win->width) in btcx_align()
141 dx = nx - win->left; in btcx_align()
142 win->left = nx; in btcx_align()
143 win->width = nw; in btcx_align()
146 win->width, win->height, win->left, win->top, dx); in btcx_align()