1 /* 2 image.h - Part of psiconv, a PSION 5 file formats converter 3 Copyright (c) 2000-2014 Frodo Looijaard <frodo@frodo.looijaard.name> 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 /* This file contains definitions used internally by 21 generate_image.c and parse_image.c */ 22 23 #ifndef PSICONV_IMAGE_H 24 #define PSICONV_IMAGE_H 25 26 #include <psiconv/configuration.h> 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif /* __cplusplus */ 31 32 typedef psiconv_list psiconv_pixel_bytes; /* psiconv_u8 */ 33 typedef psiconv_list psiconv_pixel_ints; /* of psiconv_u32 */ 34 35 typedef struct psiconv_pixel_float_s 36 { 37 psiconv_u32 length; 38 float *red; 39 float *green; 40 float *blue; 41 } psiconv_pixel_floats_t; 42 43 extern psiconv_pixel_floats_t psiconv_palet_none, psiconv_palet_color_4, 44 psiconv_palet_color_8; 45 46 #ifdef __cplusplus 47 } 48 #endif /* __cplusplus */ 49 50 #endif /* def PSICONV_IMAGE_H */ 51