media: rockchip: vicap support crop with toisp mode

Change-Id: I81457b978527690b7f14b6dbee8de0cedef9b884
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
This commit is contained in:
Zefa Chen
2025-05-15 19:55:55 +08:00
committed by 陈泽发
parent 277f800e19
commit de526eb412

View File

@@ -201,6 +201,11 @@ static int sditf_get_set_fmt(struct v4l2_subdev *sd,
if (!ret) {
fmt->format.width = input_sel.r.width;
fmt->format.height = input_sel.r.height;
priv->cap_info.offset_x = input_sel.r.left;
priv->cap_info.offset_y = input_sel.r.top;
} else {
priv->cap_info.offset_x = 0;
priv->cap_info .offset_y = 0;
}
priv->cap_info.width = fmt->format.width;
priv->cap_info.height = fmt->format.height;
@@ -732,8 +737,8 @@ static int sditf_channel_enable_rv1103b(struct sditf_priv *priv, int user)
unsigned int ctrl_ch1 = 0;
unsigned int ctrl_ch2 = 0;
unsigned int int_en = 0;
unsigned int offset_x = 0;
unsigned int offset_y = 0;
unsigned int offset_x = priv->cap_info.offset_x;
unsigned int offset_y = priv->cap_info.offset_y;
unsigned int width = priv->cap_info.width;
unsigned int height = priv->cap_info.height;
int csi_idx = cif_dev->csi_host_idx;