00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _GAN_IMAGE_GL_UINT16_H
00030 #define _GAN_IMAGE_GL_UINT16_H
00031
00032 #include <gandalf/common/misc_defs.h>
00033
00034
00035
00036 #define GAN_PIXEL gan_ui16
00037 #define GAN_PIXEL_FORMAT grey-level
00038 #define GAN_PIXEL_TYPE 16-bit unsigned integer
00039
00040 #define GAN_IMAGE_FORM_GEN gan_image_form_gen_gl_ui16
00041 #define GAN_IMAGE_SET_GEN gan_image_set_gen_gl_ui16
00042 #define GAN_IMAGE_ALLOC gan_image_alloc_gl_ui16
00043 #define GAN_IMAGE_ALLOC_DATA gan_image_alloc_data_gl_ui16
00044 #define GAN_IMAGE_FORM gan_image_form_gl_ui16
00045 #define GAN_IMAGE_FORM_DATA gan_image_form_data_gl_ui16
00046 #define GAN_IMAGE_SET gan_image_set_gl_ui16
00047 #define GAN_IMAGE_SET_PIX gan_image_set_pix_gl_ui16
00048 #define GAN_IMAGE_GET_PIX gan_image_get_pix_gl_ui16
00049 #define GAN_IMAGE_GET_PIXPTR gan_image_get_pixptr_gl_ui16
00050 #define GAN_IMAGE_GET_PIXARR gan_image_get_pixarr_gl_ui16
00051 #define GAN_IMAGE_FILL_CONST gan_image_fill_const_gl_ui16
00052 #define GAN_IMAGE_GET_ACTIVE_SUBWINDOW gan_image_get_active_subwindow_gl_ui16
00053 #define GAN_IMAGE_MASK_WINDOW gan_image_mask_window_gl_ui16
00054
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 #include <stdlib.h>
00090 #include <gandalf/common/misc_defs.h>
00091 #include <gandalf/image/image_defs.h>
00092
00098 #ifdef __cplusplus
00099 extern "C" {
00100 #endif
00101
00102
00103 struct Gan_Image *gan_image_set_gen_gl_ui16 ( struct Gan_Image *img,
00104 unsigned long height,
00105 unsigned long width,
00106 unsigned long stride,
00107 Gan_Bool alloc_pix_data );
00108 struct Gan_Image *gan_image_form_gen_gl_ui16 (
00109 struct Gan_Image *img,
00110 unsigned long height,
00111 unsigned long width,
00112 unsigned long stride,
00113 Gan_Bool alloc_pix_data,
00114 gan_ui16 *pix_data, size_t pix_data_size,
00115 gan_ui16 **row_data, size_t row_data_size );
00116 Gan_Bool gan_image_get_active_subwindow_gl_ui16 ( Gan_Image *image,
00117 Gan_ImageWindow *subwin );
00118 #ifndef NDEBUG
00119 gan_ui16 *gan_image_get_pixptr_gl_ui16 ( Gan_Image *img,
00120 unsigned row, unsigned col );
00121 gan_ui16 **gan_image_get_pixarr_gl_ui16 ( Gan_Image *img );
00122 #endif
00123 Gan_Bool gan_image_mask_window_gl_ui16 ( Gan_Image *pImage,
00124 unsigned r0, unsigned c0,
00125 unsigned height, unsigned width );
00126
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130
00131
00132
00147 Gan_Image *gan_image_alloc_gl_ui16 ( unsigned long height, unsigned long width );
00148
00159 Gan_Image *gan_image_form_gl_ui16 ( Gan_Image *img,
00160 unsigned long height,
00161 unsigned long width );
00162
00179 Gan_Image *gan_image_alloc_data_gl_ui16 ( unsigned long height,
00180 unsigned long width,
00181 unsigned long stride,
00182 gan_ui16 *pix_data, size_t pix_data_size,
00183 gan_ui16 **row_data, size_t row_data_size );
00184
00202 Gan_Image *gan_image_form_data_gl_ui16 ( Gan_Image *img,
00203 unsigned long height,
00204 unsigned long width,
00205 unsigned long stride,
00206 gan_ui16 *pix_data, size_t pix_data_size,
00207 gan_ui16 **row_data, size_t row_data_size );
00208
00228 Gan_Image *gan_image_set_gl_ui16 ( Gan_Image *img,
00229 unsigned long height, unsigned long width );
00230
00247 Gan_Bool gan_image_set_pix_gl_ui16 ( Gan_Image *img,
00248 unsigned row, unsigned col, 16-bit unsigned pix );
00249
00256 gan_ui16 gan_image_get_pix_gl_ui16 ( Gan_Image *img,
00257 unsigned row, unsigned col );
00258
00274 Gan_Bool gan_image_fill_const_gl_ui16 ( Gan_Image *img, 16-bit unsigned pix );
00275
00281 #undef GAN_PIXEL
00282 #undef GAN_PIXEL_FORMAT
00283 #undef GAN_PIXEL_TYPE
00284 #undef GAN_IMTYPE
00285 #undef GAN_IMAGE_FORM_GEN
00286 #undef GAN_IMAGE_SET_GEN
00287 #undef GAN_IMAGE_ALLOC
00288 #undef GAN_IMAGE_ALLOC_DATA
00289 #undef GAN_IMAGE_FORM
00290 #undef GAN_IMAGE_FORM_DATA
00291 #undef GAN_IMAGE_SET
00292 #undef GAN_IMAGE_SET_PIX
00293 #undef GAN_IMAGE_GET_PIX
00294 #undef GAN_IMAGE_GET_PIXPTR
00295 #undef GAN_IMAGE_GET_PIXARR
00296 #undef GAN_IMAGE_FILL_CONST
00297 #undef GAN_IMAGE_GET_ACTIVE_SUBWINDOW
00298 #undef GAN_IMAGE_MASK_WINDOW
00299 #undef GAN_IMAGE_PIXEL_ZERO_VAL
00300 #undef GAN_BITMAP
00301
00308 #endif