Isis Developer Reference
JP2Exporter.h
Go to the documentation of this file.
1#ifndef JP2Exporter_h
2#define JP2Exporter_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10
11#include "StreamExporter.h"
12
13namespace Isis {
14 class JP2Encoder;
15
34 class JP2Exporter : public StreamExporter {
35 public:
37 virtual ~JP2Exporter();
38
39 virtual void write(FileName outputName, int quality=100,
40 QString compression="none", UserInterface *ui = nullptr);
41
42 static bool canWriteFormat(QString format);
43
44 protected:
45 virtual void createBuffer();
46
47 virtual void setBuffer(int s, int b, int dn) const;
48 virtual void writeLine(int l) const;
49
50 private:
52 JP2Encoder *m_encoder;
53
55 char **m_buffer;
56 };
57};
58
59
60#endif
File name manipulation and expansion.
Definition FileName.h:100
JPEG2000 encoder class.
Definition JP2Encoder.h:67
Exports cubes into JPEG 2000 images.
Definition JP2Exporter.h:34
static bool canWriteFormat(QString format)
Returns true if the format is "jp2".
Definition JP2Exporter.cpp:127
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
Definition JP2Exporter.cpp:111
virtual void write(FileName outputName, int quality=100, QString compression="none", UserInterface *ui=nullptr)
Initialize the encoder, open the output file for writing, then let the base ImageExporter handle the ...
Definition JP2Exporter.cpp:65
virtual ~JP2Exporter()
Destruct the exporter.
Definition JP2Exporter.cpp:34
virtual void setBuffer(int s, int b, int dn) const
Set the DN value at the given sample and band of the line buffer.
Definition JP2Exporter.cpp:86
JP2Exporter()
Construct the JPEG 2000 exporter.
Definition JP2Exporter.cpp:23
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
Definition JP2Exporter.cpp:47
Exports cubes into a standard format in incremental pieces.
Definition StreamExporter.h:34
Command Line and Xml loader, validation, and access.
Definition UserInterface.h:139
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16