Lines Matching refs:crop

44 		  struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop)  in omap_vout_default_crop()  argument
46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop()
48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
50 crop->width &= ~1; in omap_vout_default_crop()
51 crop->height &= ~1; in omap_vout_default_crop()
52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop()
53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop()
115 int omap_vout_new_window(struct v4l2_rect *crop, in omap_vout_new_window() argument
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()
139 if (crop->width > 768) { in omap_vout_new_window()
144 if (crop->height != win->w.height) in omap_vout_new_window()
145 crop->width = 768; 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
273 *crop = try_crop; in omap_vout_new_crop()
286 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, in omap_vout_new_format() argument
292 omap_vout_default_crop(pix, fbuf, crop); in omap_vout_new_format()
295 win->w.width = crop->width; in omap_vout_new_format()
296 win->w.height = crop->height; in omap_vout_new_format()