media: rockchip: isp: stats buf add application params frame id

Change-Id: Ib343caba3c4e378661d83f0485a9e0a2940367f3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2023-02-03 09:36:53 +08:00
committed by Tao Huang
parent f19600fdb0
commit 5b04137c44
4 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,7 @@ struct rkisp_isp_params_vdev {
enum v4l2_quantization quantization;
enum rkisp_fmt_raw_pat_type raw_type;
u32 in_mbus_code;
u32 cur_frame_id;
struct preisp_hdrae_para_s hdrae_para;
struct rkisp_isp_params_ops *ops;

View File

@ -3649,6 +3649,7 @@ void __isp_isr_meas_config(struct rkisp_isp_params_vdev *params_vdev,
(struct rkisp_isp_params_v21_ops *)params_vdev->priv_ops;
u64 module_cfg_update = new_params->module_cfg_update;
params_vdev->cur_frame_id = new_params->frame_id;
if (type == RKISP_PARAMS_SHD)
return;

View File

@ -940,6 +940,7 @@ rkisp_stats_send_meas_v21(struct rkisp_isp_stats_vdev *stats_vdev,
struct rkisp_isp21_stat_buffer *cur_stat_buf = NULL;
struct rkisp_stats_v21_ops *ops =
(struct rkisp_stats_v21_ops *)stats_vdev->priv_ops;
struct rkisp_isp_params_vdev *params_vdev = &stats_vdev->dev->params_vdev;
int ret = 0;
cur_frame_id = meas_work->frame_id;
@ -958,6 +959,7 @@ rkisp_stats_send_meas_v21(struct rkisp_isp_stats_vdev *stats_vdev,
cur_stat_buf =
(struct rkisp_isp21_stat_buffer *)(cur_buf->vaddr[0]);
cur_stat_buf->frame_id = cur_frame_id;
cur_stat_buf->params_id = params_vdev->cur_frame_id;
}
if (meas_work->isp_ris & ISP2X_AFM_SUM_OF)

View File

@ -805,6 +805,7 @@ struct isp21_stat {
struct rkisp_isp21_stat_buffer {
unsigned int meas_type;
unsigned int frame_id;
unsigned int params_id;
struct isp21_stat params;
} __attribute__ ((packed));