#include <pltiffenc.h>
Inheritance diagram for PLTIFFEncoder:
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 |
Definition at line 21 of file pltiffenc.h.
|
Creates an encoder.
Definition at line 30 of file pltiffenc.cpp. References m_Compression. |
|
Destroys a encoder.
Definition at line 38 of file pltiffenc.cpp. |
|
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:
|
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:
|
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:
|
Definition at line 41 of file pltiffenc.cpp. References m_Compression, and PLWORD. |
|
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(). |
|
Definition at line 58 of file pltiffenc.h. Referenced by PLTIFFEncoder(), and SetCompression(). |