Changeset 823 for soft/giet_vm/applications/rosenfeld/nrc2/include/nrio3.h
- Timestamp:
- Jun 14, 2016, 5:23:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrio3.h
r772 r823 7 7 * Univ Paris Sud XI, CNRS 8 8 */ 9 10 #ifndef _NR_IO3_H_ 11 #define _NR_IO3_H_ 12 9 13 /* -------------------- */ 10 14 /* --- display_cube --- */ 15 /* -- write_cube -- */ 16 /* -- fread_cube -- */ 17 /* -- fwrite_cube -- */ 11 18 /* -------------------- */ 12 IMAGE_EXPORT(void) display_i8cube (int8 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);13 IMAGE_EXPORT(void) display_i16cube (int16 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);14 IMAGE_EXPORT(void) display_ui16cube(uint16 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);15 IMAGE_EXPORT(void) display_i32cube (int32 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);16 IMAGE_EXPORT(void) display_ui32cube(uint32 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);17 IMAGE_EXPORT(void) display_i64cube (int64 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);18 IMAGE_EXPORT(void) display_f32cube (float32 ***c,long ndl, long ndh, long nrl,long nrh,long ncl, long nch, char *format, char *name);19 19 20 /* ---------------- */ 21 /* -- write_cube -- */ 22 /* ---------------- */ 23 IMAGE_EXPORT(void) write_i8cube (int8 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 24 IMAGE_EXPORT(void) write_i16cube (int16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 25 IMAGE_EXPORT(void) write_ui16cube(uint16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 26 IMAGE_EXPORT(void) write_i32cube (int32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 27 IMAGE_EXPORT(void) write_ui32cube(uint32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 28 IMAGE_EXPORT(void) write_i64cube (int64 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 29 IMAGE_EXPORT(void) write_f32cube (float32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *format, char *filename); 20 #define display_type_cube(t) \ 21 void short_name(t,display_,cube)(t *** c, int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, char * format, char * name); \ 22 void short_name(t,write_,cube)(t *** c, int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, char * format, char * filename); \ 23 void short_name(t,fread_,cube)(t *** c, int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, char * format, char * filename); \ 24 void short_name(t,fwrite_,cube)(t *** c, int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, char * format, char * filename); 30 25 31 IMAGE_EXPORT(void) fread_i8cube(char *filename, int8 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 32 IMAGE_EXPORT(void) fread_i16cube(char *filename, int16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 33 IMAGE_EXPORT(void) fread_ui16cube(char *filename, uint16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 34 IMAGE_EXPORT(void) fread_i32cube(char *filename, int32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 35 IMAGE_EXPORT(void) fread_ui32cube(char *filename, uint32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 36 IMAGE_EXPORT(void) fread_i64cube(char *filename, int64 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 37 IMAGE_EXPORT(void) fread_f32cube(char *filename, float32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch); 26 display_type_cube(int8_t); 27 display_type_cube(uint8_t); 28 display_type_cube(int16_t); 29 display_type_cube(uint16_t); 30 display_type_cube(int32_t); 31 display_type_cube(uint32_t); 32 display_type_cube(int64_t); 33 display_type_cube(uint64_t); 34 display_type_cube(float); 35 display_type_cube(double); 38 36 39 /* ----------------- */ 40 /* -- fwrite_cube -- */ 41 /* ----------------- */ 42 IMAGE_EXPORT(void) fwrite_i8cube(int8 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 43 IMAGE_EXPORT(void) fwrite_i16cube(int16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 44 IMAGE_EXPORT(void) fwrite_ui16cube(uint16 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 45 IMAGE_EXPORT(void) fwrite_i32cube(int32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 46 IMAGE_EXPORT(void) fwrite_ui32cube(uint32 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 47 IMAGE_EXPORT(void) fwrite_i64cube(int64 ***c, long ndl, long ndh, long nrl, long nrh, long ncl, long nch, char *filename); 37 #endif 38
Note: See TracChangeset
for help on using the changeset viewer.