11 #ifndef ossimKakaduCompressor_HEADER 12 #define ossimKakaduCompressor_HEADER 1 21 #include <kdu_compressed.h> 22 #include <kdu_elementary.h> 23 #include <kdu_sample_processing.h> 24 #include <kdu_stripe_compressor.h> 189 void setOptions(
const std::vector<ossimString>& options);
195 void getOptions(std::vector<ossimString>& options)
const;
285 void setLevels(kdu_core::kdu_params* cod,
void setQualityLayers(kdu_core::kdu_params *cod, ossim_int32 layers)
Sets the number of quality layers.
virtual void create(ossim::ostream *os, ossimScalarType scalar, ossim_uint32 bands, const ossimIrect &imageRect, const ossimIpt &tileSize, ossim_uint32 tilesToWrite, bool jp2)
Create method.
bool m_reversible
Lossless or lossy.
void setReversibleFlag(bool reversible)
Sets the m_reversible flag.
int getNumberOfLayers() const
virtual void setLevels(ossim_int32 levels)
Sets the number of levels.
ossim_int32 getLevels() const
Represents serializable keyword/value map.
ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
void initialize(ossimNitfJ2klraTag *j2klraTag, ossim_uint32 actualBitsPerPixel) const
Initializes the tag.
bool writeGmlBox(const ossimImageGeometry *geom, const ossimIrect &rect)
Writes the GML box to the jp2.
virtual void finish()
Finish method.
void setQualityTypeString(const ossimString &s)
virtual ossimString getLongName() const
std::vector< ossimString > m_options
Container for kakadu options to pass to kdu_params::parse_string.
virtual ~ossimKakaduCompressor()
destructor
bool m_alpha
If true write alpha channel.
bool getReversibleFlag() const
void getPropertyNames(std::vector< ossimString > &propertyNames) const
Pushes this's names onto the list of property names.
std::vector< kdu_core::kdu_long > m_layerByteSizes
Layer sizes provided in 'flush' calls.
virtual ossimString getClassName() const
ossimRefPtr< ossimImageData > m_normTile
tile to use for normalized float data.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saves the state of the object.
void setProgressionOrder(kdu_core::kdu_params *cod, ossim_int32 corder)
Sets progression order.
void setWaveletKernel(kdu_core::kdu_params *cod, ossim_int32 kernel)
Sets the wavelet kernel to use.
void setThreads(ossim_int32 threads)
Sets the number of threads.
ossimKakaduCompressor()
default constructor
kdu_supp::jp2_target * m_jp2Target
void getOptions(std::vector< ossimString > &options) const
Get the array of options.
kdu_core::kdu_thread_env * m_threadEnv
unsigned int ossim_uint32
ossimKakaduCompressionQuality
ossim_int32 m_levels
Reduced resolution levels.
void openJp2Codestream()
Calls "open_codestream" on the m_jp2Target.
bool getAlphaChannelFlag() const
Retrieve the writer's setting for whether or not to add an alpha channel to the output png image...
void printCompressionQualityTypes(std::ostream &out) const
ossimKakaduCompressionQuality getQualityType() const
virtual void setAlphaChannelFlag(bool flag)
Set the writer to add an alpha channel to the output.
virtual void setQualityType(ossimKakaduCompressionQuality type)
Sets the quality type.
ossimIrect m_imageRect
Layer slopes array provided in 'flush' calls.
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
bool writeGeotiffBox(const ossimImageGeometry *geom, const ossimIrect &rect, const ossimFilename &tmpFile, ossimPixelType pixelType)
Writes the geotiff box to the jp2.
ossimString getQualityTypeString() const
virtual bool setProperty(ossimRefPtr< ossimProperty > property)
Will set the property whose name matches the argument "property->getName()".
virtual bool writeTile(ossimImageData &srcTile)
Write tile method.
ossim_int32 getThreads() const
void initializeCodingParams(kdu_core::kdu_params *cod, const ossimIrect &imageRect)
ossimKakaduCompressedTarget * m_target
ossimKakaduCompressionQuality m_qualityType
int m_layerSpecCount
Num specs provided in 'flush' calls.
ossimKakaduCompressedTarget JPEG2000 (J2K) kdu_compressed_target that uses an ostream for writing to ...
kdu_supp::jp2_family_tgt * m_jp2FamTgt
kdu_core::kdu_thread_queue * m_threadQueue
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
kdu_core::kdu_codestream m_codestream
void setTlmTileCount(ossim_uint32 tilesToWrite)
void setOptions(const std::vector< ossimString > &options)
Sets the options array.
ossim_int32 m_threads
Number of threads.
void setCodeBlockSize(kdu_core::kdu_params *cod, ossim_int32 xSize, ossim_int32 ySize)
Set code block size.
std::basic_ostream< char > ostream
Base class for char output streams.