mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-20 06:53:45 +02:00
Add basic HTTP MJPEG stream server
This commit is contained in:
@@ -106,7 +106,7 @@ void CameraManager::setupCameraPinout()
|
||||
.pin_pclk = 13, // CAM_PIN_PCLK,
|
||||
|
||||
// XCLK 20MHz or 10MHz for OV2640 double FPS (Experimental)
|
||||
.xclk_freq_hz = 16500000,
|
||||
.xclk_freq_hz = 20000000, // 20000000,
|
||||
.ledc_timer = LEDC_TIMER_0,
|
||||
.ledc_channel = LEDC_CHANNEL_0,
|
||||
|
||||
@@ -157,6 +157,7 @@ void CameraManager::setupBasicResolution()
|
||||
if (!esp_psram_is_initialized())
|
||||
{
|
||||
ESP_LOGE(CAMERA_MANAGER_TAG, "PSRAM not initialized!");
|
||||
ESP_LOGD(CAMERA_MANAGER_TAG, "Setting fb_location to CAMERA_FB_IN_DRAM with lower picture quality");
|
||||
config.fb_location = CAMERA_FB_IN_DRAM;
|
||||
config.jpeg_quality = 9;
|
||||
config.fb_count = 2;
|
||||
@@ -166,8 +167,6 @@ void CameraManager::setupBasicResolution()
|
||||
{
|
||||
ESP_LOGE(CAMERA_MANAGER_TAG, "PSRAM size: %u", esp_psram_get_size());
|
||||
}
|
||||
|
||||
ESP_LOGD(CAMERA_MANAGER_TAG, "Setting fb_location to CAMERA_FB_IN_PSRAM");
|
||||
}
|
||||
|
||||
void CameraManager::setupCameraSensor()
|
||||
@@ -229,6 +228,8 @@ void CameraManager::setupCameraSensor()
|
||||
2); // 0 to 6 (0 - No Effect, 1 - Negative, 2 - Grayscale, 3 - Red Tint,
|
||||
// 4 - Green Tint, 5 - Blue Tint, 6 - Sepia)
|
||||
|
||||
// it gets overriden somewhere somehow
|
||||
camera_sensor->set_framesize(camera_sensor, FRAMESIZE_240X240);
|
||||
ESP_LOGI(CAMERA_MANAGER_TAG, "Setting up camera sensor done");
|
||||
}
|
||||
|
||||
@@ -280,7 +281,7 @@ bool CameraManager::setupCamera()
|
||||
}
|
||||
#endif
|
||||
|
||||
// this->setupCameraSensor();
|
||||
this->setupCameraSensor();
|
||||
// this->loadConfigData(); // move this to update method once implemented
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user