1 | /* ------------------- */ |
---|
2 | /* --- nralloc2x.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 __NRALLOC2X_H__ |
---|
16 | #define __NRALLOC2X_H__ |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | #pragma message ("C++") |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #ifdef VERBOSE_PRAGMA |
---|
24 | //#pragma message ("- *** include nralloc2x.h ***") |
---|
25 | #endif |
---|
26 | |
---|
27 | #include "nrtype.h" |
---|
28 | #include "nrtypex.h" |
---|
29 | |
---|
30 | /* ---------------------------------- */ |
---|
31 | /* --- composite user type matrix --- */ |
---|
32 | /* ---------------------------------- */ |
---|
33 | |
---|
34 | IMAGE_EXPORT(si16Point**) si16Pmatrix(long nrl, long nrh, long ncl, long nch); |
---|
35 | IMAGE_EXPORT(ui16Point**) ui16Pmatrix(long nrl, long nrh, long ncl, long nch); |
---|
36 | IMAGE_EXPORT(si32Point**) si32Pmatrix(long nrl, long nrh, long ncl, long nch); |
---|
37 | IMAGE_EXPORT(ui32Point**) ui32Pmatrix(long nrl, long nrh, long ncl, long nch); |
---|
38 | IMAGE_EXPORT(f32Point**) f32Pmatrix(long nrl, long nrh, long ncl, long nch); |
---|
39 | |
---|
40 | IMAGE_EXPORT(si16Triplet**) si16Tmatrix(long nrl, long nrh, long ncl, long nch); |
---|
41 | IMAGE_EXPORT(ui16Triplet**) ui16Tmatrix(long nrl, long nrh, long ncl, long nch); |
---|
42 | IMAGE_EXPORT(si32Triplet**) si32Tmatrix(long nrl, long nrh, long ncl, long nch); |
---|
43 | IMAGE_EXPORT(ui32Triplet**) ui32Tmatrix(long nrl, long nrh, long ncl, long nch); |
---|
44 | IMAGE_EXPORT(f32Triplet**) f32Tmatrix(long nrl, long nrh, long ncl, long nch); |
---|
45 | |
---|
46 | IMAGE_EXPORT(void) free_si16Pmatrix(si16Point **m, long nrl, long nrh, long ncl, long nch); |
---|
47 | IMAGE_EXPORT(void) free_ui16Pmatrix(ui16Point **m, long nrl, long nrh, long ncl, long nch); |
---|
48 | IMAGE_EXPORT(void) free_si32Pmatrix(si32Point **m, long nrl, long nrh, long ncl, long nch); |
---|
49 | IMAGE_EXPORT(void) free_ui32Pmatrix(ui32Point **m, long nrl, long nrh, long ncl, long nch); |
---|
50 | IMAGE_EXPORT(void) free_f32Pmatrix(f32Point **m, long nrl, long nrh, long ncl, long nch); |
---|
51 | |
---|
52 | IMAGE_EXPORT(void) free_si16Tmatrix(si16Triplet **m, long nrl, long nrh, long ncl, long nch); |
---|
53 | IMAGE_EXPORT(void) free_ui16Tmatrix(ui16Triplet **m, long nrl, long nrh, long ncl, long nch); |
---|
54 | IMAGE_EXPORT(void) free_si32Tmatrix(si32Triplet **m, long nrl, long nrh, long ncl, long nch); |
---|
55 | IMAGE_EXPORT(void) free_ui32Tmatrix(ui32Triplet **m, long nrl, long nrh, long ncl, long nch); |
---|
56 | IMAGE_EXPORT(void) free_f32Tmatrix ( f32Triplet **m, long nrl, long nrh, long ncl, long nch); |
---|
57 | |
---|
58 | /* ----------------- */ |
---|
59 | /* --- trimatrix --- */ |
---|
60 | /* ----------------- */ |
---|
61 | |
---|
62 | IMAGE_EXPORT(byte**) btrimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
63 | IMAGE_EXPORT(sint16**) si16trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
64 | IMAGE_EXPORT(uint16**) ui16trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
65 | IMAGE_EXPORT(sint32**) si32trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
66 | IMAGE_EXPORT(uint32**) ui32trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
67 | IMAGE_EXPORT(float32**) f32trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
68 | IMAGE_EXPORT(float64**) f64trimatrix(long nrl, long nrh, long ncl, long nch, long step); |
---|
69 | |
---|
70 | #ifdef __cplusplus |
---|
71 | } |
---|
72 | #endif |
---|
73 | |
---|
74 | #endif /* __NRALLOC2X_H__ */ |
---|