/* * ESPRESSIF MIT License * * Copyright (c) 2017 * * Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the Software is furnished * to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * */ #ifndef _APP_CAMERA_H_ #define _APP_CAMERA_H_ #include "esp_log.h" #include "esp_system.h" #include "esp_camera.h" #include "board_def.h" /** * PIXFORMAT_RGB565, // 2BPP/RGB565 * PIXFORMAT_YUV422, // 2BPP/YUV422 * PIXFORMAT_GRAYSCALE, // 1BPP/GRAYSCALE * PIXFORMAT_JPEG, // JPEG/COMPRESSED * PIXFORMAT_RGB888, // 3BPP/RGB888 */ #define CAMERA_PIXEL_FORMAT PIXFORMAT_RGB565 /* * FRAMESIZE_QQVGA, // 160x120 * FRAMESIZE_QQVGA2, // 128x160 * FRAMESIZE_QCIF, // 176x144 * FRAMESIZE_HQVGA, // 240x176 * FRAMESIZE_QVGA, // 320x240 * FRAMESIZE_CIF, // 400x296 * FRAMESIZE_VGA, // 640x480 * FRAMESIZE_SVGA, // 800x600 * FRAMESIZE_XGA, // 1024x768 * FRAMESIZE_SXGA, // 1280x1024 * FRAMESIZE_UXGA, // 1600x1200 */ #define CAMERA_FRAME_SIZE FRAMESIZE_QVGA #ifdef __cplusplus extern "C"{ #endif void app_camera_init(); #if __cplusplus } #endif #endif