/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | ispp.c | 189 struct v4l2_rect *crop; in rkispp_sd_get_selection() local 199 crop = &sel->r; in rkispp_sd_get_selection() 204 crop = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in rkispp_sd_get_selection() 208 crop->left = 0; in rkispp_sd_get_selection() 209 crop->top = 0; in rkispp_sd_get_selection() 210 crop->width = ispp_sdev->in_fmt.width; in rkispp_sd_get_selection() 211 crop->height = ispp_sdev->in_fmt.height; in rkispp_sd_get_selection() 217 ispp_sdev->out_fmt.width = crop->width; in rkispp_sd_get_selection() 218 ispp_sdev->out_fmt.height = crop->height; in rkispp_sd_get_selection() 230 struct v4l2_rect *crop; in rkispp_sd_set_selection() local [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | ispp.c | 191 struct v4l2_rect *crop; in rkispp_sd_get_selection() local 199 crop = &sel->r; in rkispp_sd_get_selection() 203 crop = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in rkispp_sd_get_selection() 207 crop->left = 0; in rkispp_sd_get_selection() 208 crop->top = 0; in rkispp_sd_get_selection() 209 crop->width = ispp_sdev->in_fmt.width; in rkispp_sd_get_selection() 210 crop->height = ispp_sdev->in_fmt.height; in rkispp_sd_get_selection() 217 ispp_sdev->out_fmt.width = crop->width; in rkispp_sd_get_selection() 218 ispp_sdev->out_fmt.height = crop->height; in rkispp_sd_get_selection() 231 struct v4l2_rect *crop; in rkispp_sd_set_selection() local [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | bridge.c | 187 u32 w = hw->max_in.w ? hw->max_in.w : dev->crop.width; in config_mode() 188 u32 h = hw->max_in.h ? hw->max_in.h : dev->crop.height; in config_mode() 330 struct v4l2_rect *crop; in bridge_set_selection() local 339 crop = &sel->r; in bridge_set_selection() 340 crop->left = clamp_t(u32, crop->left, 0, src_w); in bridge_set_selection() 341 crop->top = clamp_t(u32, crop->top, 0, src_h); in bridge_set_selection() 342 crop->width = clamp_t(u32, crop in bridge_set_selection() 354 struct v4l2_rect *crop; bridge_get_selection() local [all...] |
H A D | rkisp.c | 190 int rkisp_align_sensor_resolution(struct rkisp_device *dev, struct v4l2_rect *crop, bool user)
in rkisp_align_sensor_resolution() argument 200 if (!crop) {
in rkisp_align_sensor_resolution() 232 /* crop info from sensor */
in rkisp_align_sensor_resolution() 236 /* crop by sensor, isp don't input crop */
in rkisp_align_sensor_resolution() 239 crop->left = 0;
in rkisp_align_sensor_resolution() 240 crop->top = 0;
in rkisp_align_sensor_resolution() 241 crop->width = clamp_t(u32, sel.r.width, CIF_ISP_INPUT_W_MIN, w);
in rkisp_align_sensor_resolution() 242 crop->height = clamp_t(u32, sel.r.height, CIF_ISP_INPUT_H_MIN, h);
in rkisp_align_sensor_resolution() 248 /* only crop bound in rkisp_align_sensor_resolution() 2301 rkisp_isp_sd_try_crop(struct v4l2_subdev *sd, struct v4l2_rect *crop, u32 pad) rkisp_isp_sd_try_crop() argument 2327 struct v4l2_rect *crop; rkisp_isp_sd_get_selection() local 2395 struct v4l2_rect *crop; rkisp_isp_sd_set_selection() local [all...] |
H A D | bridge_v30.c | 27 u32 dest_w = dev->crop.width; in crop_on() 28 u32 dest_h = dev->crop.height; in crop_on() 29 u32 left = dev->crop.left; in crop_on() 30 u32 top = dev->crop.top; in crop_on() 171 u32 w = dev->crop.width; in config_mp() 172 u32 h = dev->crop.height; in config_mp()
|
H A D | rkisp.h | 108 * @in_crop: crop for sink pad 159 int rkisp_align_sensor_resolution(struct rkisp_device *dev, struct v4l2_rect *crop, bool user);
|
H A D | bridge.h | 57 struct v4l2_rect crop; member
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | bridge.c | 193 u32 w = hw->max_in.w ? hw->max_in.w : dev->crop.width; in config_mode() 194 u32 h = hw->max_in.h ? hw->max_in.h : dev->crop.height; in config_mode() 339 struct v4l2_rect *crop; in bridge_set_selection() local 346 crop = &sel->r; in bridge_set_selection() 347 crop->left = clamp_t(u32, crop->left, 0, src_w); in bridge_set_selection() 348 crop->top = clamp_t(u32, crop->top, 0, src_h); in bridge_set_selection() 349 crop->width = clamp_t(u32, crop in bridge_set_selection() 364 struct v4l2_rect *crop; bridge_get_selection() local [all...] |
H A D | rkisp.c | 186 struct v4l2_rect *crop, bool user) in rkisp_align_sensor_resolution() 196 if (!crop) in rkisp_align_sensor_resolution() 244 /* crop info from sensor */ in rkisp_align_sensor_resolution() 248 /* crop by sensor, isp don't input crop */ in rkisp_align_sensor_resolution() 251 crop->left = 0; in rkisp_align_sensor_resolution() 252 crop->top = 0; in rkisp_align_sensor_resolution() 253 crop->width = clamp_t(u32, sel.r.width, in rkisp_align_sensor_resolution() 255 crop->height = clamp_t(u32, sel.r.height, in rkisp_align_sensor_resolution() 262 /* only crop bound in rkisp_align_sensor_resolution() 185 rkisp_align_sensor_resolution(struct rkisp_device *dev, struct v4l2_rect *crop, bool user) rkisp_align_sensor_resolution() argument 2311 rkisp_isp_sd_try_crop(struct v4l2_subdev *sd, struct v4l2_rect *crop, u32 pad) rkisp_isp_sd_try_crop() argument 2342 struct v4l2_rect *crop; rkisp_isp_sd_get_selection() local 2410 struct v4l2_rect *crop; rkisp_isp_sd_set_selection() local [all...] |
H A D | bridge_v30.c | 28 u32 dest_w = dev->crop.width; in crop_on() 29 u32 dest_h = dev->crop.height; in crop_on() 30 u32 left = dev->crop.left; in crop_on() 31 u32 top = dev->crop.top; in crop_on() 172 u32 w = dev->crop.width; in config_mp() 173 u32 h = dev->crop.height; in config_mp()
|
H A D | rkisp.h | 108 * @in_crop: crop for sink pad 161 struct v4l2_rect *crop, bool user);
|
H A D | bridge.h | 57 struct v4l2_rect crop; member
|
/device/soc/hisilicon/common/hal/display/source/display_device/src/composer/ |
H A D | hdi_gfx_composition.cpp | 158 IRect crop = src.GetLayerCrop();
in BlitLayer() local 160 DISPLAY_LOGD("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h);
in BlitLayer() 164 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt);
in BlitLayer()
|
/device/soc/rockchip/common/hardware/display/src/display_device/ |
H A D | hdi_gfx_composition.cpp | 153 IRect crop = src.GetLayerCrop(); in BlitLayer() local 155 DISPLAY_DEBUGLOG("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, in BlitLayer() 156 crop.w, crop.h); in BlitLayer() 160 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/device/soc/rockchip/rk3399/hardware/display/src/display_device/ |
H A D | hdi_gfx_composition.cpp | 152 IRect crop = src.GetLayerCrop(); in BlitLayer() local 154 DISPLAY_DEBUGLOG("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h); in BlitLayer() 158 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/device/soc/rockchip/rk3566/hardware/display/src/display_device/ |
H A D | hdi_gfx_composition.cpp | 156 IRect crop = src.GetLayerCrop(); in BlitLayer() local 158 DISPLAY_LOGD("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h); in BlitLayer() 162 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_device/ |
H A D | hdi_gfx_composition.cpp | 156 IRect crop = src.GetLayerCrop();
in BlitLayer() local 158 DISPLAY_LOGD("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h);
in BlitLayer() 162 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt);
in BlitLayer()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_device/ |
H A D | hdi_gfx_composition.cpp | 179 IRect crop = src.GetLayerCrop(); in BlitLayer() local 181 DISPLAY_LOGD("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h); in BlitLayer() 185 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
H A D | capture.c | 1985 channel->crop_st_x = 3 * stream->crop[CROP_SRC_ACT].left;
in rkcif_csi_channel_init() 1987 channel->crop_st_x = stream->crop[CROP_SRC_ACT].left;
in rkcif_csi_channel_init() 1990 channel->crop_st_y = stream->crop[CROP_SRC_ACT].top;
in rkcif_csi_channel_init() 1991 channel->width = stream->crop[CROP_SRC_ACT].width;
in rkcif_csi_channel_init() 1992 channel->height = stream->crop[CROP_SRC_ACT].height;
in rkcif_csi_channel_init() 2135 // need always enable crop
in rkcif_csi_channel_set() 2543 height = stream->crop[CROP_SRC_ACT].height;
in rkcif_queue_setup() 3318 stream->crop[CROP_SRC_SENSOR] = input_sel.r;
in rkcif_sync_crop_info() 3328 if (stream->crop[CROP_SRC_USR].left + stream->crop[CROP_SRC_US in rkcif_sync_crop_info() 3353 struct v4l2_rect input, *crop; rkcif_sanity_check_fmt() local [all...] |
H A D | mipi-csi2.c | 336 csi2->crop.top = 0;
in csi2_media_init() 337 csi2->crop.left = 0;
in csi2_media_init() 338 csi2->crop.width = RKCIF_DEFAULT_WIDTH;
in csi2_media_init() 339 csi2->crop.height = RKCIF_DEFAULT_HEIGHT;
in csi2_media_init() 369 return &csi2->crop;
in mipi_csi2_get_crop() 406 csi2->crop = sel->r;
in csi2_get_selection() 408 sel->r = csi2->crop;
in csi2_get_selection() 411 csi2->crop = sel->r;
in csi2_get_selection() 440 csi2->crop = sel->r;
in csi2_set_selection()
|
H A D | mipi-csi2.h | 137 struct v4l2_rect crop; member
|
H A D | dev.h | 193 * @raw_rect: raw output rectangle of sensor, not crop or selection
482 * @crop_enable: crop status when stream off
483 * @crop_dyn_en: crop status when streaming
514 struct v4l2_rect crop[CROP_SRC_MAX];
member 549 struct v4l2_rect crop;
member
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
H A D | capture.c | 2004 channel->crop_st_x = 3 * stream->crop[CROP_SRC_ACT].left; in rkcif_csi_channel_init() 2006 channel->crop_st_x = stream->crop[CROP_SRC_ACT].left; in rkcif_csi_channel_init() 2008 channel->crop_st_y = stream->crop[CROP_SRC_ACT].top; in rkcif_csi_channel_init() 2009 channel->width = stream->crop[CROP_SRC_ACT].width; in rkcif_csi_channel_init() 2010 channel->height = stream->crop[CROP_SRC_ACT].height; in rkcif_csi_channel_init() 2173 //need always enable crop in rkcif_csi_channel_set() 2614 height = stream->crop[CROP_SRC_ACT].height; in rkcif_queue_setup() 3407 stream->crop[CROP_SRC_SENSOR] = input_sel.r; in rkcif_sync_crop_info() 3417 if (stream->crop[CROP_SRC_USR].left + stream->crop[CROP_SRC_US in rkcif_sync_crop_info() 3446 struct v4l2_rect input, *crop; rkcif_sanity_check_fmt() local [all...] |
H A D | mipi-csi2.c | 333 csi2->crop.top = 0; in csi2_media_init() 334 csi2->crop.left = 0; in csi2_media_init() 335 csi2->crop.width = RKCIF_DEFAULT_WIDTH; in csi2_media_init() 336 csi2->crop.height = RKCIF_DEFAULT_HEIGHT; in csi2_media_init() 368 return &csi2->crop; in mipi_csi2_get_crop() 406 csi2->crop = sel->r; in csi2_get_selection() 408 sel->r = csi2->crop; in csi2_get_selection() 411 csi2->crop = sel->r; in csi2_get_selection() 442 csi2->crop = sel->r; in csi2_set_selection()
|
H A D | mipi-csi2.h | 140 struct v4l2_rect crop; member
|