Lines Matching refs:fbuf
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()
47 pix->width : fbuf->fmt.width; in omap_vout_default_crop()
48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
49 pix->height : fbuf->fmt.height; in omap_vout_default_crop()
63 int omap_vout_try_window(struct v4l2_framebuffer *fbuf, in omap_vout_try_window() argument
82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window()
83 try_win.width : fbuf->fmt.width; in omap_vout_try_window()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; in omap_vout_try_window()
86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window()
87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window()
88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window()
89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window()
116 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument
121 err = omap_vout_try_window(fbuf, new_win); in omap_vout_new_window()
171 struct v4l2_framebuffer *fbuf, const struct v4l2_rect *new_crop) in omap_vout_new_crop() argument
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()
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()
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()
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()