|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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();
virtual const Contact & getLocalAddress() const =0
Get the address of the local side of the stream.
A stream which can be asked to perform bidirectional communication.
virtual void write(char ch)
Write a single byte to the stream.
Simple specification of the minimum functions needed from output streams.
virtual void reset()=0
Reset the stream.
An OutputStream that produces a string.
void beginPacket() override
Mark the beginning of a logical packet.
void write(const yarp::os::Bytes &b) override
Write a block of bytes to the stream.
yarp::os::InputStream & getInputStream() override
Get an InputStream to read from.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
virtual void close()=0
Terminate the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
Image class with user control of representation details.
virtual void endPacket()=0
Mark the end of a logical packet (see beginPacket).
const yarp::os::Contact & getLocalAddress() const override
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.
void interrupt() override
Interrupt the stream.
yarp::os::OutputStream & getOutputStream() override
Get an OutputStream to write to.
A simple abstraction for a block of bytes.
virtual void beginPacket()=0
Mark the beginning of a logical packet.
bool setReadEnvelopeCallback(yarp::os::InputStream::readEnvelopeCallbackType callback, void *data)
The main, catch-all namespace for YARP.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
bool isOk() const override
Check if the stream is ok or in an error state.
virtual InputStream & getInputStream()=0
Get an InputStream to read from.
void close() override
Terminate the stream.
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 reset() override
Reset the stream.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
MjpegStream(TwoWayStream *delegate, bool autocompress)