[772] | 1 | /* ------------------ */ |
---|
| 2 | /* --- nralloc2.h --- */ |
---|
| 3 | /* ------------------ */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
| 7 | * Univ Paris Sud XI, CNRS |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | * 2002/06/11 ajout des fonctions endline |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #ifndef __NRALLOC2_H__ |
---|
| 16 | #define __NRALLOC2_H__ |
---|
| 17 | |
---|
| 18 | #ifdef __cplusplus |
---|
| 19 | #pragma message ("C++") |
---|
| 20 | extern "C" { |
---|
| 21 | #endif |
---|
| 22 | |
---|
| 23 | #ifdef VERBOSE_PRAGMA |
---|
| 24 | //#pragma message ("- *** include nralloc2.h ***") |
---|
| 25 | #endif |
---|
| 26 | |
---|
| 27 | /* |
---|
| 28 | * -------------- |
---|
| 29 | * --- matrix --- |
---|
| 30 | * -------------- |
---|
| 31 | */ |
---|
| 32 | |
---|
| 33 | IMAGE_EXPORT(sint8**) si8matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 34 | IMAGE_EXPORT(uint8**) ui8matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 35 | IMAGE_EXPORT(sint16**) si16matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 36 | IMAGE_EXPORT(uint16**) ui16matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 37 | IMAGE_EXPORT(sint32**) si32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 38 | IMAGE_EXPORT(uint32**) ui32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 39 | IMAGE_EXPORT(sint64**) si64matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 40 | IMAGE_EXPORT(uint64**) ui64matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 41 | |
---|
| 42 | IMAGE_EXPORT(float32**) f32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 43 | IMAGE_EXPORT(float64**) f64matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 44 | |
---|
| 45 | IMAGE_EXPORT(complex32**) c32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 46 | IMAGE_EXPORT(complex64**) c64matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 47 | |
---|
| 48 | IMAGE_EXPORT(rgb8**) rgb8matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 49 | IMAGE_EXPORT(rgbx8**) rgbx8matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 50 | //IMAGE_EXPORT(rgb32**) rgb32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 51 | //IMAGE_EXPORT(rgbx32**) rgbx32matrix(long nrl, long nrh, long ncl, long nch); |
---|
| 52 | |
---|
| 53 | /* |
---|
| 54 | * --------------- |
---|
| 55 | * --- matrix0 --- |
---|
| 56 | * --------------- |
---|
| 57 | */ |
---|
| 58 | |
---|
| 59 | IMAGE_EXPORT(sint8**) si8matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 60 | IMAGE_EXPORT(uint8**) ui8matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 61 | IMAGE_EXPORT(sint16**) si16matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 62 | IMAGE_EXPORT(uint16**) ui16matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 63 | IMAGE_EXPORT(sint32**) i32matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 64 | IMAGE_EXPORT(uint32**) ui32matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 65 | IMAGE_EXPORT(sint64**) si64matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 66 | IMAGE_EXPORT(uint64**) ui64matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 67 | IMAGE_EXPORT(rgb8**) rgb8matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 68 | IMAGE_EXPORT(rgbx8**) rgbx8matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 69 | IMAGE_EXPORT(rgb32**) rgb32matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 70 | IMAGE_EXPORT(rgbx32**) rgbx32matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 71 | |
---|
| 72 | IMAGE_EXPORT(float32**) f32matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 73 | IMAGE_EXPORT(float64**) f64matrix0(long nrl, long nrh, long ncl, long nch); |
---|
| 74 | |
---|
| 75 | /* |
---|
| 76 | * ------------------- |
---|
| 77 | * --- free_matrix --- |
---|
| 78 | * ------------------- |
---|
| 79 | */ |
---|
| 80 | |
---|
| 81 | IMAGE_EXPORT(void) free_si8matrix (sint8 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 82 | IMAGE_EXPORT(void) free_ui8matrix (uint8 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 83 | IMAGE_EXPORT(void) free_si16matrix (sint16 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 84 | IMAGE_EXPORT(void) free_ui16matrix (uint16 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 85 | IMAGE_EXPORT(void) free_si32matrix (sint32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 86 | IMAGE_EXPORT(void) free_ui32matrix (uint32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 87 | IMAGE_EXPORT(void) free_si64matrix (sint64 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 88 | IMAGE_EXPORT(void) free_ui64matrix (uint64 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 89 | |
---|
| 90 | IMAGE_EXPORT(void) free_f32matrix (float32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 91 | IMAGE_EXPORT(void) free_f64matrix (float64 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 92 | IMAGE_EXPORT(void) free_c32matrix (complex32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 93 | IMAGE_EXPORT(void) free_c64matrix (complex64 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 94 | |
---|
| 95 | IMAGE_EXPORT(void) free_rgb8matrix (rgb8 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 96 | IMAGE_EXPORT(void) free_rgbx8matrix (rgbx8 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 97 | IMAGE_EXPORT(void) free_rgb32matrix (rgb32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 98 | IMAGE_EXPORT(void) free_rgbx32matrix(rgbx32 **m, long nrl, long nrh, long ncl, long nch); |
---|
| 99 | |
---|
| 100 | #ifdef __cplusplus |
---|
| 101 | } |
---|
| 102 | #endif |
---|
| 103 | |
---|
| 104 | #endif /* __NRALLOC2_H__ */ |
---|