1 #ifndef ESP32CAM_MJPEG_HPP
2 #define ESP32CAM_MJPEG_HPP
98 std::unique_ptr<Frame> m_frame;
99 unsigned long m_nextCaptureTime;
A frame of picture.
Definition: frame.hpp:13
Control MJPEG stream timing.
Definition: mjpeg.hpp:33
const MjpegConfig cfg
Definition: mjpeg.hpp:95
Action
Definition: mjpeg.hpp:88
@ RETURN
Definition: mjpeg.hpp:90
@ STOP
Definition: mjpeg.hpp:92
@ CAPTURE
Definition: mjpeg.hpp:89
@ SEND
Definition: mjpeg.hpp:91
void notifySent(bool ok)
Notify that a frame is sent to the client.
Definition: mjpeg.cpp:46
int countSentFrames() const
Retrieve number of sent frames.
Definition: mjpeg.hpp:38
MjpegController(MjpegConfig cfg)
Definition: mjpeg.cpp:9
Frame * getFrame() const
Retrieve current frame.
Definition: mjpeg.hpp:66
void notifyCapture()
Notify that frame capture has started.
Definition: mjpeg.cpp:26
void notifyFail()
Notify that an error has occurred.
Definition: mjpeg.cpp:58
void notifyReturn(std::unique_ptr< Frame > frame)
Notify that frame capture has completed.
Definition: mjpeg.cpp:33
int decideAction()
Decide what to do now.
Definition: mjpeg.cpp:14
int minInterval
Minimum interval between frame captures in millis.
Definition: mjpeg.hpp:17
int frameTimeout
Time limit of writing one frame in millis.
Definition: mjpeg.hpp:27
int maxFrames
Maximum number of frames before disconnecting.
Definition: mjpeg.hpp:24