Home
last modified time | relevance | path

Searched refs:try_crop (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/media/platform/ti/omap/
H A Domap_voutlib.c173 struct v4l2_rect try_crop; in omap_vout_new_crop() local
177 try_crop = *new_crop; in omap_vout_new_crop()
180 if (try_crop.left < 0) { in omap_vout_new_crop()
181 try_crop.width += try_crop.left; in omap_vout_new_crop()
182 try_crop.left = 0; in omap_vout_new_crop()
184 if (try_crop.top < 0) { in omap_vout_new_crop()
185 try_crop.height += try_crop.top; in omap_vout_new_crop()
186 try_crop.top = 0; in omap_vout_new_crop()
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()
[all …]
/linux/drivers/media/platform/microchip/
H A Dmicrochip-isc-scaler.c153 struct v4l2_rect *try_crop; in isc_scaler_init_state() local
158 try_crop = v4l2_subdev_state_get_crop(sd_state, 0); in isc_scaler_init_state()
160 try_crop->top = 0; in isc_scaler_init_state()
161 try_crop->left = 0; in isc_scaler_init_state()
162 try_crop->width = v4l2_try_fmt->width; in isc_scaler_init_state()
163 try_crop->height = v4l2_try_fmt->height; in isc_scaler_init_state()
/linux/drivers/media/i2c/
H A Dimx258.c707 struct v4l2_rect *try_crop; in imx258_open() local
716 try_crop = v4l2_subdev_state_get_crop(fh->state, 0); in imx258_open()
717 try_crop->left = IMX258_PIXEL_ARRAY_LEFT; in imx258_open()
718 try_crop->top = IMX258_PIXEL_ARRAY_TOP; in imx258_open()
719 try_crop->width = IMX258_PIXEL_ARRAY_WIDTH; in imx258_open()
720 try_crop->height = IMX258_PIXEL_ARRAY_HEIGHT; in imx258_open()
/linux/drivers/staging/media/ipu3/
H A Dipu3-v4l2.c25 struct v4l2_rect try_crop = { in imgu_subdev_open() local
31 try_crop.width = in imgu_subdev_open()
33 try_crop.height = in imgu_subdev_open()
41 try_fmt->width = try_crop.width; in imgu_subdev_open()
42 try_fmt->height = try_crop.height; in imgu_subdev_open()
47 *v4l2_subdev_state_get_crop(fh->state, IMGU_NODE_IN) = try_crop; in imgu_subdev_open()
48 *v4l2_subdev_state_get_compose(fh->state, IMGU_NODE_IN) = try_crop; in imgu_subdev_open()
/linux/drivers/media/platform/atmel/
H A Datmel-isi.c560 struct v4l2_rect *try_crop = in isi_try_fse() local
575 try_crop->width = MAX_SUPPORT_WIDTH; in isi_try_fse()
576 try_crop->height = MAX_SUPPORT_HEIGHT; in isi_try_fse()
578 try_crop->width = fse.max_width; in isi_try_fse()
579 try_crop->height = fse.max_height; in isi_try_fse()