MrSID Decode SDK for Raster Reference Manual
9.5.1.4427
|
writes an image stage to a JPEG file More...
#include <JpegImageWriter.h>
Public Member Functions | |
JpegImageWriter (void) | |
virtual | ~JpegImageWriter (void) |
LT_STATUS | initialize (LTIImageStage *imageStage, lt_int32 quality=0, lt_int32 smoothing=0) |
initialize | |
LT_STATUS | writeBegin (const LTIScene &scene) |
begin an encode (write) operation | |
LT_STATUS | writeStrip (LTISceneBuffer &stripBuffer, const LTIScene &stripScene) |
encode one strip of the scene | |
LT_STATUS | writeEnd () |
complete an encode (write) operation |
This class writes an image stage to a JPEG file.
Definition at line 31 of file JpegImageWriter.h.
JpegImageWriter::JpegImageWriter | ( | void | ) |
virtual JpegImageWriter::~JpegImageWriter | ( | void | ) | [virtual] |
LT_STATUS JpegImageWriter::initialize | ( | LTIImageStage * | imageStage, |
lt_int32 | quality = 0 , |
||
lt_int32 | smoothing = 0 |
||
) |
Initialize a writer for JPEG images.
imageStage | the image to write from |
quality | sets the JPEG "quality" encoding parameter; this is a value between 0 and 100 |
smoothing | sets the JPEG "smoothing" encoding parameter; this is a value between 0 and 100 |
LT_STATUS JpegImageWriter::writeBegin | ( | const LTIScene & | scene | ) | [virtual] |
This function implements the logic for beginning the encoding of the given scene.
The scene must be a valid scene for the underlying image pipeline.
This function is called by write(). Derived classes must implement this function.
scene | the scene to decode and output |
Reimplemented from LTIGeoFileImageWriter.
LT_STATUS JpegImageWriter::writeEnd | ( | ) | [virtual] |
This function implements the logic for completing the encoding of the given scene.
This function is called by write(). Derived classes must implement this function.
Reimplemented from LTIGeoFileImageWriter.
LT_STATUS JpegImageWriter::writeStrip | ( | LTISceneBuffer & | stripBuffer, |
const LTIScene & | stripScene | ||
) | [virtual] |
This function implements the logic for actually encoding a given strip of the given scene.
This function is called by write(). Derived classes must implement this function.
stripBuffer | the pixels for the current strip |
stripScene | the scene representing the strip being written |
Implements LTIGeoFileImageWriter.