compress.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore image compression/decompression methods.
  13. */
  14. #ifndef MAGICKCORE_COMPRESS_H
  15. #define MAGICKCORE_COMPRESS_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef enum
  20. {
  21. UndefinedCompression,
  22. NoCompression,
  23. BZipCompression,
  24. DXT1Compression,
  25. DXT3Compression,
  26. DXT5Compression,
  27. FaxCompression,
  28. Group4Compression,
  29. JPEGCompression,
  30. JPEG2000Compression, /* ISO/IEC std 15444-1 */
  31. LosslessJPEGCompression,
  32. LZWCompression,
  33. RLECompression,
  34. ZipCompression,
  35. ZipSCompression,
  36. PizCompression,
  37. Pxr24Compression,
  38. B44Compression,
  39. B44ACompression,
  40. LZMACompression, /* Lempel-Ziv-Markov chain algorithm */
  41. JBIG1Compression, /* ISO/IEC std 11544 / ITU-T rec T.82 */
  42. JBIG2Compression, /* ISO/IEC std 14492 / ITU-T rec T.88 */
  43. ZstdCompression,
  44. WebPCompression
  45. } CompressionType;
  46. typedef struct _Ascii85Info
  47. Ascii85Info;
  48. extern MagickExport MagickBooleanType
  49. HuffmanDecodeImage(Image *),
  50. HuffmanEncodeImage(const ImageInfo *,Image *,Image *),
  51. LZWEncodeImage(Image *,const size_t,unsigned char *magick_restrict),
  52. PackbitsEncodeImage(Image *,const size_t,unsigned char *magick_restrict),
  53. ZLIBEncodeImage(Image *,const size_t,unsigned char *magick_restrict);
  54. extern MagickExport void
  55. Ascii85Encode(Image *,const unsigned char),
  56. Ascii85Flush(Image *),
  57. Ascii85Initialize(Image *);
  58. #if defined(__cplusplus) || defined(c_plusplus)
  59. }
  60. #endif
  61. #endif