Home
last modified time | relevance | path

Searched refs:sink_crop (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-resizer.c172 struct v4l2_rect *sink_crop; in rkisp1_dcrop_config() local
175 sink_crop = rkisp1_rsz_get_pad_crop(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_dcrop_config()
180 if (sink_crop->width == sink_fmt->width && in rkisp1_dcrop_config()
181 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config()
182 sink_crop->left == 0 && sink_crop->top == 0) { in rkisp1_dcrop_config()
189 rkisp1_write(rkisp1, rsz->config->dual_crop.h_offset, sink_crop->left); in rkisp1_dcrop_config()
190 rkisp1_write(rkisp1, rsz->config->dual_crop.v_offset, sink_crop->top); in rkisp1_dcrop_config()
191 rkisp1_write(rkisp1, rsz->config->dual_crop.h_size, sink_crop->width); in rkisp1_dcrop_config()
192 rkisp1_write(rkisp1, rsz->config->dual_crop.v_size, sink_crop->height); in rkisp1_dcrop_config()
199 sink_crop->width, sink_crop->height); in rkisp1_dcrop_config()
[all …]
H A Drkisp1-isp.c135 const struct v4l2_rect *sink_crop; in rkisp1_config_isp() local
140 sink_crop = rkisp1_isp_get_pad_crop(isp, NULL, in rkisp1_config_isp()
219 rkisp1_write(rkisp1, RKISP1_CIF_ISP_OUT_H_OFFS, sink_crop->left); in rkisp1_config_isp()
220 rkisp1_write(rkisp1, RKISP1_CIF_ISP_OUT_V_OFFS, sink_crop->top); in rkisp1_config_isp()
221 rkisp1_write(rkisp1, RKISP1_CIF_ISP_OUT_H_SIZE, sink_crop->width); in rkisp1_config_isp()
222 rkisp1_write(rkisp1, RKISP1_CIF_ISP_OUT_V_SIZE, sink_crop->height); in rkisp1_config_isp()
450 struct v4l2_rect *sink_crop, *src_crop; in rkisp1_isp_init_config() local
464 sink_crop = v4l2_subdev_get_try_crop(sd, sd_state, in rkisp1_isp_init_config()
466 sink_crop->width = RKISP1_DEFAULT_WIDTH; in rkisp1_isp_init_config()
467 sink_crop->height = RKISP1_DEFAULT_HEIGHT; in rkisp1_isp_init_config()
[all …]