Main Page   Modules   Compound List   File List   Compound Members   File Members  

image_rgba_uint16.h

Go to the documentation of this file.
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_RGBA_UINT16_H
00030 #define _GAN_IMAGE_RGBA_UINT16_H
00031 
00032 #include <gandalf/common/misc_defs.h>
00033 
00034 
00035 
00036 #define GAN_PIXEL Gan_RGBAPixel_ui16
00037 #define GAN_PIXEL_FORMAT RGB-colour alpha
00038 #define GAN_PIXEL_TYPE 16-bit unsigned integer
00039 
00040 #define GAN_IMAGE_FORM_GEN gan_image_form_gen_rgba_ui16
00041 #define GAN_IMAGE_SET_GEN gan_image_set_gen_rgba_ui16
00042 #define GAN_IMAGE_ALLOC gan_image_alloc_rgba_ui16
00043 #define GAN_IMAGE_ALLOC_DATA gan_image_alloc_data_rgba_ui16
00044 #define GAN_IMAGE_FORM gan_image_form_rgba_ui16
00045 #define GAN_IMAGE_FORM_DATA gan_image_form_data_rgba_ui16
00046 #define GAN_IMAGE_SET gan_image_set_rgba_ui16
00047 #define GAN_IMAGE_SET_PIX gan_image_set_pix_rgba_ui16
00048 #define GAN_IMAGE_GET_PIX gan_image_get_pix_rgba_ui16
00049 #define GAN_IMAGE_GET_PIXPTR gan_image_get_pixptr_rgba_ui16
00050 #define GAN_IMAGE_GET_PIXARR gan_image_get_pixarr_rgba_ui16
00051 #define GAN_IMAGE_FILL_CONST gan_image_fill_const_rgba_ui16
00052 #define GAN_IMAGE_GET_ACTIVE_SUBWINDOW gan_image_get_active_subwindow_rgba_ui16
00053 #define GAN_IMAGE_MASK_WINDOW gan_image_mask_window_rgba_ui16
00054 
00068 /* This library is free software; you can redistribute it and/or
00069    modify it under the terms of the GNU Lesser General Public
00070    License as published by the Free Software Foundation; either
00071    version 2.1 of the License, or (at your option) any later version.
00072 
00073    This library is distributed in the hope that it will be useful,
00074    but WITHOUT ANY WARRANTY; without even the implied warranty of
00075    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00076    Lesser General Public License for more details.
00077 
00078    You should have received a copy of the GNU Lesser General Public
00079    License along with this library; if not, write to the Free Software
00080    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00081 */
00082 
00083 #include <stdlib.h>
00084 #include <gandalf/common/misc_defs.h>
00085 #include <gandalf/image/image_defs.h>
00086 
00092 #ifdef __cplusplus
00093 extern "C" {
00094 #endif
00095 
00096 
00097 struct Gan_Image *gan_image_set_gen_rgba_ui16 ( struct Gan_Image *img,
00098                                       unsigned long height,
00099                                       unsigned long width,
00100                                       unsigned long stride,
00101                                       Gan_Bool alloc_pix_data );
00102 
00103 struct Gan_Image *gan_image_form_gen_rgba_ui16 ( struct Gan_Image *img,
00104                                        unsigned long height,
00105                                        unsigned long width,
00106                                        unsigned long stride,
00107                                        Gan_Bool alloc_pix_data,
00108                                        Gan_RGBAPixel_ui16  *pix_data,
00109                                        size_t      pix_data_size,
00110                                        Gan_RGBAPixel_ui16 **row_data,
00111                                        size_t      row_data_size );
00112 
00113 #ifndef NDEBUG
00114 Gan_RGBAPixel_ui16 *gan_image_get_pixptr_rgba_ui16 ( Gan_Image *img,
00115                                   unsigned row, unsigned col );
00116 Gan_RGBAPixel_ui16 **gan_image_get_pixarr_rgba_ui16 ( Gan_Image *img );
00117 #endif /* #ifndef NDEBUG */
00118 
00119 /* declarations of macros defined in individual header files */
00120 
00121 
00137 Gan_Image *gan_image_alloc_rgba_ui16 ( unsigned long height, unsigned long width );
00138 
00151 Gan_Image *gan_image_form_rgba_ui16 ( Gan_Image *img,
00152                             unsigned long height, unsigned long width );
00153 
00170 Gan_Image *gan_image_alloc_data_rgba_ui16 ( unsigned long height,
00171                                   unsigned long width,
00172                                   unsigned long stride,
00173                                   Gan_RGBAPixel_ui16  *pix_data, size_t pix_data_size,
00174                                   Gan_RGBAPixel_ui16 **row_data, size_t row_data_size );
00175 
00193 Gan_Image *gan_image_form_data_rgba_ui16 ( Gan_Image *img,
00194                                  unsigned long height,
00195                                  unsigned long width,
00196                                  unsigned long stride,
00197                                  Gan_RGBAPixel_ui16  *pix_data, size_t pix_data_size,
00198                                  Gan_RGBAPixel_ui16 **row_data, size_t row_data_size );
00199 
00219 Gan_Image *gan_image_set_rgba_ui16 ( Gan_Image *img,
00220                            unsigned long height, unsigned long width );
00221 
00238 Gan_Bool gan_image_set_pix_rgba_ui16 ( Gan_Image *img, unsigned row, unsigned col,
00239                              Gan_RGBAPixel_ui16 *pix );
00240 
00247 Gan_RGBAPixel_ui16 gan_image_get_pix_rgba_ui16 ( Gan_Image *img, unsigned row, unsigned col );
00248 
00265 Gan_Bool gan_image_fill_const_rgba_ui16 ( Gan_Image *img, Gan_RGBAPixel_ui16 *pix );
00266 
00272 #ifdef __cplusplus
00273 }
00274 #endif
00275 
00276 #undef GAN_PIXEL
00277 #undef GAN_PIXEL_FORMAT
00278 #undef GAN_PIXEL_TYPE
00279 #undef GAN_IMTYPE
00280 #undef GAN_IMAGE_FORM_GEN
00281 #undef GAN_IMAGE_SET_GEN
00282 #undef GAN_IMAGE_ALLOC
00283 #undef GAN_IMAGE_ALLOC_DATA
00284 #undef GAN_IMAGE_FORM
00285 #undef GAN_IMAGE_FORM_DATA
00286 #undef GAN_IMAGE_SET
00287 #undef GAN_IMAGE_SET_PIX
00288 #undef GAN_IMAGE_GET_PIX
00289 #undef GAN_IMAGE_GET_PIXPTR
00290 #undef GAN_IMAGE_GET_PIXARR
00291 #undef GAN_IMAGE_FILL_CONST
00292 #undef GAN_IMAGE_GET_ACTIVE_SUBWINDOW
00293 #undef GAN_IMAGE_MASK_WINDOW
00294 
00301 #endif /* #ifndef _GAN_IMAGE_RGBA_UINT16_H */

Generated on Mon Oct 13 16:14:33 2003 by doxygen1.3-rc1