23 #ifndef _PLUGINS_WEBVIEW_MJPEG_REPLY_H_ 24 #define _PLUGINS_WEBVIEW_MJPEG_REPLY_H_ 26 #include "jpeg_stream_producer.h" 28 #include <webview/reply.h> 45 virtual size_t size();
46 virtual size_t next_chunk(
size_t pos,
char *buffer,
size_t buf_max_size);
48 virtual void handle_buffer(std::shared_ptr<WebviewJpegStreamProducer::Buffer> buffer);
51 std::shared_ptr<WebviewJpegStreamProducer> stream_producer_;
53 std::shared_ptr<WebviewJpegStreamProducer::Buffer> buffer_;
54 size_t buffer_bytes_written_;
56 std::shared_ptr<WebviewJpegStreamProducer::Buffer> next_buffer_;
DynamicMJPEGStreamWebReply(std::shared_ptr< WebviewJpegStreamProducer > stream_producer)
Constructor.
Wait until a given condition holds.
virtual ~DynamicMJPEGStreamWebReply()
Destructor.
Fawkes library namespace.
virtual size_t size()
Total size of the web reply.
virtual void handle_buffer(std::shared_ptr< WebviewJpegStreamProducer::Buffer > buffer)
Notification if a new buffer is available.
Dynamic raw file transfer reply.
DynamicMJPEGStreamWebReply & operator=(const DynamicMJPEGStreamWebReply &other)
Assignment operator.
virtual size_t next_chunk(size_t pos, char *buffer, size_t buf_max_size)
Get data of next chunk.
Mutex mutual exclusion lock.