#include <pljpegenc.h>
Inheritance diagram for PLJPEGEncoder:
Public Member Functions | |
PLJPEGEncoder () | |
Creates an encoder. | |
~PLJPEGEncoder () | |
Destroys a encoder. | |
void | SetQuality (int iQuality) |
Set the compression quality on a scale from 0 to 100. | |
void | SetOptimizeCoding (bool bOptimizeCoding) |
Enable or disable the generation of optimal Huffmann coding tables. | |
void | SetSmoothingFactor (int iSmoothingFactor) |
Set the smoothing factor (<=100). 0 turns it off. | |
void | SetDensity (unsigned int uiX, unsigned int uiY) |
Set the resolution information (DPI) for the image. | |
Protected Member Functions | |
void | DoEncode (PLBmp *pBmp, PLDataSink *pDataSink) |
Implements the actual encoding process. | |
Private Member Functions | |
void | encodeRGB (PLBmp *pBmp, int iScanLines) |
Private Attributes | |
jpeg_compress_struct * | m_pcinfo |
jpeg_error_mgr * | m_pjerr |
int | iQuality_ |
bool | bOptimizeCoding_ |
int | iSmoothingFactor_ |
unsigned int | uiDensityX_ |
unsigned int | uiDensityY_ |
Uses the independent JPEG group's library to do the actual conversion.
Definition at line 23 of file pljpegenc.h.
|
Creates an encoder.
Definition at line 52 of file pljpegenc.cpp. |
|
Destroys a encoder.
Definition at line 71 of file pljpegenc.cpp. |
|
Implements the actual encoding process. Uses variables local to the object to retrieve and store the data. Implemented in derived classes. Implements PLPicEncoder. Definition at line 79 of file pljpegenc.cpp. References jpeg_mem_dest(), and PLASSERT. |
Here is the call graph for this function:
|
Definition at line 140 of file pljpegenc.cpp. References PLPixel32::GetB(), PLPixel32::GetG(), PLPixel32::GetR(), and PLBYTE. |
Here is the call graph for this function:
|
Set the resolution information (DPI) for the image.
Definition at line 205 of file pljpegenc.cpp. References uiDensityX_, and uiDensityY_. |
|
Enable or disable the generation of optimal Huffmann coding tables.
Definition at line 195 of file pljpegenc.cpp. References bOptimizeCoding_. |
|
Set the compression quality on a scale from 0 to 100.
Definition at line 190 of file pljpegenc.cpp. References iQuality_. |
|
Set the smoothing factor (<=100). 0 turns it off.
Definition at line 200 of file pljpegenc.cpp. References iSmoothingFactor_. |
|
Definition at line 64 of file pljpegenc.h. Referenced by SetOptimizeCoding(). |
|
Definition at line 63 of file pljpegenc.h. Referenced by SetQuality(). |
|
Definition at line 65 of file pljpegenc.h. Referenced by SetSmoothingFactor(). |
|
Definition at line 60 of file pljpegenc.h. |
|
Definition at line 61 of file pljpegenc.h. |
|
Definition at line 66 of file pljpegenc.h. Referenced by SetDensity(). |
|
Definition at line 67 of file pljpegenc.h. Referenced by SetDensity(). |