Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/
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 …]
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()
436 struct v4l2_rect *sink_crop, *src_crop; in rkisp1_isp_init_config() local
450 sink_crop = v4l2_subdev_get_try_crop(sd, sd_state, in rkisp1_isp_init_config()
452 sink_crop->width = RKISP1_DEFAULT_WIDTH; in rkisp1_isp_init_config()
453 sink_crop->height = RKISP1_DEFAULT_HEIGHT; in rkisp1_isp_init_config()
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_cmd.c5477 struct v4l2_rect sink_crop = {0}; in atomisp_set_fmt() local
5491 sink_crop.height = isp_sink_crop.height; in atomisp_set_fmt()
5492 sink_crop.width = DIV_NEAREST_STEP( in atomisp_set_fmt()
5493 sink_crop.height * in atomisp_set_fmt()
5498 sink_crop.width = isp_sink_crop.width; in atomisp_set_fmt()
5499 sink_crop.height = DIV_NEAREST_STEP( in atomisp_set_fmt()
5500 sink_crop.width * in atomisp_set_fmt()
5510 &sink_crop); in atomisp_set_fmt()