mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-17 13:38:02 +00:00
Added seeed_xiao_esp32s3
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
typedef struct
|
||||
{
|
||||
const char name[11];
|
||||
const char name[17];
|
||||
const camera_config_t config;
|
||||
} camera_config_entry_t;
|
||||
|
||||
@@ -32,7 +32,8 @@ constexpr camera_config_t esp32cam_settings = {
|
||||
.pixel_format = PIXFORMAT_JPEG,
|
||||
.frame_size = FRAMESIZE_SVGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 2};
|
||||
.fb_count = 2,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr camera_config_t esp32cam_aithinker_settings = {
|
||||
.pin_pwdn = 32,
|
||||
@@ -57,7 +58,8 @@ constexpr camera_config_t esp32cam_aithinker_settings = {
|
||||
.pixel_format = PIXFORMAT_JPEG,
|
||||
.frame_size = FRAMESIZE_SVGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 2};
|
||||
.fb_count = 2,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr camera_config_t esp32cam_ttgo_t_settings = {
|
||||
.pin_pwdn = 26,
|
||||
@@ -82,7 +84,8 @@ constexpr camera_config_t esp32cam_ttgo_t_settings = {
|
||||
.pixel_format = PIXFORMAT_JPEG,
|
||||
.frame_size = FRAMESIZE_SVGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 2};
|
||||
.fb_count = 2,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr camera_config_t esp32cam_m5stack_settings = {
|
||||
.pin_pwdn = -1,
|
||||
@@ -107,7 +110,8 @@ constexpr camera_config_t esp32cam_m5stack_settings = {
|
||||
.pixel_format = PIXFORMAT_JPEG,
|
||||
.frame_size = FRAMESIZE_SVGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 2};
|
||||
.fb_count = 2,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr camera_config_t esp32cam_wrover_kit_settings = {
|
||||
.pin_pwdn = -1,
|
||||
@@ -132,10 +136,38 @@ constexpr camera_config_t esp32cam_wrover_kit_settings = {
|
||||
.pixel_format = PIXFORMAT_JPEG,
|
||||
.frame_size = FRAMESIZE_SVGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 2};
|
||||
.fb_count = 2,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr camera_config_t esp32cam_xiaoesp32s3_settings = {
|
||||
.pin_pwdn = -1,
|
||||
.pin_reset = -1,
|
||||
.pin_xclk = 10,
|
||||
.pin_sscb_sda = 40,
|
||||
.pin_sscb_scl = 39,
|
||||
.pin_d7 = 48,
|
||||
.pin_d6 = 11,
|
||||
.pin_d5 = 12,
|
||||
.pin_d4 = 14,
|
||||
.pin_d3 = 16,
|
||||
.pin_d2 = 18,
|
||||
.pin_d1 = 17,
|
||||
.pin_d0 = 15,
|
||||
.pin_vsync = 38,
|
||||
.pin_href = 47,
|
||||
.pin_pclk = 13,
|
||||
.xclk_freq_hz = 20000000,
|
||||
.ledc_timer = LEDC_TIMER_0,
|
||||
.ledc_channel = LEDC_CHANNEL_0,
|
||||
.pixel_format = PIXFORMAT_JPEG, // for streaming
|
||||
.frame_size = FRAMESIZE_UXGA,
|
||||
.jpeg_quality = 12,
|
||||
.fb_count = 1,
|
||||
.grab_mode = CAMERA_GRAB_WHEN_EMPTY};
|
||||
|
||||
constexpr const camera_config_entry_t camera_configs[] = {
|
||||
{"ESP32CAM", esp32cam_settings},
|
||||
{"ESP32CAM_XIAO_S3", esp32cam_xiaoesp32s3_settings},
|
||||
{"AI THINKER", esp32cam_aithinker_settings},
|
||||
{"TTGO T-CAM", esp32cam_ttgo_t_settings},
|
||||
{"M5 STACK", esp32cam_m5stack_settings},
|
||||
|
||||
Reference in New Issue
Block a user