Class HCompress
java.lang.Object
nom.tam.fits.compression.algorithm.hcompress.HCompress
The original compression code was written by Richard White at the STScI and
included (ported to c and adapted) in cfitsio by William Pence, NASA/GSFC.
That code was then ported to java by R. van Nieuwenhoven. Later it was
massively refactored to harmonize the different compression algorithms and
reduce the duplicate code pieces without obscuring the algorithm itself as
far as possible. The original site for the algorithm is
- Author:
- Richard White, William Pence, Richard van Nieuwenhoven
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected static final int
protected static final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
compress
(long[] aa, int ny, int nx, int scale, ByteBuffer output)
-
Field Details
-
ROUNDING_HALF
protected static final double ROUNDING_HALF- See Also:
-
BITS_OF_1_BYTE
protected static final int BITS_OF_1_BYTE- See Also:
-
BITS_OF_1_NYBBLE
protected static final int BITS_OF_1_NYBBLE- See Also:
-
BYTE_MASK
protected static final int BYTE_MASK- See Also:
-
NYBBLE_MASK
protected static final int NYBBLE_MASK- See Also:
-
-
Constructor Details
-
HCompress
public HCompress()
-
-
Method Details
-
compress
-