Lines Matching refs:clips

84 		  struct v4l2_clip *clips, unsigned int n)  in btcx_screen_clips()  argument
88 clips[n].c.left = 0; in btcx_screen_clips()
89 clips[n].c.top = 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()
96 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
97 clips[n].c.top = 0; 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()
104 clips[n].c.left = 0; in btcx_screen_clips()
105 clips[n].c.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()
112 clips[n].c.left = 0; 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
140 nx = (clips[i].c.left-dx) & ~mask; in btcx_align()
141 nw = (clips[i].c.width) & ~mask; in btcx_align()
142 if (nx + nw < clips[i].c.left-dx + clips[i].c.width) in btcx_align()
144 clips[i].c.left = nx; in btcx_align()
145 clips[i].c.width = nw; in btcx_align()
147 clips[i].c.width, clips[i].c.height, in btcx_align()
148 clips[i].c.left, clips[i].c.top); in btcx_align()
154 btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips) in btcx_sort_clips() argument
162 if (clips[j].c.left > clips[j+1].c.left) { in btcx_sort_clips()
163 swap(clips[j], clips[j + 1]); in btcx_sort_clips()
175 const struct v4l2_clip *clips, unsigned int nclips) in btcx_calc_skips() argument
185 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
187 if (clips[clip].c.left > (signed)width) in btcx_calc_skips()
191 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
193 if (line < clips[clip].c.top) { in btcx_calc_skips()
194 if (maxline > clips[clip].c.top-1) in btcx_calc_skips()
195 maxline = clips[clip].c.top-1; in btcx_calc_skips()
198 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
199 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
202 if (0 == skip || clips[clip].c.left > skips[skip-1].end) { in btcx_calc_skips()
204 skips[skip].start = clips[clip].c.left; in btcx_calc_skips()
207 skips[skip].end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips()
213 end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips()