Lines Matching refs:win
83 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
86 if (win->left < 0) { in btcx_screen_clips()
90 clips[n].c.width = -win->left; in btcx_screen_clips()
91 clips[n].c.height = win->height; in btcx_screen_clips()
94 if (win->left + win->width > swidth) { in btcx_screen_clips()
96 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
98 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
99 clips[n].c.height = win->height; in btcx_screen_clips()
102 if (win->top < 0) { in btcx_screen_clips()
106 clips[n].c.width = win->width; in btcx_screen_clips()
107 clips[n].c.height = -win->top; in btcx_screen_clips()
110 if (win->top + win->height > sheight) { in btcx_screen_clips()
113 clips[n].c.top = sheight - win->top; in btcx_screen_clips()
114 clips[n].c.width = win->width; in btcx_screen_clips()
115 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
122 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) in btcx_align() argument
128 nx = (win->left + mask) & ~mask; in btcx_align()
129 nw = (win->width) & ~mask; in btcx_align()
130 if (nx + nw > win->left + win->width) in btcx_align()
132 dx = nx - win->left; in btcx_align()
133 win->left = nx; in btcx_align()
134 win->width = nw; in btcx_align()
136 win->width, win->height, win->left, win->top, dx); in btcx_align()