Class drift::img::RgbJpegCodec¶
ClassList > drift > img > RgbJpegCodec
#include <jpeg_codecs.h>
Inherits the following classes: drift::img::IImageCodec
Public Functions¶
Type | Name |
---|---|
virtual bool | Decode (const std::string & blob, SignalN2D * image, size_t start_channel=0) override const |
virtual bool | Encode (const SignalN2D & image, std::string * blob, size_t start_channel=0) override const |
RgbJpegCodec () |
|
RgbJpegCodec (DataType quality) |
|
virtual size_t | channel_number () override const |
virtual bool | checkChannelsShape (const SignalN2D & image, size_t start_channel) override const |
Public Functions inherited from drift::img::IImageCodec¶
Type | Name |
---|---|
virtual bool | Decode (const std::string & blob, SignalN2D * image, size_t start_channel=0) const = 0 |
virtual bool | Encode (const SignalN2D & image, std::string * blob, size_t start_channel=0) const = 0 |
virtual size_t | channel_number () const = 0 |
virtual bool | checkChannelsShape (const SignalN2D & image, size_t start_channel) const = 0 |
virtual | ~IImageCodec () = default |
Detailed Description¶
Class to read and write JPEGs by using RGB color scheme
Public Functions Documentation¶
function Decode¶
virtual bool drift::img::RgbJpegCodec::Decode (
const std::string & blob,
SignalN2D * image,
size_t start_channel=0
) override const
Decodes a picture from a string to blaze matrices
Parameters:
blob
the string with the picture in some image formatimage
a pointer to decoded blaze imagestart_channel
Returns:
false if there is an error
Implements drift::img::IImageCodec::Decode
function Encode¶
virtual bool drift::img::RgbJpegCodec::Encode (
const SignalN2D & image,
std::string * blob,
size_t start_channel=0
) override const
Encodes a blaze image to string in some image format
Parameters:
image
the blaze image to encodedblob
an encoded stringstart_channel
Returns:
false if there is an error
Implements drift::img::IImageCodec::Encode
function RgbJpegCodec [1/2]¶
drift::img::RgbJpegCodec::RgbJpegCodec ()
function RgbJpegCodec [2/2]¶
explicit drift::img::RgbJpegCodec::RgbJpegCodec (
DataType quality
)
function channel_number¶
inline virtual size_t drift::img::RgbJpegCodec::channel_number () override const
Implements drift::img::IImageCodec::channel_number
function checkChannelsShape¶
virtual bool drift::img::RgbJpegCodec::checkChannelsShape (
const SignalN2D & image,
size_t start_channel
) override const
Implements drift::img::IImageCodec::checkChannelsShape
The documentation for this class was generated from the following file wavelet_buffer/img/jpeg_codecs.h