Home
last modified time | relevance | path

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

/drivers/staging/media/rkisp1/
Drkisp1-resizer.c227 struct v4l2_rect *sink_crop; in rkisp1_dcrop_config() local
230 sink_crop = rkisp1_rsz_get_pad_crop(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_dcrop_config()
235 if (sink_crop->width == sink_fmt->width && in rkisp1_dcrop_config()
236 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config()
237 sink_crop->left == 0 && sink_crop->top == 0) { in rkisp1_dcrop_config()
244 rkisp1_write(rkisp1, sink_crop->left, rsz->config->dual_crop.h_offset); in rkisp1_dcrop_config()
245 rkisp1_write(rkisp1, sink_crop->top, rsz->config->dual_crop.v_offset); in rkisp1_dcrop_config()
246 rkisp1_write(rkisp1, sink_crop->width, rsz->config->dual_crop.h_size); in rkisp1_dcrop_config()
247 rkisp1_write(rkisp1, sink_crop->height, rsz->config->dual_crop.v_size); in rkisp1_dcrop_config()
254 sink_crop->width, sink_crop->height); in rkisp1_dcrop_config()
[all …]
Drkisp1-isp.c273 struct v4l2_rect *sink_crop; in rkisp1_config_isp() local
281 sink_crop = rkisp1_isp_get_pad_crop(&rkisp1->isp, NULL, in rkisp1_config_isp()
345 rkisp1_write(rkisp1, sink_crop->left, RKISP1_CIF_ISP_OUT_H_OFFS); in rkisp1_config_isp()
346 rkisp1_write(rkisp1, sink_crop->top, RKISP1_CIF_ISP_OUT_V_OFFS); in rkisp1_config_isp()
347 rkisp1_write(rkisp1, sink_crop->width, RKISP1_CIF_ISP_OUT_H_SIZE); in rkisp1_config_isp()
348 rkisp1_write(rkisp1, sink_crop->height, RKISP1_CIF_ISP_OUT_V_SIZE); in rkisp1_config_isp()
607 struct v4l2_rect *sink_crop, *src_crop; in rkisp1_isp_init_config() local
616 sink_crop = v4l2_subdev_get_try_crop(sd, cfg, in rkisp1_isp_init_config()
618 sink_crop->width = RKISP1_DEFAULT_WIDTH; in rkisp1_isp_init_config()
619 sink_crop->height = RKISP1_DEFAULT_HEIGHT; in rkisp1_isp_init_config()
[all …]
/drivers/staging/media/atomisp/pci/
Datomisp_cmd.c6019 struct v4l2_rect sink_crop = {0}; in atomisp_set_fmt() local
6033 sink_crop.height = isp_sink_crop.height; in atomisp_set_fmt()
6034 sink_crop.width = DIV_NEAREST_STEP( in atomisp_set_fmt()
6035 sink_crop.height * in atomisp_set_fmt()
6040 sink_crop.width = isp_sink_crop.width; in atomisp_set_fmt()
6041 sink_crop.height = DIV_NEAREST_STEP( in atomisp_set_fmt()
6042 sink_crop.width * in atomisp_set_fmt()
6052 &sink_crop); in atomisp_set_fmt()