Skip to content

Commit aacdf14

Browse files
committed
Merge branch 'fix/add_ov5640_rgb565_dvp_support' into 'master'
Fix/add ov5640 rgb565 dvp support See merge request espressif/esp-video-components!336
2 parents 54c9344 + cd54395 commit aacdf14

File tree

6 files changed

+391
-10
lines changed

6 files changed

+391
-10
lines changed

esp_cam_sensor/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.5.1
4+
5+
- Added byte swap option and RGB565 format support for OV5640.
6+
37
## 1.5.0
48

59
- Added option to return byte swap flags for GC0308

esp_cam_sensor/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ menu "Espressif Camera Sensors Configurations"
2424
bool "Enable pixel byte order swapping"
2525
default y if IDF_TARGET_ESP32P4
2626
default n if IDF_TARGET_ESP32S3
27-
depends on CAMERA_OV2640 || CAMERA_BF3901 || CAMERA_GC0308 || CAMERA_SC030IOT || CAMERA_SC101IOT || CAMERA_BF3A03
27+
depends on CAMERA_OV2640 || CAMERA_BF3901 || CAMERA_GC0308 || CAMERA_SC030IOT || CAMERA_SC101IOT || CAMERA_BF3A03 || CAMERA_OV5640
2828
help
2929
Enable pixel byte order swapping to match display or processing requirements.
3030

esp_cam_sensor/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.5.0"
1+
version: "1.5.1"
22
description: "Espressif camera sensor drivers, it is recommended to use with esp_video"
33
targets:
44
- esp32p4

esp_cam_sensor/sensors/ov5640/Kconfig.ov5640

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,18 @@ if CAMERA_OV5640
6666
help
6767
YUV422 color format at 800x600 resolution (SVGA) with 10fps framerate.
6868
Requires 8-bit DVP interface and 24MHz input clock.
69+
config CAMERA_OV5640_DVP_RGB565_800X600_10FPS
70+
bool "RGB565 800x600 10fps, DVP 8-bit, 24M input"
71+
help
72+
RGB565 color format at 800x600 resolution (SVGA) with 10fps framerate.
73+
Requires 8-bit DVP interface and 24MHz input clock.
6974
endchoice # CAMERA_OV5640_DVP_DEFAULT_FMT
7075

7176
config CAMERA_OV5640_DVP_IF_FORMAT_INDEX_DEFAULT
7277
int
7378
depends on SOC_LCDCAM_CAM_SUPPORTED
7479
default 0 if CAMERA_OV5640_DVP_YUV422_800X600_10FPS
80+
default 1 if CAMERA_OV5640_DVP_RGB565_800X600_10FPS
7581
help
7682
Sets the default configuration for the DVP interface.
7783
Use query_support_formats() API to get more format options.

esp_cam_sensor/sensors/ov5640/ov5640.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ static const esp_cam_sensor_format_t ov5640_format_info_dvp[] = {
7171
.mipi_info = {0},
7272
.reserved = NULL,
7373
},
74+
{
75+
.name = "DVP_8bit_24Minput_RGB565_800x600_10fps",
76+
.format = ESP_CAM_SENSOR_PIXFORMAT_RGB565,
77+
.port = ESP_CAM_SENSOR_DVP,
78+
.xclk = 24000000,
79+
.width = 800,
80+
.height = 600,
81+
.regs = ov5640_dvp_yuv422_svga_10fps,
82+
.regs_size = ARRAY_SIZE(ov5640_dvp_yuv422_svga_10fps),
83+
.fps = 10,
84+
.isp_info = NULL,
85+
.mipi_info = {0},
86+
.reserved = NULL,
87+
}
7488
};
7589
#endif
7690

0 commit comments

Comments
 (0)