Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
JP2Encoder.h
Go to the documentation of this file.
1#ifndef JP2Encoder_h
2#define JP2Encoder_h
7
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <string>
11
12#include "gdal_priv.h"
13
14#include "PixelType.h"
15
16namespace Isis {
17
37 class JP2Encoder {
38 public:
39 JP2Encoder(const QString &jp2file, const unsigned int nsamps,
40 const unsigned int nlines, const unsigned int nbands,
41 const Isis::PixelType type);
43
44 // Open and initialize the JP2 file for writing
45 void OpenFile();
46
47 // Write byte data to the JP2 file
48 void Write(unsigned char **inbuf);
49
50 // Write 16-bit data to the JP2 file
51 void Write(short int **inbuf);
52
53 private:
54 QString p_jp2File;
55 QString p_tmpFile;
56 unsigned int p_numSamples = 0;
57 unsigned int p_numLines = 0;
58 unsigned int p_numBands = 0;
59 unsigned int p_pixelBytes = 0;
60 bool p_signedData = false;
61 GDALDataType p_gdalType = GDT_Byte;
62
63 GDALDataset *p_dataset = nullptr;
64 int p_currentLine = 0;
65 };
66};
67#endif
~JP2Encoder()
JP2Encoder destructor.
Definition JP2Encoder.cpp:152
void OpenFile()
Open the JPEG2000 file and initialize it.
Definition JP2Encoder.cpp:73
JP2Encoder(const QString &jp2file, const unsigned int nsamps, const unsigned int nlines, const unsigned int nbands, const Isis::PixelType type)
Constructs a JPEG2000 encoder object.
Definition JP2Encoder.cpp:32
void Write(unsigned char **inbuf)
Write 8-bit data to JP2 file.
Definition JP2Encoder.cpp:103
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16