Lines Matching defs:fbuf
38 * size in pix and the video display size in fbuf. The default
44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop)
46 crop->width = (pix->width < fbuf->fmt.width) ?
47 pix->width : fbuf->fmt.width;
48 crop->height = (pix->height < fbuf->fmt.height) ?
49 pix->height : fbuf->fmt.height;
63 int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
82 try_win.width = (try_win.width < fbuf->fmt.width) ?
83 try_win.width : fbuf->fmt.width;
84 try_win.height = (try_win.height < fbuf->fmt.height) ?
85 try_win.height : fbuf->fmt.height;
86 if (try_win.left + try_win.width > fbuf->fmt.width)
87 try_win.width = fbuf->fmt.width - try_win.left;
88 if (try_win.top + try_win.height > fbuf->fmt.height)
89 try_win.height = fbuf->fmt.height - try_win.top;
116 struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
121 err = omap_vout_try_window(fbuf, new_win);
171 struct v4l2_framebuffer *fbuf, const struct v4l2_rect *new_crop)
222 if (win->w.height + win->w.top > fbuf->fmt.height) {
227 win->w.height = (fbuf->fmt.height - win->w.top) & ~1;
241 if (win->w.width + win->w.left > fbuf->fmt.width) {
246 win->w.width = (fbuf->fmt.width - win->w.left) & ~1;
278 /* Given a new format in pix and fbuf, crop and win
286 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
292 omap_vout_default_crop(pix, fbuf, crop);
297 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1;
298 win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1;