• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/omap/

Lines Matching defs:crop

33 /* Return the default overlay cropping rectangle in crop given the image
40 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop)
42 crop->width = (pix->width < fbuf->fmt.width) ?
44 crop->height = (pix->height < fbuf->fmt.height) ?
46 crop->width &= ~1;
47 crop->height &= ~1;
48 crop->left = ((pix->width - crop->width) >> 1) & ~1;
49 crop->top = ((pix->height - crop->height) >> 1) & ~1;
100 * nearest supported configuration. The image cropping window in crop
103 * successful, new_win, vout->win, and crop are updated.
107 int omap_vout_new_window(struct v4l2_rect *crop,
125 if ((crop->height/win->w.height) >= 2)
126 crop->height = win->w.height * 2;
128 if ((crop->width/win->w.width) >= 2)
129 crop->width = win->w.width * 2;
131 if (crop->width > 768) {
136 if (crop->height != win->w.height)
137 crop->width = 768;
141 if ((crop->height/win->w.height) >= 4)
142 crop->height = win->w.height * 4;
144 if ((crop->width/win->w.width) >= 4)
145 crop->width = win->w.width * 4;
156 * will also be adjusted to maintain the rescaling ratios. If successful, crop
162 struct v4l2_rect *crop, struct v4l2_window *win,
196 if (crop->height != win->w.height) {
198 * crop width wider than 768 pixels.
205 vresize = (1024 * crop->height) / win->w.height;
224 hresize = (1024 * crop->width) / win->w.width;
265 *crop = try_crop;
270 /* Given a new format in pix and fbuf, crop and win
271 * structures are initialized to default values. crop
273 * crop window is centered in the image. win is initialized to
274 * the same size as crop and is centered on the display.
278 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
281 /* crop defines the preview source window in the image capture
284 omap_vout_default_crop(pix, fbuf, crop);
287 win->w.width = crop->width;
288 win->w.height = crop->height;