Lines Matching refs:win
112 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument
122 win->w = new_win->w; in omap_vout_new_window()
123 win->field = new_win->field; in omap_vout_new_window()
124 win->chromakey = new_win->chromakey; in omap_vout_new_window()
129 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
130 crop->height = win->w.height * 2; in omap_vout_new_window()
132 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
133 crop->width = win->w.width * 2; in omap_vout_new_window()
140 if (crop->height != win->w.height) in omap_vout_new_window()
145 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
146 crop->height = win->w.height * 4; in omap_vout_new_window()
148 if ((crop->width/win->w.width) >= 4) in omap_vout_new_window()
149 crop->width = win->w.width * 4; in omap_vout_new_window()
166 struct v4l2_rect *crop, struct v4l2_window *win, in omap_vout_new_crop() argument
200 if (try_crop.height != win->w.height) { in omap_vout_new_crop()
209 vresize = (1024 * try_crop.height) / win->w.height; in omap_vout_new_crop()
215 win->w.height = ((1024 * try_crop.height) / vresize) & ~1; in omap_vout_new_crop()
216 if (win->w.height == 0) in omap_vout_new_crop()
217 win->w.height = 2; in omap_vout_new_crop()
218 if (win->w.height + win->w.top > fbuf->fmt.height) { in omap_vout_new_crop()
223 win->w.height = (fbuf->fmt.height - win->w.top) & ~1; in omap_vout_new_crop()
228 hresize = (1024 * try_crop.width) / win->w.width; in omap_vout_new_crop()
234 win->w.width = ((1024 * try_crop.width) / hresize) & ~1; in omap_vout_new_crop()
235 if (win->w.width == 0) in omap_vout_new_crop()
236 win->w.width = 2; in omap_vout_new_crop()
237 if (win->w.width + win->w.left > fbuf->fmt.width) { in omap_vout_new_crop()
242 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; in omap_vout_new_crop()
247 if ((try_crop.height/win->w.height) >= 2) in omap_vout_new_crop()
248 try_crop.height = win->w.height * 2; in omap_vout_new_crop()
250 if ((try_crop.width/win->w.width) >= 2) in omap_vout_new_crop()
251 try_crop.width = win->w.width * 2; in omap_vout_new_crop()
258 if (try_crop.height != win->w.height) in omap_vout_new_crop()
262 if ((try_crop.height/win->w.height) >= 4) in omap_vout_new_crop()
263 try_crop.height = win->w.height * 4; in omap_vout_new_crop()
265 if ((try_crop.width/win->w.width) >= 4) in omap_vout_new_crop()
266 try_crop.width = win->w.width * 4; in omap_vout_new_crop()
283 struct v4l2_window *win) in omap_vout_new_format() argument
291 win->w.width = crop->width; in omap_vout_new_format()
292 win->w.height = crop->height; in omap_vout_new_format()
293 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; in omap_vout_new_format()
294 win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1; in omap_vout_new_format()