MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
JpegImageWriter.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef JPEGIMAGEWRITER_H
9 #define JPEGIMAGEWRITER_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_geoFileImageWriter.h"
13 
14 LT_BEGIN_LIZARDTECH_NAMESPACE
15 
23 {
24  LT_DISALLOW_COPY_CONSTRUCTOR(JpegImageWriter);
25 public:
27  virtual ~JpegImageWriter(void);
40  lt_int32 quality = 0, // 0-100
41  lt_int32 smoothing = 0); // 0-100
42 
43  LT_STATUS writeBegin(const LTIScene& scene);
44  LT_STATUS writeStrip(LTISceneBuffer& stripBuffer, const LTIScene& stripScene);
46 
47 private:
48  struct ErrorManager;
49  struct StreamManager;
50 
51  LT_STATUS writeBegin8(const LTIScene& scene);
52  LT_STATUS writeStrip8(LTISceneBuffer& stripBuffer, const LTIScene& stripScene);
53  LT_STATUS writeEnd8();
54 
55  LT_STATUS writeBegin12(const LTIScene& scene);
56  LT_STATUS writeStrip12(LTISceneBuffer& stripBuffer, const LTIScene& stripScene);
57  LT_STATUS writeEnd12();
58 
59  //two parameters for setting compression quality
60  lt_int32 m_quality;
61  lt_int32 m_smoothingFactor;
62 
63  void *m_jpeg;
64  ErrorManager *m_error;
65  bool m_use8;
66 };
67 
68 
69 LT_END_LIZARDTECH_NAMESPACE
70 
71 #endif // JPEGIMAGEWRITER_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:42
writes an image stage to a JPEG file
LT_STATUS writeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
encode one strip of the scene
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
virtual ~JpegImageWriter(void)
LT_STATUS writeEnd()
complete an encode (write) operation
class for writing geographic images to files or streams
abstract class for decoding from an image
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis