33 bool begin(
const camera_config_t &config,
float fps) {
35 if (!
camera_.begin(config))
return false;
36 tiny_camera::TinyCameraFrame probe =
camera_.captureFrame();
38 LOGE(
"CameraFrameSourceTinyCamera: probe capture failed");
41 info.width = probe.width();
42 info.height = probe.height();
45 LOGI(
"CameraFrameSourceTinyCamera: %dx%d, format %d", (
int)
info.width,
82 case PIXFORMAT_RGB565:
84 case PIXFORMAT_YUV422:
88#if defined(TINY_CAMERA_ESP_VIDEO)
89 case PIXFORMAT_RGB888:
VideoFormat
Video codec/pixel-format identifier, shared by two unrelated uses: the (single) video stream of a con...
Definition VideoOutput.h:29
size_t videoFrameSizeBytes(VideoFormat format, uint16_t width, uint16_t height)
Fixed per-frame size (bytes) for a raw/uncompressed VideoFormat at the given resolution - 0 for compr...
Definition Video.h:27
@ MJPEG
Definition VideoOutput.h:31
@ RGB888
Definition VideoOutput.h:37
@ RGB565
Definition VideoOutput.h:35
@ UNKNOWN
Definition VideoOutput.h:40
@ YUV422
Definition VideoOutput.h:34