Back to index

lightning-sunbird  0.9+nobinonly
read_png.h
Go to the documentation of this file.
00001 /*
00002  * Copyright © 2003 USC, Information Sciences Institute
00003  *
00004  * Permission to use, copy, modify, distribute, and sell this software
00005  * and its documentation for any purpose is hereby granted without
00006  * fee, provided that the above copyright notice appear in all copies
00007  * and that both that copyright notice and this permission notice
00008  * appear in supporting documentation, and that the name of the
00009  * University of Southern California not be used in advertising or
00010  * publicity pertaining to distribution of the software without
00011  * specific, written prior permission. The University of Southern
00012  * California makes no representations about the suitability of this
00013  * software for any purpose.  It is provided "as is" without express
00014  * or implied warranty.
00015  *
00016  * THE UNIVERSITY OF SOUTHERN CALIFORNIA DISCLAIMS ALL WARRANTIES WITH
00017  * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
00018  * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF
00019  * SOUTHERN CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
00020  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
00021  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
00022  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00023  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00024  *
00025  * Author: Carl D. Worth <cworth@isi.edu>
00026  */
00027 
00028 #ifndef READ_PNG_H
00029 #define READ_PNG_H
00030 
00031 typedef enum {
00032     READ_PNG_SUCCESS = 0,
00033     READ_PNG_FILE_NOT_FOUND,
00034     READ_PNG_FILE_NOT_PNG,
00035     READ_PNG_NO_MEMORY
00036 } read_png_status_t;
00037 
00038 read_png_status_t
00039 read_png_argb32 (const char         *filename,
00040                unsigned char      **data,
00041                unsigned int       *width,
00042                unsigned int       *height,
00043                unsigned int     *stride);
00044 
00045 #endif