11#ifndef __BE_IMAGE_JPEG__
12#define __BE_IMAGE_JPEG__
21#if JPEG_LIB_VERSION <= 90
22 #if JPEG_LIB_VERSION == 90
23 #if JPEG_LIB_VERSION_MINOR < 2
41 struct jpeg_decompress_struct;
42 struct jpeg_common_struct;
61 const std::string &identifier =
"",
67 const std::string &identifier =
"",
100 const unsigned short marker,
101 unsigned char **cbufptr,
102 unsigned char *ebufptr);
165#if JPEG_LIB_VERSION < 80
182 fill_input_buffer_mem(
struct jpeg_decompress_struct * j_decompress_ptr
struct jpeg_common_struct * j_common_ptr
Type
Type of status received.
Represent attributes common to all images.
static void defaultStatusCallback(const Framework::Status &status)
Default handling of statuses sent from image processing libraries.
std::function< void(const Framework::Status)> statusCallback_t
JPEG(const uint8_t *data, const uint64_t size, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
Memory::uint8Array getRawData() const
Accessor for the raw image data.
static bool isJPEG(const uint8_t *data, uint64_t size)
Whether or not data is a Lossy JPEG image.
JPEG(const Memory::uint8Array &data, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
Memory::uint8Array getRawGrayscaleData(uint8_t depth) const
Accessor for decompressed data in grayscale.
static int getc_skip_marker_segment(const unsigned short marker, unsigned char **cbufptr, unsigned char *ebufptr)
This software was developed at the National Institute of Standards and Technology (NIST) by employees...