6#ifndef YARP_LAYERED_IMAGE_H
7#define YARP_LAYERED_IMAGE_H
39 value = *
reinterpret_cast<int*
>(&v);
43 return *
reinterpret_cast<yarp::sig::PixelRgb*
>(&value);
59 bool can_be_compressed =
true;
69 can_be_compressed = compress;
85 std::vector<yarp::sig::ImageLayer>
layers;
bool operator==(const struct v4l2_control &left, const struct v4l2_control &right)
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
static Type byName(const char *name)
Image class with user control of representation details.
yarp::sig::PixelRgb getValueAsPixelRgb()
void setValueAsPixelRgb(yarp::sig::PixelRgb v)
A single layer of a layered image.
ImageLayer(const yarp::sig::FlexImage &img, bool ena=true, colorkey_s ckey=colorkey_s(), alpha_s alph=alpha_s(), bool compress=true, int off_x=0, int off_y=0)
yarp::sig::FlexImage layer
A Layered Image, composed by a background and multiple layers.
LayeredImage & operator=(LayeredImage &&other) noexcept
Move assignment operator.
yarp::os::Type getReadType() const override
yarp::sig::FlexImage background
std::vector< yarp::sig::ImageLayer > layers
The main, catch-all namespace for YARP.