Lines Matching full:pix
38 * size in pix and the video display size in fbuf. The default
43 void omap_vout_default_crop(struct v4l2_pix_format *pix, 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()
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()
169 int omap_vout_new_crop(struct v4l2_pix_format *pix, in omap_vout_new_crop() argument
188 try_crop.width = (try_crop.width < pix->width) ? in omap_vout_new_crop()
189 try_crop.width : pix->width; in omap_vout_new_crop()
190 try_crop.height = (try_crop.height < pix->height) ? in omap_vout_new_crop()
191 try_crop.height : pix->height; in omap_vout_new_crop()
192 if (try_crop.left + try_crop.width > pix->width) in omap_vout_new_crop()
193 try_crop.width = pix->width - try_crop.left; in omap_vout_new_crop()
194 if (try_crop.top + try_crop.height > pix->height) in omap_vout_new_crop()
195 try_crop.height = pix->height - try_crop.top; in omap_vout_new_crop()
278 /* Given a new format in pix and fbuf, crop and win
285 void omap_vout_new_format(struct v4l2_pix_format *pix, in omap_vout_new_format() argument
292 omap_vout_default_crop(pix, fbuf, crop); in omap_vout_new_format()