- Timestamp:
- May 6, 2016, 3:06:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nralloc2.h
r772 r821 16 16 #define __NRALLOC2_H__ 17 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 18 #include "nrc_os_config.h" 26 19 27 20 /* … … 31 24 */ 32 25 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 26 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); 27 #undef type_matrix 28 #define type_matrix(t) \ 29 t ** short_name(t,,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) 44 30 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 31 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); 32 type_matrix(int8_t); 33 type_matrix(uint8_t); 34 type_matrix(int16_t); 35 type_matrix(uint16_t); 36 type_matrix(int32_t); 37 type_matrix(uint32_t); 38 type_matrix(int64_t); 39 type_matrix(uint64_t); 40 type_matrix(float); 41 type_matrix(double); 42 type_matrix(void_p); 43 type_matrix(rgb8); 44 type_matrix(rgbx8); 45 type_matrix(rgb32); 46 type_matrix(rgbx32); 47 type_matrix(complex32); 48 type_matrix(complex64); 52 49 53 /*54 * ---------------55 * --- matrix0 ---56 * ---------------57 */58 50 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); 51 #undef type_matrix0 52 #define type_matrix0(t) \ 53 t ** short_name(t,,matrix0)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) 71 54 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 55 75 /* 76 * ------------------- 77 * --- free_matrix --- 78 * ------------------- 79 */ 56 type_matrix0(int8_t); 57 type_matrix0(uint8_t); 58 type_matrix0(int16_t); 59 type_matrix0(uint16_t); 60 type_matrix0(int32_t); 61 type_matrix0(uint32_t); 62 type_matrix0(int64_t); 63 type_matrix0(uint64_t); 64 type_matrix0(float); 65 type_matrix0(double); 66 type_matrix0(void_p); 67 type_matrix0(rgb8); 68 type_matrix0(rgbx8); 69 type_matrix0(rgb32); 70 type_matrix0(rgbx32); 71 type_matrix0(complex32); 72 type_matrix0(complex64); 80 73 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 74 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); 75 #if TARGET_OS == GIETVM 94 76 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); 77 #undef remote_type_matrix 78 #define remote_type_matrix(t) \ 79 t ** short_name(t,remote_,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) 99 80 100 #ifdef __cplusplus 101 } 81 remote_type_matrix(int8_t); 82 remote_type_matrix(uint8_t); 83 remote_type_matrix(int16_t); 84 remote_type_matrix(uint16_t); 85 remote_type_matrix(int32_t); 86 remote_type_matrix(uint32_t); 87 remote_type_matrix(int64_t); 88 remote_type_matrix(uint64_t); 89 remote_type_matrix(float); 90 remote_type_matrix(double); 91 remote_type_matrix(void_p); 92 remote_type_matrix(rgb8); 93 remote_type_matrix(rgbx8); 94 remote_type_matrix(rgb32); 95 remote_type_matrix(rgbx32); 96 remote_type_matrix(complex32); 97 remote_type_matrix(complex64); 98 102 99 #endif 103 100 101 102 #undef free_type_matrix 103 #define free_type_matrix(t) \ 104 void short_name(t,free_,matrix)(t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) 105 106 free_type_matrix(int8_t); 107 free_type_matrix(uint8_t); 108 free_type_matrix(int16_t); 109 free_type_matrix(uint16_t); 110 free_type_matrix(int32_t); 111 free_type_matrix(uint32_t); 112 free_type_matrix(int64_t); 113 free_type_matrix(uint64_t); 114 free_type_matrix(float); 115 free_type_matrix(double); 116 free_type_matrix(void_p); 117 free_type_matrix(rgb8); 118 free_type_matrix(rgbx8); 119 free_type_matrix(rgb32); 120 free_type_matrix(rgbx32); 121 free_type_matrix(complex32); 122 free_type_matrix(complex64); 123 124 104 125 #endif /* __NRALLOC2_H__ */ 126 127 // Local Variables: 128 // tab-width: 4 129 // c-basic-offset: 4 130 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 131 // indent-tabs-mode: nil 132 // End: 133 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 134
Note: See TracChangeset
for help on using the changeset viewer.