YARP
Yet Another Robot Platform
MjpegDecompression.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP2_MJPEGDECOMPRESSION_INC
10 #define YARP2_MJPEGDECOMPRESSION_INC
11 
12 #include <yarp/os/ManagedBytes.h>
13 #include <yarp/os/InputStream.h>
14 #include <yarp/sig/Image.h>
15 
16 
18 {
19 private:
20  void *system_resource;
21 public:
23 
24  virtual ~MjpegDecompression();
25 
26  bool decompress(const yarp::os::Bytes& data,
27  yarp::sig::FlexImage& image);
28 
29  bool isAutomatic() const;
30 
32  void* data);
33 };
34 
35 #endif
MjpegDecompression::isAutomatic
bool isAutomatic() const
Definition: MjpegDecompression.cpp:231
MjpegDecompression::~MjpegDecompression
virtual ~MjpegDecompression()
Definition: MjpegDecompression.cpp:209
MjpegDecompression::decompress
bool decompress(const yarp::os::Bytes &data, yarp::sig::FlexImage &image)
Definition: MjpegDecompression.cpp:217
MjpegDecompression::MjpegDecompression
MjpegDecompression()
Definition: MjpegDecompression.cpp:204
yarp::os::InputStream::readEnvelopeCallbackType
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:128
ManagedBytes.h
yarp::sig::FlexImage
Image class with user control of representation details.
Definition: Image.h:403
yarp::os::Bytes
A simple abstraction for a block of bytes.
Definition: Bytes.h:28
Image.h
MjpegDecompression
Definition: MjpegDecompression.h:18
MjpegDecompression::setReadEnvelopeCallback
bool setReadEnvelopeCallback(yarp::os::InputStream::readEnvelopeCallbackType callback, void *data)
Definition: MjpegDecompression.cpp:223
InputStream.h