Fosfat 0.4.0
fosgra.h
Go to the documentation of this file.
00001 /*
00002  * FOS libfosgra: Smaky [.IMAGE|.COLOR] decoder
00003  * Copyright (C) 2009-2010 Mathieu Schroeter <mathieu.schroeter@gamesover.ch>
00004  *
00005  * Thanks to Pierre Arnaud for his help and the documentation
00006  *    And to Epsitec SA for the Smaky computers
00007  *
00008  * This file is part of Fosfat.
00009  *
00010  * This library is free software: you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation, either version 3 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00022  *
00023  */
00024 
00025 #ifndef FOSGRA_H
00026 #define FOSGRA_H
00027 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif /* __cplusplus */
00037 
00038 #include <inttypes.h>
00039 #include <fosfat.h>
00040 
00049 uint32_t fosgra_color_get (fosfat_t *fosfat, const char *path, uint8_t idx);
00050 
00060 uint8_t *fosgra_get_buffer (fosfat_t *fosfat,
00061                             const char *path, int offset, int size);
00062 
00071 void fosgra_get_info (fosfat_t *fosfat,
00072                       const char *path, uint16_t *x, uint16_t *y, uint8_t *bpp);
00073 
00080 int fosgra_is_image (fosfat_t *fosfat, const char *path);
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif /* __cplusplus */
00085 
00086 #endif /* FOSGRA_H */