comparison mupdf-source/thirdparty/jbig2dec/jbig2_image_rw.h @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents b50eed0cc0ef
children
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 /* Copyright (C) 2001-2023 Artifex Software, Inc.
2 All Rights Reserved.
3
4 This software is provided AS-IS with no warranty, either express or
5 implied.
6
7 This software is distributed under license and may not be copied,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
10
11 Refer to licensing information at http://www.artifex.com or contact
12 Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
13 CA 94129, USA, for further information.
14 */
15
16 /*
17 jbig2dec
18 */
19
20 #ifndef _JBIG2_IMAGE_RW_H
21 #define _JBIG2_IMAGE_RW_H
22
23 /* routines for dumping the image data in various formats */
24
25 #include <stdio.h>
26
27 int jbig2_image_write_pbm_file(Jbig2Image *image, char *filename);
28 int jbig2_image_write_pbm(Jbig2Image *image, FILE *out);
29 Jbig2Image *jbig2_image_read_pbm_file(Jbig2Ctx *ctx, char *filename);
30 Jbig2Image *jbig2_image_read_pbm(Jbig2Ctx *ctx, FILE *in);
31
32 #ifdef HAVE_LIBPNG
33 int jbig2_image_write_png_file(Jbig2Image *image, char *filename);
34 int jbig2_image_write_png(Jbig2Image *image, FILE *out);
35 #endif
36
37 #endif /* _JBIG2_IMAGE_RW_H */