Lines Matching refs:win
116 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument
126 win->w = new_win->w; in omap_vout_new_window()
127 win->field = new_win->field; in omap_vout_new_window()
128 win->chromakey = new_win->chromakey; in omap_vout_new_window()
133 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
134 crop->height = win->w.height * 2; in omap_vout_new_window()
136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
137 crop->width = win->w.width * 2; in omap_vout_new_window()
144 if (crop->height != win->w.height) in omap_vout_new_window()
149 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
150 crop->height = win->w.height * 4; in omap_vout_new_window()
152 if ((crop->width/win->w.width) >= 4) in omap_vout_new_window()
153 crop->width = win->w.width * 4; in omap_vout_new_window()
170 struct v4l2_rect *crop, struct v4l2_window *win, in omap_vout_new_crop() argument
204 if (try_crop.height != win->w.height) { in omap_vout_new_crop()
213 vresize = (1024 * try_crop.height) / win->w.height; in omap_vout_new_crop()
219 win->w.height = ((1024 * try_crop.height) / vresize) & ~1; in omap_vout_new_crop()
220 if (win->w.height == 0) in omap_vout_new_crop()
221 win->w.height = 2; in omap_vout_new_crop()
222 if (win->w.height + win->w.top > fbuf->fmt.height) { in omap_vout_new_crop()
227 win->w.height = (fbuf->fmt.height - win->w.top) & ~1; in omap_vout_new_crop()
232 hresize = (1024 * try_crop.width) / win->w.width; in omap_vout_new_crop()
238 win->w.width = ((1024 * try_crop.width) / hresize) & ~1; in omap_vout_new_crop()
239 if (win->w.width == 0) in omap_vout_new_crop()
240 win->w.width = 2; in omap_vout_new_crop()
241 if (win->w.width + win->w.left > fbuf->fmt.width) { in omap_vout_new_crop()
246 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; in omap_vout_new_crop()
251 if ((try_crop.height/win->w.height) >= 2) in omap_vout_new_crop()
252 try_crop.height = win->w.height * 2; in omap_vout_new_crop()
254 if ((try_crop.width/win->w.width) >= 2) in omap_vout_new_crop()
255 try_crop.width = win->w.width * 2; in omap_vout_new_crop()
262 if (try_crop.height != win->w.height) in omap_vout_new_crop()
266 if ((try_crop.height/win->w.height) >= 4) in omap_vout_new_crop()
267 try_crop.height = win->w.height * 4; in omap_vout_new_crop()
269 if ((try_crop.width/win->w.width) >= 4) in omap_vout_new_crop()
270 try_crop.width = win->w.width * 4; in omap_vout_new_crop()
287 struct v4l2_window *win) in omap_vout_new_format() argument
295 win->w.width = crop->width; in omap_vout_new_format()
296 win->w.height = crop->height; in omap_vout_new_format()
297 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; in omap_vout_new_format()
298 win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1; in omap_vout_new_format()