- 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/nralloc3.h
r772 r821 13 13 #define __NRALLOC3_H__ 14 14 15 #ifdef __cplusplus 16 #pragma message ("C++") 17 extern "C" { 18 #endif 19 20 #ifdef VERBOSE_PRAGMA 21 //#pragma message ("- *** include nralloc3.h ***") 22 #endif 15 #include "nrc_os_config.h" 23 16 24 double*** d3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh); 25 void free_d3tensor(double ***t,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 17 //double*** d3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh); 18 //void free_d3tensor(double ***t,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 19 20 #define type_cube(t) \ 21 t *** short_name(t,,cube)(int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) \ 26 22 27 23 24 type_cube(int8_t); 25 type_cube(uint8_t); 26 type_cube(int16_t); 27 type_cube(uint16_t); 28 type_cube(int32_t); 29 type_cube(uint32_t); 30 type_cube(int64_t); 31 type_cube(uint64_t); 32 type_cube(float); 33 type_cube(double); 34 type_cube(rgb8); 35 type_cube(rgbx8); 28 36 29 IMAGE_EXPORT(sint8***) si8cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 30 IMAGE_EXPORT(uint8***) ui8cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 31 IMAGE_EXPORT(sint16***) si16cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 32 IMAGE_EXPORT(uint16***) ui16cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 33 IMAGE_EXPORT(sint32***) si32cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 34 IMAGE_EXPORT(uint32***) ui32cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 35 IMAGE_EXPORT(float32***) f32cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 36 IMAGE_EXPORT(float64***) f64cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 37 IMAGE_EXPORT(rgb8***) rgb8cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 38 IMAGE_EXPORT(rgbx8***) rgbx8cube(long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 37 #define free_type_cube(t) \ 38 void short_name(t,free_,cube)(t *** c, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh) \ 39 39 40 IMAGE_EXPORT(void) free_si8cube (sint8 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 41 IMAGE_EXPORT(void) free_ui8cube (uint8 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 42 IMAGE_EXPORT(void) free_si16cube (sint16 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 43 IMAGE_EXPORT(void) free_ui16cube (uint16 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 44 IMAGE_EXPORT(void) free_si32cube (sint32 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 45 IMAGE_EXPORT(void) free_ui32cube (uint32 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 46 IMAGE_EXPORT(void) free_f32cube (float32 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 47 IMAGE_EXPORT(void) free_f64cube (float64 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 48 IMAGE_EXPORT(void) free_rgb8cube (rgb8 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 49 IMAGE_EXPORT(void) free_rgbx8cube(rgbx8 ***c,long nrl,long nrh,long ncl,long nch,long ndl,long ndh); 40 free_type_cube(int8_t); 41 free_type_cube(uint8_t); 42 free_type_cube(int16_t); 43 free_type_cube(uint16_t); 44 free_type_cube(int32_t); 45 free_type_cube(uint32_t); 46 free_type_cube(int64_t); 47 free_type_cube(uint64_t); 48 free_type_cube(float); 49 free_type_cube(double); 50 free_type_cube(rgb8); 51 free_type_cube(rgbx8); 50 52 51 #ifdef __cplusplus52 }53 #endif54 53 55 54 #endif /* __NRALLOC3_H__ */ 55 56 // Local Variables: 57 // tab-width: 4 58 // c-basic-offset: 4 59 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 60 // indent-tabs-mode: nil 61 // End: 62 63 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 64
Note: See TracChangeset
for help on using the changeset viewer.