Lines Matching refs:clips
85 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument
89 clips[n].c.left = 0; in btcx_screen_clips()
90 clips[n].c.top = 0; in btcx_screen_clips()
91 clips[n].c.width = -win->left; in btcx_screen_clips()
92 clips[n].c.height = win->height; in btcx_screen_clips()
97 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
98 clips[n].c.top = 0; in btcx_screen_clips()
99 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
100 clips[n].c.height = win->height; in btcx_screen_clips()
105 clips[n].c.left = 0; in btcx_screen_clips()
106 clips[n].c.top = 0; in btcx_screen_clips()
107 clips[n].c.width = win->width; in btcx_screen_clips()
108 clips[n].c.height = -win->top; in btcx_screen_clips()
113 clips[n].c.left = 0; in btcx_screen_clips()
114 clips[n].c.top = sheight - win->top; in btcx_screen_clips()
115 clips[n].c.width = win->width; in btcx_screen_clips()
116 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
123 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) in btcx_align() argument
141 nx = (clips[i].c.left-dx) & ~mask; in btcx_align()
142 nw = (clips[i].c.width) & ~mask; in btcx_align()
143 if (nx + nw < clips[i].c.left-dx + clips[i].c.width) in btcx_align()
145 clips[i].c.left = nx; in btcx_align()
146 clips[i].c.width = nw; in btcx_align()
148 clips[i].c.width, clips[i].c.height, in btcx_align()
149 clips[i].c.left, clips[i].c.top); in btcx_align()
155 btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips) in btcx_sort_clips() argument
163 if (clips[j].c.left > clips[j+1].c.left) { in btcx_sort_clips()
164 swap(clips[j], clips[j + 1]); in btcx_sort_clips()
176 const struct v4l2_clip *clips, unsigned int nclips) in btcx_calc_skips() argument
186 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
188 if (clips[clip].c.left > (signed)width) in btcx_calc_skips()
192 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
194 if (line < clips[clip].c.top) { in btcx_calc_skips()
195 if (maxline > clips[clip].c.top-1) in btcx_calc_skips()
196 maxline = clips[clip].c.top-1; in btcx_calc_skips()
199 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
200 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
203 if (0 == skip || clips[clip].c.left > skips[skip-1].end) { in btcx_calc_skips()
205 skips[skip].start = clips[clip].c.left; in btcx_calc_skips()
208 skips[skip].end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips()
214 end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips()