1 #ifndef ESP32CAM_CAMERA_HPP
2 #define ESP32CAM_CAMERA_HPP
64 std::enable_if_t<std::is_assignable_v<std::function<void(
Settings&)>, Fn>,
bool>
65 update(
const Fn& modifier,
int sleepFor = 0) {
68 return update(settings, sleepFor);
76 std::unique_ptr<Frame>
capture();
Definition: camera.hpp:10
bool end()
Disable camera.
Definition: camera.cpp:17
Settings status() const
Retrieve runtime settings.
Definition: config.cpp:96
bool update(const Settings &settings, int sleepFor=0)
Update runtime settings.
Definition: config.cpp:119
bool changeResolution(const Resolution &resolution, int sleepFor=500)
Change camera resolution.
Definition: camera.cpp:37
bool begin(const Config &config)
Enable camera.
Definition: camera.cpp:12
ResolutionList listResolutions() const
Retrieve list of resolutions (likely) supported by hardware.
Definition: camera.cpp:22
std::unique_ptr< Frame > capture()
Capture a frame of picture.
Definition: camera.cpp:58
std::enable_if_t< std::is_assignable_v< std::function< void(Settings &)>, Fn >, bool > update(const Fn &modifier, int sleepFor=0)
Update runtime settings using modifier function.
Definition: camera.hpp:65
int streamMjpeg(Client &client, const MjpegConfig &cfg=MjpegConfig())
Stream Motion JPEG.
Definition: camera.cpp:67
Camera initialization configuration.
Definition: config.hpp:17
A collection of resolutions.
Definition: resolution.hpp:86
Picture width and height.
Definition: resolution.hpp:12
CameraClass Camera
ESP32 camera API.
Definition: camera.cpp:9
Camera runtime settings.
Definition: config.hpp:77