VideoTools
|
A read interface for libjpeg. More...
#include <grjpeg.h>
Public Types | |
typedef Jpeg::Error | Error |
Public Member Functions | |
JpegReader (int scale=1, bool monochrome_out=false) | |
Constructor. | |
~JpegReader () | |
Destructor. | |
void | setup (int scale, bool monochrome_out=false) |
Sets the decoding scale factor. More... | |
void | decode (ImageData &out, const G::Path &in) |
Decodes a jpeg file into an image. Throws on error. | |
void | decode (ImageData &out, const char *p_in, size_t n) |
Decodes a jpeg buffer into an image. Throws on error. | |
void | decode (ImageData &out, const unsigned char *p_in, size_t n) |
Decodes a jpeg buffer into an image. Throws on error. | |
void | decode (ImageData &out, const ImageBuffer &) |
Decodes a jpeg buffer into an image. Throws on error. | |
void Gr::JpegReader::setup | ( | int | scale, |
bool | monochrome_out = false |
||
) |
Sets the decoding scale factor.
In practice scale factors of 1, 2, 4 and 8 are supported directly by the jpeg library, and others scale factors are applied only after decoding are full scale.
Definition at line 535 of file grjpeg_jpeg.cpp.