Fawkes API
Fawkes Development Version
|
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_;
virtual void handle_buffer(std::shared_ptr< WebviewJpegStreamProducer::Buffer > buffer)
Notification if a new buffer is available.
Mutex mutual exclusion lock.
Wait until a given condition holds.
virtual ~DynamicMJPEGStreamWebReply()
Destructor.
DynamicMJPEGStreamWebReply(std::shared_ptr< WebviewJpegStreamProducer > stream_producer)
Constructor.
Fawkes library namespace.
virtual size_t next_chunk(size_t pos, char *buffer, size_t buf_max_size)
Get data of next chunk.
DynamicMJPEGStreamWebReply & operator=(const DynamicMJPEGStreamWebReply &other)
Assignment operator.
Dynamic raw file transfer reply.
virtual size_t size()
Total size of the web reply.