| 1 |
/** |
| 2 |
* <p> |
| 3 |
* The Rice comppression algorithm and its options. This lossless compression algorithm was designed by Rice, Yeh, and |
| 4 |
* Miller the code was written by Richard White at STSc at the STScI and included (ported to c and adapted) in cfitsio |
| 5 |
* by William Pence, NASA/GSFC. That code was then ported to java by R. van Nieuwenhoven. Later it was massively |
| 6 |
* refactored to harmonize the different compression algorithms and reduce the duplicate code pieces without obscuring |
| 7 |
* the algorithm itself as far as possible. It's weird that it's a package by itself, but that's life. |
| 8 |
* </p> |
| 9 |
* <p> |
| 10 |
* The only classes in here that users would typically interact with are |
| 11 |
* {@link nom.tam.fits.compression.algorithm.rice.RiceCompressOption} and potentially |
| 12 |
* {@link nom.tam.fits.compression.algorithm.rice.RiceQuantizeCompressOption}, e.g. via |
| 13 |
* {@link nom.tam.image.compression.hdu.CompressedImageHDU#getCompressOption(Class)} to set options after Rice |
| 14 |
* compression was selected for compressing an image HDU. |
| 15 |
* </p> |
| 16 |
*/ |
| 17 |
|
| 18 |
package nom.tam.fits.compression.algorithm.rice; |
| 19 |
|
| 20 |
/*- |
| 21 |
* #%L |
| 22 |
* nom.tam FITS library |
| 23 |
* %% |
| 24 |
* Copyright (C) 1996 - 2024 nom-tam-fits |
| 25 |
* %% |
| 26 |
* This is free and unencumbered software released into the public domain. |
| 27 |
* |
| 28 |
* Anyone is free to copy, modify, publish, use, compile, sell, or |
| 29 |
* distribute this software, either in source code form or as a compiled |
| 30 |
* binary, for any purpose, commercial or non-commercial, and by any |
| 31 |
* means. |
| 32 |
* |
| 33 |
* In jurisdictions that recognize copyright laws, the author or authors |
| 34 |
* of this software dedicate any and all copyright interest in the |
| 35 |
* software to the public domain. We make this dedication for the benefit |
| 36 |
* of the public at large and to the detriment of our heirs and |
| 37 |
* successors. We intend this dedication to be an overt act of |
| 38 |
* relinquishment in perpetuity of all present and future rights to this |
| 39 |
* software under copyright law. |
| 40 |
* |
| 41 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 42 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 43 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 44 |
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 45 |
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 46 |
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 47 |
* OTHER DEALINGS IN THE SOFTWARE. |
| 48 |
* #L% |
| 49 |
*/ |