jbig2_image_rw.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 2001-2023 Artifex Software, Inc.
  2. All Rights Reserved.
  3. This software is provided AS-IS with no warranty, either express or
  4. implied.
  5. This software is distributed under license and may not be copied,
  6. modified or distributed except as expressly authorized under the terms
  7. of the license contained in the file LICENSE in this distribution.
  8. Refer to licensing information at http://www.artifex.com or contact
  9. Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
  10. CA 94129, USA, for further information.
  11. */
  12. /*
  13. jbig2dec
  14. */
  15. #ifndef _JBIG2_IMAGE_RW_H
  16. #define _JBIG2_IMAGE_RW_H
  17. /* routines for dumping the image data in various formats */
  18. #include <stdio.h>
  19. int jbig2_image_write_pbm_file(Jbig2Image *image, char *filename);
  20. int jbig2_image_write_pbm(Jbig2Image *image, FILE *out);
  21. Jbig2Image *jbig2_image_read_pbm_file(Jbig2Ctx *ctx, char *filename);
  22. Jbig2Image *jbig2_image_read_pbm(Jbig2Ctx *ctx, FILE *in);
  23. #ifdef HAVE_LIBPNG
  24. int jbig2_image_write_png_file(Jbig2Image *image, char *filename);
  25. int jbig2_image_write_png(Jbig2Image *image, FILE *out);
  26. #endif
  27. #endif /* _JBIG2_IMAGE_RW_H */