73#include "driver/ledc.h"
85 CAMERA_GRAB_WHEN_EMPTY,
95} camera_fb_location_t;
120 ledc_timer_t ledc_timer;
121 ledc_channel_t ledc_channel;
123 pixformat_t pixel_format;
124 framesize_t frame_size;
128 camera_fb_location_t fb_location;
129 camera_grab_mode_t grab_mode;
141 struct timeval timestamp;
145#define ESP_ERR_CAMERA_BASE 0x20000
146#define ESP_ERR_CAMERA_NOT_DETECTED (ESP_ERR_CAMERA_BASE + 1)
147#define ESP_ERR_CAMERA_FAILED_TO_SET_FRAME_SIZE (ESP_ERR_CAMERA_BASE + 2)
148#define ESP_ERR_CAMERA_FAILED_TO_SET_OUT_FORMAT (ESP_ERR_CAMERA_BASE + 3)
149#define ESP_ERR_CAMERA_NOT_SUPPORTED (ESP_ERR_CAMERA_BASE + 4)
167esp_err_t esp_camera_init(
const camera_config_t* config);
176esp_err_t esp_camera_deinit();
183camera_fb_t* esp_camera_fb_get();
190void esp_camera_fb_return(camera_fb_t * fb);
197sensor_t * esp_camera_sensor_get();
204esp_err_t esp_camera_save_to_nvs(
const char *key);
211esp_err_t esp_camera_load_from_nvs(
const char *key);
217#include "img_converters.h"