Lines Matching refs:pix
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()
165 int omap_vout_new_crop(struct v4l2_pix_format *pix, in omap_vout_new_crop() argument
184 try_crop.width = (try_crop.width < pix->width) ? in omap_vout_new_crop()
185 try_crop.width : pix->width; in omap_vout_new_crop()
186 try_crop.height = (try_crop.height < pix->height) ? in omap_vout_new_crop()
187 try_crop.height : pix->height; in omap_vout_new_crop()
188 if (try_crop.left + try_crop.width > pix->width) in omap_vout_new_crop()
189 try_crop.width = pix->width - try_crop.left; in omap_vout_new_crop()
190 if (try_crop.top + try_crop.height > pix->height) in omap_vout_new_crop()
191 try_crop.height = pix->height - try_crop.top; in omap_vout_new_crop()
281 void omap_vout_new_format(struct v4l2_pix_format *pix, in omap_vout_new_format() argument
288 omap_vout_default_crop(pix, fbuf, crop); in omap_vout_new_format()