Lines Matching defs:pix
34 * size in pix and the video display size in fbuf. The default
39 void omap_vout_default_crop(struct v4l2_pix_format *pix,
42 crop->width = (pix->width < fbuf->fmt.width) ?
43 pix->width : fbuf->fmt.width;
44 crop->height = (pix->height < fbuf->fmt.height) ?
45 pix->height : fbuf->fmt.height;
48 crop->left = ((pix->width - crop->width) >> 1) & ~1;
49 crop->top = ((pix->height - crop->height) >> 1) & ~1;
161 int omap_vout_new_crop(struct v4l2_pix_format *pix,
180 try_crop.width = (try_crop.width < pix->width) ?
181 try_crop.width : pix->width;
182 try_crop.height = (try_crop.height < pix->height) ?
183 try_crop.height : pix->height;
184 if (try_crop.left + try_crop.width > pix->width)
185 try_crop.width = pix->width - try_crop.left;
186 if (try_crop.top + try_crop.height > pix->height)
187 try_crop.height = pix->height - try_crop.top;
270 /* Given a new format in pix and fbuf, crop and win
277 void omap_vout_new_format(struct v4l2_pix_format *pix,
284 omap_vout_default_crop(pix, fbuf, crop);