File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -335,17 +335,12 @@ void StartCamera() {
335
335
config.pin_reset = RESET_GPIO_NUM;
336
336
config.xclk_freq_hz = xclk * 1000000 ;
337
337
config.pixel_format = PIXFORMAT_JPEG;
338
+ // Low(ish) default framesize and quality
339
+ config.frame_size = FRAMESIZE_SVGA;
340
+ config.jpeg_quality = 12 ;
341
+ config.fb_location = CAMERA_FB_IN_PSRAM;
342
+ config.fb_count = 2 ;
338
343
config.grab_mode = CAMERA_GRAB_LATEST;
339
- // Pre-allocate large buffers
340
- if (psramFound ()){
341
- config.frame_size = FRAMESIZE_UXGA;
342
- config.jpeg_quality = 10 ;
343
- config.fb_count = 2 ;
344
- } else {
345
- config.frame_size = FRAMESIZE_SVGA;
346
- config.jpeg_quality = 12 ;
347
- config.fb_count = 1 ;
348
- }
349
344
350
345
#if defined(CAMERA_MODEL_ESP_EYE)
351
346
pinMode (13 , INPUT_PULLUP);
@@ -410,8 +405,6 @@ void StartCamera() {
410
405
// set initial frame rate
411
406
#if defined(DEFAULT_RESOLUTION)
412
407
s->set_framesize (s, DEFAULT_RESOLUTION);
413
- #else
414
- s->set_framesize (s, FRAMESIZE_SVGA);
415
408
#endif
416
409
417
410
/*
You can’t perform that action at this time.
0 commit comments