public interface ICompressionEncoder
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(int codecIndex,
int nRows,
int nCols,
int[] values)
Encodes the specified tile data in a compressed form.
|
byte[] |
encodeFloats(int codecIndex,
int nRows,
int nCols,
float[] values)
Encodes the specified tile data in a compressed form.
|
boolean |
implementsFloatingPointEncoding()
Indicates whether the implementation can encode floating-point values
|
boolean |
implementsIntegerEncoding()
Indicates whether the implementation can encode integral data types
|
byte[] encode(int codecIndex, int nRows, int nCols, int[] values)
codecIndex
- the index assigned by the application to
associate a codec with an entry in the raster file.nRows
- a value of 1 or greater giving the number of rows in the
tilenCols
- a value of 1 or greater giving the number of columns in the
tilevalues
- the values of the tile in row-major orderbyte[] encodeFloats(int codecIndex, int nRows, int nCols, float[] values)
codecIndex
- the index assigned by the application to
associate a codec with an entry in the raster file.nRows
- a value of 1 or greater giving the number of rows in the
tilenCols
- a value of 1 or greater giving the number of columns in the
tilevalues
- the values of the tile in row-major orderboolean implementsFloatingPointEncoding()
boolean implementsIntegerEncoding()
Copyright © 2022. All rights reserved.