#include <pljpegdec.h>
Inheritance diagram for PLJPEGDecoder:
Public Member Functions | |
PLJPEGDecoder () | |
Creates a decoder. | |
~PLJPEGDecoder () | |
Destroys a decoder. | |
void | SetFast (bool bFast) |
true (the default) selects fast but sloppy decoding. | |
Static Public Member Functions | |
void | JNotification (j_common_ptr cinfo) |
callback for jpeglib's progress notification | |
Protected Member Functions | |
void | DoDecode (PLBmp *pBmp, PLDataSource *pDataSrc) |
Sets up the jpeg library data source and error handler and calls the jpeg decoder. | |
Private Member Functions | |
void | decodeGray (PLBmp *pBmp, int w, int h) |
void | decodeRGB (PLBmp *pBmp, int w, int h) |
Private Attributes | |
jpeg_decompress_struct | cinfo |
jpeg_error_mgr | jerr |
bool | m_bFast |
Uses the independent JPEG group's library to do the actual conversion.
Definition at line 27 of file pljpegdec.h.
|
Creates a decoder.
Definition at line 47 of file pljpegdec.cpp. |
|
Destroys a decoder.
Definition at line 60 of file pljpegdec.cpp. |
|
Definition at line 182 of file pljpegdec.cpp. References PLBYTE. |
|
Definition at line 132 of file pljpegdec.cpp. References min, PLBYTE, PLPixel32::SetB(), PLPixel32::SetG(), and PLPixel32::SetR(). |
Here is the call graph for this function:
|
Sets up the jpeg library data source and error handler and calls the jpeg decoder.
Reimplemented from PLPicDecoder. Definition at line 75 of file pljpegdec.cpp. References jpeg_mem_src(), PLPoint::x, and PLPoint::y. |
Here is the call graph for this function:
|
callback for jpeglib's progress notification
Definition at line 226 of file pljpegdec.cpp. References PLDataSource::OProgressNotification(). |
Here is the call graph for this function:
|
true (the default) selects fast but sloppy decoding.
Definition at line 66 of file pljpegdec.cpp. |
|
Definition at line 83 of file pljpegdec.h. |
|
Definition at line 84 of file pljpegdec.h. |
|
Definition at line 86 of file pljpegdec.h. |