Class drift::img::HslJpegCodec¶
ClassList > drift > img > HslJpegCodec
#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 |
HslJpegCodec () |
|
HslJpegCodec (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 HSL color scheme
Public Functions Documentation¶
function Decode¶
virtual bool drift::img::HslJpegCodec::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::HslJpegCodec::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 HslJpegCodec [1/2]¶
drift::img::HslJpegCodec::HslJpegCodec ()
function HslJpegCodec [2/2]¶
explicit drift::img::HslJpegCodec::HslJpegCodec (
DataType quality
)
function channel_number¶
inline virtual size_t drift::img::HslJpegCodec::channel_number () override const
Implements drift::img::IImageCodec::channel_number
function checkChannelsShape¶
virtual bool drift::img::HslJpegCodec::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