Skip to content

Commit 9deecc0

Browse files
committed
fix format
1 parent ff6d745 commit 9deecc0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

platforms/tab5/main/hal/components/hal_camera.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ int app_video_open(char* dev, example_fmt_t init_fmt)
120120
if (default_format.fmt.pix.pixelformat != init_fmt) {
121121
struct v4l2_format format = {.type = type,
122122
.fmt = {.pix = {.width = default_format.fmt.pix.width,
123-
.height = default_format.fmt.pix.height,
124-
.pixelformat = init_fmt}}};
123+
.height = default_format.fmt.pix.height,
124+
.pixelformat = init_fmt}}};
125125

126126
if (ioctl(fd, VIDIOC_S_FMT, &format) != 0) {
127127
ESP_LOGE(TAG, "failed to set format");
@@ -292,20 +292,20 @@ void app_camera_display(void* arg)
292292
}
293293

294294
ppa_srm_oper_config_t srm_config = {.in = {.buffer = camera->buffer[buf.index],
295-
.pic_w = 1280,
296-
.pic_h = 720,
297-
.block_w = 1280,
298-
.block_h = 720,
299-
.block_offset_x = 0,
300-
.block_offset_y = 0,
301-
.srm_cm = PPA_SRM_COLOR_MODE_RGB565},
295+
.pic_w = 1280,
296+
.pic_h = 720,
297+
.block_w = 1280,
298+
.block_h = 720,
299+
.block_offset_x = 0,
300+
.block_offset_y = 0,
301+
.srm_cm = PPA_SRM_COLOR_MODE_RGB565},
302302
.out = {.buffer = img_show_data,
303-
.buffer_size = img_show_size,
304-
.pic_w = 1280,
305-
.pic_h = 720,
306-
.block_offset_x = 0,
307-
.block_offset_y = 0,
308-
.srm_cm = PPA_SRM_COLOR_MODE_RGB565},
303+
.buffer_size = img_show_size,
304+
.pic_w = 1280,
305+
.pic_h = 720,
306+
.block_offset_x = 0,
307+
.block_offset_y = 0,
308+
.srm_cm = PPA_SRM_COLOR_MODE_RGB565},
309309
.rotation_angle = PPA_SRM_ROTATION_ANGLE_0,
310310
.scale_x = 1,
311311
.scale_y = 1,

0 commit comments

Comments
 (0)