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

PLTIFFEncoder Class Reference

TIFF file encoder. Uses LIBTIFF to do the actual conversion. More...

#include <pltiffenc.h>

Inheritance diagram for PLTIFFEncoder:

Inheritance graph
[legend]
Collaboration diagram for PLTIFFEncoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLTIFFEncoder ()
 Creates an encoder.
virtual ~PLTIFFEncoder ()
 Destroys a encoder.
void SetCompression (PLWORD Compression)

Protected Member Functions

virtual void DoEncode (PLBmp *pBmp, PLDataSink *pDataSnk)
 Sets up LIBTIFF environment and calls LIBTIFF to encode an image.
virtual void DoTiffEncode (PLBmp *pBmp, TIFF *tif)
 this one mostly useful for the "extended" decoder
int SetBaseTags (TIFF *, PLBmp *)
 According to the characteristics of the given bitmap, set the baseline tags.
int SetField (TIFF *, int tag_id,...)
 Set tag value in directory; also, "pseudo-tags" are interpreted by LIBTIFF as modifiers to certain algorithms (compression....).

Private Attributes

PLWORD m_Compression

Detailed Description

TIFF file encoder. Uses LIBTIFF to do the actual conversion.

Definition at line 21 of file pltiffenc.h.


Constructor & Destructor Documentation

PLTIFFEncoder::PLTIFFEncoder  ) 
 

Creates an encoder.

Definition at line 30 of file pltiffenc.cpp.

References m_Compression.

PLTIFFEncoder::~PLTIFFEncoder  )  [virtual]
 

Destroys a encoder.

Definition at line 38 of file pltiffenc.cpp.


Member Function Documentation

void PLTIFFEncoder::DoEncode PLBmp pBmp,
PLDataSink pDataSnk
[protected, virtual]
 

Sets up LIBTIFF environment and calls LIBTIFF to encode an image.

Implements PLPicEncoder.

Reimplemented in PLTIFFEncoderEx.

Definition at line 47 of file pltiffenc.cpp.

References DoTiffEncode(), PLDataSink::m_nCurPos, PLDataSink::m_nMaxFileSize, PLDataSink::m_pStartData, PLASSERT, SetBaseTags(), TIFF, and TIFFOpenMem().

Here is the call graph for this function:

void PLTIFFEncoder::DoTiffEncode PLBmp pBmp,
TIFF tif
[protected, virtual]
 

this one mostly useful for the "extended" decoder

Definition at line 67 of file pltiffenc.cpp.

References PLPixel32::GetB(), PLBmp::GetBitsPerPixel(), PLPixel32::GetG(), PLBmp::GetHeight(), PLBmp::GetLineArray(), PLBmp::GetNumColors(), PLBmp::GetPalette(), PLPixel32::GetR(), PLBmp::GetWidth(), PLASSERT, PLBYTE, and SetField().

Referenced by PLTIFFEncoderEx::DoEncode(), and DoEncode().

Here is the call graph for this function:

int PLTIFFEncoder::SetBaseTags TIFF ,
PLBmp
[protected]
 

According to the characteristics of the given bitmap, set the baseline tags.

Definition at line 131 of file pltiffenc.cpp.

References PL_RGBA_BLUE, PL_RGBA_GREEN, PL_RGBA_RED, PLASSERT, PLBYTE, and SetField().

Referenced by DoEncode(), and PLTIFFEncoderEx::SetBaseTags().

Here is the call graph for this function:

void PLTIFFEncoder::SetCompression PLWORD  Compression  ) 
 

Definition at line 41 of file pltiffenc.cpp.

References m_Compression, and PLWORD.

int PLTIFFEncoder::SetField TIFF ,
int  tag_id,
  ...
[protected]
 

Set tag value in directory; also, "pseudo-tags" are interpreted by LIBTIFF as modifiers to certain algorithms (compression....).

We do _not_ support multiple images by file, nor tiling nor stripping.

Definition at line 213 of file pltiffenc.cpp.

Referenced by DoTiffEncode(), and SetBaseTags().


Member Data Documentation

PLWORD PLTIFFEncoder::m_Compression [private]
 

Definition at line 58 of file pltiffenc.h.

Referenced by PLTIFFEncoder(), and SetCompression().


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