MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
TIFFImageWriter.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 TIFFIMAGEWRITER_H
9#define TIFFIMAGEWRITER_H
10
11// lt_lib_mrsid_core
13
14struct tiff;
15
16
17LT_BEGIN_LIZARDTECH_NAMESPACE
18
19class LTReusableBuffer;
20
27{
28 LT_DISALLOW_COPY_CONSTRUCTOR(TIFFImageWriter);
29public:
37 TIFFImageWriter(bool writeGeoTIFF = false);
38
41
47 void setAllowWritingBigTIFF(bool allowBigTIFF);
53 void setForceWritingBigTIFF(bool forceBigTIFF);
54
56 LT_STATUS writeStrip(LTISceneBuffer& stripBuffer, const LTIScene& stripScene);
58
59
60 void setEndian(LTIEndian value);
61 void setCompression(lt_int32 compression) { m_compression = compression; }
62 void setJpegQuality(lt_int32 quality) { m_jpegquality= quality; }
63
64private:
65 LT_STATUS copyMetadataBlob(const char *type, lt_uint32 tag);
66 static LT_STATUS getLibtiffError(void);
67
68 struct tiff *m_tiff;
69 LTIEndian m_endian;
70
71 bool m_writeGeoTIFF;
72 bool m_allowBigTIFF;
73 bool m_forceBigTIFF;
74
75 long m_currentRow;
76 lt_int32 m_compression;
77 lt_int32 m_jpegquality;
78 LTReusableBuffer* m_stripBuffer;
79};
80
81
82LT_END_LIZARDTECH_NAMESPACE
83
84#endif // TIFFIMAGEWRITER_H
LTIEndian
constants representing endianness (byte order)
Definition: lti_types.h:160
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:42
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
writes an image stage to a TIFF file
void setEndian(LTIEndian value)
LT_STATUS writeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
encode one strip of the scene
void setCompression(lt_int32 compression)
void setJpegQuality(lt_int32 quality)
LT_STATUS writeBegin(const LTIScene &scene)
begin an encode (write) operation
LT_STATUS writeEnd()
complete an encode (write) operation
LT_STATUS initialize(LTIImageStage *image)
void setForceWritingBigTIFF(bool forceBigTIFF)
Write a BigTIFF.
TIFFImageWriter(bool writeGeoTIFF=false)
constructor
virtual ~TIFFImageWriter()
void setAllowWritingBigTIFF(bool allowBigTIFF)
Write a BigTIFF if the the scene may produce a file greater than 4GB.

Extensis