mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-14 20:18:01 +00:00
Work in progress
This commit is contained in:
25
lib/micro-rtsp-server/include/micro_rtsp_camera.h
Normal file
25
lib/micro-rtsp-server/include/micro_rtsp_camera.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <esp_camera.h>
|
||||
|
||||
class micro_rtsp_camera
|
||||
{
|
||||
public:
|
||||
micro_rtsp_camera();
|
||||
virtual ~micro_rtsp_camera();
|
||||
|
||||
esp_err_t initialize(camera_config_t *camera_config);
|
||||
esp_err_t deinitialize();
|
||||
// sensor_t* esp_camera_sensor_get();
|
||||
|
||||
void update_frame();
|
||||
|
||||
uint8_t *data() const { return fb->buf; }
|
||||
size_t width() const { return fb->width; }
|
||||
size_t height() const { return fb->height; }
|
||||
size_t size() const { return fb->len; }
|
||||
|
||||
private:
|
||||
esp_err_t init_result;
|
||||
camera_fb_t *fb;
|
||||
};
|
||||
Reference in New Issue
Block a user