Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PLJPEGDecoder Class Reference

JPEG file decoder. More...

#include <pljpegdec.h>

Inheritance diagram for PLJPEGDecoder:

Inheritance graph
[legend]
Collaboration diagram for PLJPEGDecoder:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

JPEG file decoder.

Uses the independent JPEG group's library to do the actual conversion.

Definition at line 27 of file pljpegdec.h.


Constructor & Destructor Documentation

PLJPEGDecoder::PLJPEGDecoder  ) 
 

Creates a decoder.

Definition at line 47 of file pljpegdec.cpp.

PLJPEGDecoder::~PLJPEGDecoder  ) 
 

Destroys a decoder.

Definition at line 60 of file pljpegdec.cpp.


Member Function Documentation

void PLJPEGDecoder::decodeGray PLBmp pBmp,
int  w,
int  h
[private]
 

Definition at line 182 of file pljpegdec.cpp.

References PLBYTE.

void PLJPEGDecoder::decodeRGB PLBmp pBmp,
int  w,
int  h
[private]
 

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:

void PLJPEGDecoder::DoDecode PLBmp pBmp,
PLDataSource pDataSrc
[protected, virtual]
 

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:

void PLJPEGDecoder::JNotification j_common_ptr  cinfo  )  [static]
 

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:

void PLJPEGDecoder::SetFast bool  bFast  ) 
 

true (the default) selects fast but sloppy decoding.

Definition at line 66 of file pljpegdec.cpp.


Member Data Documentation

jpeg_decompress_struct PLJPEGDecoder::cinfo [private]
 

Definition at line 83 of file pljpegdec.h.

jpeg_error_mgr PLJPEGDecoder::jerr [private]
 

Definition at line 84 of file pljpegdec.h.

bool PLJPEGDecoder::m_bFast [private]
 

Definition at line 86 of file pljpegdec.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:00 2004 for vuVolume by  doxygen 1.3.9.1