YARP
Yet Another Robot Platform
MjpegDecompression.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP2_MJPEGDECOMPRESSION_INC
7 #define YARP2_MJPEGDECOMPRESSION_INC
8 
9 #include <yarp/os/ManagedBytes.h>
10 #include <yarp/os/InputStream.h>
11 #include <yarp/sig/Image.h>
12 
13 
15 {
16 private:
17  void *system_resource;
18 public:
20 
21  virtual ~MjpegDecompression();
22 
23  bool decompress(const yarp::os::Bytes& data,
24  yarp::sig::FlexImage& image);
25 
26  bool isAutomatic() const;
27 
29  void* data);
30 };
31 
32 #endif
bool decompress(const yarp::os::Bytes &data, yarp::sig::FlexImage &image)
bool setReadEnvelopeCallback(yarp::os::InputStream::readEnvelopeCallbackType callback, void *data)
A simple abstraction for a block of bytes.
Definition: Bytes.h:25
void(* readEnvelopeCallbackType)(void *, const yarp::os::Bytes &envelope)
Callback type for setting the envelope from a message in carriers that cannot be escaped.
Definition: InputStream.h:125
Image class with user control of representation details.
Definition: Image.h:414