/usr/include/OpenLayer/loadpng.h is in libopenlayer-dev 2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /* loadpng.h */
/* This file is hereby placed in the public domain. */
#ifndef _included_loadpng_h_
#define _included_loadpng_h_
#ifdef __cplusplus
extern "C" {
#endif
/* Overkill :-) */
#define LOADPNG_VERSION 1
#define LOADPNG_SUBVERSION 4
#define LOADPNG_VERSIONSTR "1.4"
/* _png_screen_gamma is slightly overloaded (sorry):
*
* A value of 0.0 means: Don't do any gamma correction in load_png()
* and load_memory_png(). This meaning was introduced in v1.4.
*
* A value of -1.0 means: Use the value from the environment variable
* SCREEN_GAMMA (if available), otherwise fallback to a value of 2.2
* (a good guess for PC monitors, and the value for sRGB colourspace).
* This is the default.
*
* Otherwise, the value of _png_screen_gamma is taken as-is.
*/
extern double _png_screen_gamma;
/* Choose zlib compression level for saving file.
* Default is Z_BEST_COMPRESSION.
*/
extern int _png_compression_level;
/* Load a PNG from disk. */
extern BITMAP *load_png(AL_CONST char *filename, RGB *pal);
/* Load a PNG from memory. */
extern BITMAP *load_memory_png(AL_CONST void *buffer, int buffer_size, RGB *pal);
/* Save a bitmap to disk in PNG format. */
extern int save_png(AL_CONST char *filename, BITMAP *bmp, AL_CONST RGB *pal);
/* Adds `PNG' to Allegro's internal file type table.
* You can then just use load_bitmap and save_bitmap as usual.
*/
extern void register_png_file_type(void);
/* Register an datafile type ID with Allegro, so that when an object
* with that type ID is encountered while loading a datafile, that
* object will be loaded as a PNG file.
*/
extern void register_png_datafile_object(int id);
/* This is supposed to resemble jpgalleg_init in JPGalleg 2.0, just in
* case you are lazier than lazy. It contains these 3 lines of code:
* register_png_datafile_object(DAT_ID('P','N','G',' '));
* register_png_file_type();
* return 0;
*/
extern int loadpng_init(void);
#ifdef __cplusplus
}
#endif
#endif /* _included_loadpng_h */
|