Debian Codegraph @

src/pngxtern/pngxtern.h

raw symbols SCIP
1 /*
2 * pngxtern.h - external file format processing for libpng.
3 *
4 * Copyright (C) 2003-2011 Cosmin Truta.
5 * This software is distributed under the same licensing and warranty terms
6 * as libpng.
7 */
8
9 #ifndef PNGXTERN_H
10 #define PNGXTERN_Hcxx . . $ `src/pngxtern/pngxtern.h:10:9`!
11
12 #include <png.h>
13
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20 /*
21 * Read the contents of an image file and store it into the given
22 * libpng structures.
23 *
24 * The currently recognized file formats are:
25 * PNG (standalone), PNG (datastream), BMP, GIF, PNM and TIFF.
26 *
27 * The function reads either the first or the most relevant image,
28 * depending on the format. For example, embedded thumbnails, if
29 * present, are skipped.
30 *
31 * On success, the function returns the number of images contained
32 * by the image file, which can be greater than 1 for formats like
33 * GIF or TIFF. If the function finds more than one image but does
34 * not perform a complete image count, it returns an upper bound.
35 * The function stores the short and/or the long format name
36 * (e.g. "PPM", "Portable Pixmap") into the given name pointers,
37 * if they are non-null.
38 *
39 * If the function fails to detect a known format, it rewinds the
40 * FILE* stream stored in io_ptr and returns 0.
41 * On other errors (e.g. read error or decoding error), the function
42 * issues a png_error().
43 *
44 * This function requires io_ptr to be a fseek-able FILE*.
45 * It does not work with generic I/O routines.
46 */
47 int PNGAPIcxx . . $ `<external>/8588829050953346773/pngconf.h:248:11`! pngx_read_imagecxx . . $ pngx_read_image(aa47b8f53dcc6c0c).(png_structpcxx . . $ png_structp# png_ptr, png_infopcxx . . $ png_infop# info_ptr,
48 png_const_charppcxx . . $ png_const_charpp# fmt_name_ptr,
49 png_const_charppcxx . . $ png_const_charpp# fmt_long_name_ptr);
50
51
52 #ifdef __cplusplus
53 } /* extern "C" */
54 #endif
55
56
57 #endif /* PNGXTERN_H */