9 #ifndef MJPEGSTREAM_INC
10 #define MJPEGSTREAM_INC
47 blobHeader(
yarp::wire_rep_utils::BlobNetworkHeader{0,0,0}),
51 autocompress(autocompress)
70 bool isOk()
const override {
71 return delegate->
isOk();
bool setReadEnvelopeCallback(yarp::os::InputStream::readEnvelopeCallbackType callback, void *data)
void write(const yarp::os::Bytes &b) override
Write a block of bytes to the stream.
yarp::os::OutputStream & getOutputStream() override
Get an OutputStream to write to.
bool isOk() const override
Check if the stream is ok or in an error state.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
yarp::os::InputStream & getInputStream() override
Get an InputStream to read from.
MjpegStream(TwoWayStream *delegate, bool autocompress)
bool setReadEnvelopeCallback(yarp::os::InputStream::readEnvelopeCallbackType callback, void *data) override
Install a callback that the InputStream will have to call when the envelope is read from a message in...
void close() override
Terminate the stream.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
void beginPacket() override
Mark the beginning of a logical packet.
const yarp::os::Contact & getLocalAddress() const override
Get the address of the local side of the stream.
void reset() override
Reset the stream.
void interrupt() override
Interrupt the stream.
A simple abstraction for a block of bytes.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
Simple specification of the minimum functions needed from output streams.
virtual void write(char ch)
Write a single byte to the stream.
An OutputStream that produces a string.
A stream which can be asked to perform bidirectional communication.
virtual void endPacket()=0
Mark the end of a logical packet (see beginPacket).
virtual const Contact & getLocalAddress() const =0
Get the address of the local side of the stream.
virtual const Contact & getRemoteAddress() const =0
Get the address of the remote side of the stream.
virtual void close()=0
Terminate the stream.
virtual void reset()=0
Reset the stream.
virtual InputStream & getInputStream()=0
Get an InputStream to read from.
virtual void beginPacket()=0
Mark the beginning of a logical packet.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
Image class with user control of representation details.
The main, catch-all namespace for YARP.