YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
10#include <yarp/os/InputStream.h>
11#include <yarp/sig/Image.h>
12
13
15{
16private:
17 void *system_resource;
18public:
20
21 virtual ~MjpegDecompression();
22
23 bool decompress(const yarp::os::Bytes& data,
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:24
void(* readEnvelopeCallbackType)(void *, const yarp::os::Bytes &envelope)
Callback type for setting the envelope from a message in carriers that cannot be escaped.
Image class with user control of representation details.
Definition Image.h:363