public interface ICompressionDecoder
Modifier and Type | Method and Description |
---|---|
void |
analyze(int nRows,
int nColumns,
byte[] packing)
Analyzes the content of the packing to collect statistics on the
compression.
|
void |
clearAnalysisData()
Clears all accumulated analysis data.
|
int[] |
decode(int nRows,
int nColumns,
byte[] packing)
Decodes the content of the packing and populates an
integer array to store the data.
|
float[] |
decodeFloats(int nRows,
int nColumns,
byte[] packing)
Decodes the content of the packing and populates an
integer array to store the data.
|
void |
reportAnalysisData(PrintStream ps,
int nTilesInRaster)
Prints analysis results (if any) to specified print stream
|
int[] decode(int nRows, int nColumns, byte[] packing) throws IOException
nRows
- a value of 1 or greater giving the number of rows in the
tilenColumns
- a value of 1 or greater giving the number of columns in
thepacking
- an array of bytes containing the encoded data to be
decompressedIOException
- in the event of an incompatible packingvoid analyze(int nRows, int nColumns, byte[] packing) throws IOException
This method is intended to be used when assessing the results of data compression. It may be used for a single tile or for a collection of multiple tiles. When used for multiple tiles, the results are assumed to be cumulative. Thus an implementation is expected to maintain statistics as state data (class member data).
nRows
- the number of rows in the tile to be analyzed.nColumns
- the number of columns in the tile to be analyzed.packing
- a valid packing for the associated codec implementationIOException
- in the event of an incompatible packingvoid reportAnalysisData(PrintStream ps, int nTilesInRaster)
ps
- a valid print stream.nTilesInRaster
- the number of tiles in the rastervoid clearAnalysisData()
float[] decodeFloats(int nRows, int nColumns, byte[] packing) throws IOException
nRows
- a value of 1 or greater giving the number of rows in the
tilenColumns
- a value of 1 or greater giving the number of columns in
thepacking
- an array of bytes containing the encoded data to be
decompressedIOException
- in the event of an incompatible packingCopyright © 2022. All rights reserved.