From 744ac68fad8ccfdd675c13ee61a505c0deaa6709 Mon Sep 17 00:00:00 2001 From: Martin <10679603+mading0405@user.noreply.gitee.com> Date: Tue, 14 May 2024 07:07:34 +0000 Subject: [PATCH] update cplusplus/level1_single_api/6_media/1_camera/camera_sample/vi_with_sensor.c. 1 Signed-off-by: Martin <10679603+mading0405@user.noreply.gitee.com> --- .../6_media/1_camera/camera_sample/vi_with_sensor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cplusplus/level1_single_api/6_media/1_camera/camera_sample/vi_with_sensor.c b/cplusplus/level1_single_api/6_media/1_camera/camera_sample/vi_with_sensor.c index 33a4d7be0..f785d059e 100644 --- a/cplusplus/level1_single_api/6_media/1_camera/camera_sample/vi_with_sensor.c +++ b/cplusplus/level1_single_api/6_media/1_camera/camera_sample/vi_with_sensor.c @@ -205,7 +205,7 @@ hi_s32 start_camera(hi_u32 index, case_info sensor_info) if (sensor_info.sensor_type == 1) { sensor_type = SONY_IMX219_MIPI_1920x1080_10BIT_30FPS_NORMAL; } else if (sensor_info.sensor_type == 2) { - sensor_type = SONY_IMX477_MIPI_1920x1080_10BIT_DOL2_15FPS; + sensor_type = SONY_IMX477_MIPI_1920x1080_10BIT_DOL4_15FPS; } else { goto sys_init_failed; } @@ -272,6 +272,7 @@ hi_s32 get_sample_vi_info_by_sensorType(const SAMPLE_SNS_TYPE_E sensor_type, pipe_mult_sensor[dev_id] = dev_id; break; case SONY_IMX477_MIPI_1920x1080_10BIT_DOL2_15FPS: + case SONY_IMX477_MIPI_1920x1080_10BIT_DOL4_15FPS: memcpy(sample_vi_info, &sample_vi_info_linear, sizeof(SAMPLE_VI_INFO_S)); sample_vi_info->stSnsInfo.enSnsType = sensor_type; sample_vi_info->stSnsInfo.s32BusId = 0 + dev_id * 2; -- Gitee