1 | /* ----------------- */ |
---|
2 | /* --- nrwrap2.h --- */ |
---|
3 | /* ----------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _NR_WRAP2_H_ |
---|
12 | #define _NR_WRAP2_H_ |
---|
13 | |
---|
14 | #ifdef __cplusplus |
---|
15 | #ifdef PRAGMA_VERBOSE |
---|
16 | #pragma message ("C++") |
---|
17 | #endif |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | // ------------------ // |
---|
22 | // --- matrix_map --- // |
---|
23 | // ------------------ // |
---|
24 | |
---|
25 | IMAGE_EXPORT(sint8**) si8matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
26 | IMAGE_EXPORT(uint8**) ui8matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
27 | IMAGE_EXPORT(sint16**) si16matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
28 | IMAGE_EXPORT(uint16**) ui16matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
29 | IMAGE_EXPORT(sint32**) si32matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
30 | IMAGE_EXPORT(uint32**) ui32matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
31 | IMAGE_EXPORT(sint64**) si64matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
32 | IMAGE_EXPORT(uint64**) ui64matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
33 | |
---|
34 | IMAGE_EXPORT(float32**) f32matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
35 | IMAGE_EXPORT(float64**) f64matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
36 | |
---|
37 | IMAGE_EXPORT(rgb8**) rgb8matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
38 | IMAGE_EXPORT(rgbx8**) rgbx8matrix_map(long nrl, long nrh, long ncl, long nch); |
---|
39 | |
---|
40 | IMAGE_EXPORT(sint8 **) si8matrix_map_1D_pitch(sint8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
41 | IMAGE_EXPORT(uint8 **) ui8matrix_map_1D_pitch(uint8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
42 | IMAGE_EXPORT(sint16**) si16matrix_map_1D_pitch(sint16 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
43 | IMAGE_EXPORT(uint16**) ui16matrix_map_1D_pitch(uint16 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
44 | IMAGE_EXPORT(sint32**) si32matrix_map_1D_pitch(sint32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
45 | IMAGE_EXPORT(uint32**) ui32matrix_map_1D_pitch(uint32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
46 | IMAGE_EXPORT(sint64**) si64matrix_map_1D_pitch(sint64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
47 | IMAGE_EXPORT(uint64**) ui64matrix_map_1D_pitch(uint64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
48 | IMAGE_EXPORT(float32**) f32matrix_map_1D_pitch(float32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
49 | IMAGE_EXPORT(float64**) f64matrix_map_1D_pitch(float64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
50 | IMAGE_EXPORT(rgb8**) rgb8matrix_map_1D_pitch(rgb8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
51 | IMAGE_EXPORT(rgbx8**) rgbx8matrix_map_1D_pitch(rgbx8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
52 | |
---|
53 | IMAGE_EXPORT(sint8 **) si8matrix_remap_1D_pitch(sint8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
54 | IMAGE_EXPORT(uint8 **) ui8matrix_remap_1D_pitch(uint8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
55 | IMAGE_EXPORT(sint16**) si16matrix_remap_1D_pitch(sint16 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
56 | IMAGE_EXPORT(uint16**) ui16matrix_remap_1D_pitch(uint16 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
57 | IMAGE_EXPORT(sint32**) si32matrix_remap_1D_pitch(sint32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
58 | IMAGE_EXPORT(uint32**) ui32matrix_remap_1D_pitch(uint32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
59 | IMAGE_EXPORT(sint64**) si64matrix_remap_1D_pitch(sint64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
60 | IMAGE_EXPORT(uint64**) ui64matrix_remap_1D_pitch(uint64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
61 | IMAGE_EXPORT(float32**) f32matrix_remap_1D_pitch(float32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
62 | IMAGE_EXPORT(float64**) f64matrix_remap_1D_pitch(float64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
63 | IMAGE_EXPORT(rgb8**) rgb8matrix_remap_1D_pitch(rgb8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
64 | IMAGE_EXPORT(rgbx8**) rgbx8matrix_remap_1D_pitch(rgbx8 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch); |
---|
65 | |
---|
66 | /* |
---|
67 | * --------------- |
---|
68 | * free_matrix_map |
---|
69 | * --------------- |
---|
70 | */ |
---|
71 | |
---|
72 | IMAGE_EXPORT(void) free_si8matrix_map (sint8 **m, long nrl, long nrh, long ncl, long nch); |
---|
73 | IMAGE_EXPORT(void) free_ui8matrix_map (uint8 **m, long nrl, long nrh, long ncl, long nch); |
---|
74 | IMAGE_EXPORT(void) free_si16matrix_map (sint16 **m, long nrl, long nrh, long ncl, long nch); |
---|
75 | IMAGE_EXPORT(void) free_ui16matrix_map (uint16 **m, long nrl, long nrh, long ncl, long nch); |
---|
76 | IMAGE_EXPORT(void) free_si32matrix_map (sint32 **m, long nrl, long nrh, long ncl, long nch); |
---|
77 | IMAGE_EXPORT(void) free_ui32matrix_map (uint32 **m, long nrl, long nrh, long ncl, long nch); |
---|
78 | IMAGE_EXPORT(void) free_si64matrix_map (sint64 **m, long nrl, long nrh, long ncl, long nch); |
---|
79 | IMAGE_EXPORT(void) free_ui64matrix_map (uint64 **m, long nrl, long nrh, long ncl, long nch); |
---|
80 | |
---|
81 | IMAGE_EXPORT(void) free_f32matrix_map (float32 **m, long nrl, long nrh, long ncl, long nch); |
---|
82 | IMAGE_EXPORT(void) free_f64matrix_map (float64 **m, long nrl, long nrh, long ncl, long nch); |
---|
83 | |
---|
84 | IMAGE_EXPORT(void) free_rgb8matrix_map (rgb8 **m, long nrl, long nrh, long ncl, long nch); |
---|
85 | IMAGE_EXPORT(void) free_rgbx8matrix_map(rgbx8 **m, long nrl, long nrh, long ncl, long nch); |
---|
86 | |
---|
87 | #ifdef __cplusplus |
---|
88 | } |
---|
89 | #endif |
---|
90 | |
---|
91 | #else |
---|
92 | //#pragma message(" Warning : attemp to re-include nrwrap2.h") |
---|
93 | #endif /* _NR_WRAP2_H_ */ |
---|