Class RiceCompressOption
java.lang.Object
nom.tam.fits.compression.algorithm.rice.RiceCompressOption
- All Implemented Interfaces:
Cloneable, ICompressOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Integerstatic final intstatic final intprivate RiceCompressOptionprivate ICompressParametersthis is a circular dependency that still has to be cut. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()intintbooleansetBlockSize(int value) setBytePix(int value) protected RiceCompressOptionsetDefaultBytePix(int defaultBytePix) private RiceCompressOptionsetOriginal(RiceCompressOption riceCompressOption) voidsetParameters(ICompressParameters parameters) set the parameters that must be synchronized with the hdu meta data.setTileHeight(int value) set the tile height in pixel.setTileWidth(int value) set the tile width.<T> Tun wrap a specific implementation detail.
-
Field Details
-
DEFAULT_RICE_BLOCKSIZE
public static final int DEFAULT_RICE_BLOCKSIZE- See Also:
-
DEFAULT_RICE_BYTEPIX
public static final int DEFAULT_RICE_BYTEPIX -
parameters
this is a circular dependency that still has to be cut. -
blockSize
private int blockSize -
bytePix
-
original
-
-
Constructor Details
-
RiceCompressOption
public RiceCompressOption()
-
-
Method Details
-
copy
- Specified by:
copyin interfaceICompressOption- Returns:
- copy the option (normally the option from with the copy happened is saved as original).
-
getBlockSize
public int getBlockSize() -
getBytePix
public int getBytePix() -
getCompressionParameters
- Specified by:
getCompressionParametersin interfaceICompressOption- Returns:
- the parameters that must be synchronized with the hdu meta data.
-
isLossyCompression
public boolean isLossyCompression()- Specified by:
isLossyCompressionin interfaceICompressOption- Returns:
- true if the compression done with this specified options uses approximations. That means if the reconstruction of the data is excact the return should be false.
-
setBlockSize
-
setBytePix
-
setParameters
Description copied from interface:ICompressOptionset the parameters that must be synchronized with the hdu meta data.- Specified by:
setParametersin interfaceICompressOption- Parameters:
parameters- the parameters to synchronized
-
setTileHeight
Description copied from interface:ICompressOptionset the tile height in pixel.- Specified by:
setTileHeightin interfaceICompressOption- Parameters:
value- the number of pixel.- Returns:
- this (builder pattern)
-
setTileWidth
Description copied from interface:ICompressOptionset the tile width.- Specified by:
setTileWidthin interfaceICompressOption- Parameters:
value- the number of pixel.- Returns:
- this (builder pattern)
-
unwrap
Description copied from interface:ICompressOptionun wrap a specific implementation detail.- Specified by:
unwrapin interfaceICompressOption- Type Parameters:
T- the class to unrwap- Parameters:
clazz- the type to unwrap- Returns:
- the implementation detail or null if no such detail is avalable.
-
setOriginal
-
setDefaultBytePix
-