00001 00014 /* This library is free software; you can redistribute it and/or 00015 modify it under the terms of the GNU Lesser General Public 00016 License as published by the Free Software Foundation; either 00017 version 2.1 of the License, or (at your option) any later version. 00018 00019 This library is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 Lesser General Public License for more details. 00023 00024 You should have received a copy of the GNU Lesser General Public 00025 License along with this library; if not, write to the Free Software 00026 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 */ 00028 00029 #ifndef _GAN_IMAGE_CONVERT_H 00030 #define _GAN_IMAGE_CONVERT_H 00031 00032 #include <gandalf/image/image_defs.h> 00033 #include <gandalf/image/image_extract.h> 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00062 Gan_Image *gan_image_convert_q ( const Gan_Image *source, 00063 Gan_ImageFormat format, Gan_Type type, 00064 Gan_Image *dest ); 00065 00078 Gan_Image *gan_image_convert_s ( const Gan_Image *source, 00079 Gan_ImageFormat format, Gan_Type type ); 00080 00086 Gan_Image *gan_image_swap_RandB_s ( Gan_Image *source ); 00087 00093 Gan_Image *gan_image_swap_RandB_i ( Gan_Image *img ); 00094 00100 Gan_Image *gan_image_convert_RGBAtoARGB_s ( Gan_Image *source ); 00101 00107 Gan_Image *gan_image_convert_RGBAtoARGB_i ( Gan_Image *img ); 00108 00114 Gan_Image *gan_image_convert_ARGBtoRGBA_s ( Gan_Image *source ); 00115 00121 Gan_Image *gan_image_convert_ARGBtoRGBA_i ( Gan_Image *img ); 00122 00123 Gan_Image *gan_image_swap_RandB_q(Gan_Image *source, Gan_Image *dest); 00124 Gan_Image *gan_image_convert_ARGBtoRGBA_q(Gan_Image *source, Gan_Image *dest); 00125 Gan_Image *gan_image_convert_RGBAtoARGB_q(Gan_Image *source, Gan_Image *dest); 00126 00135 #ifdef __cplusplus 00136 } 00137 #endif 00138 00139 #endif /* #ifndef _GAN_IMAGE_CONVERT_H */