1 | /* ---------------- */ |
---|
2 | /* --- nrset2.h --- */ |
---|
3 | /* ---------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NR_SET2_H_ |
---|
11 | #define _NR_SET2_H_ |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | #ifdef PRAGMA_VERBOSE |
---|
15 | #pragma message ("C++") |
---|
16 | #endif |
---|
17 | extern "C" { |
---|
18 | #endif |
---|
19 | |
---|
20 | #ifdef PRAGMA_VERBOSE |
---|
21 | //#pragma message("- include nrset2.h") |
---|
22 | #endif |
---|
23 | |
---|
24 | IMAGE_EXPORT(void) zero_si8matrix (sint8 **m, int i0,int i1,int j0,int j1); |
---|
25 | IMAGE_EXPORT(void) zero_ui8matrix (uint8 **m, int i0,int i1,int j0,int j1); |
---|
26 | IMAGE_EXPORT(void) zero_si16matrix (sint16 **m, int i0,int i1,int j0,int j1); |
---|
27 | IMAGE_EXPORT(void) zero_ui16matrix (uint16 **m, int i0,int i1,int j0,int j1); |
---|
28 | IMAGE_EXPORT(void) zero_si32matrix (sint32 **m, int i0,int i1,int j0,int j1); |
---|
29 | IMAGE_EXPORT(void) zero_ui32matrix (uint32 **m, int i0,int i1,int j0,int j1); |
---|
30 | IMAGE_EXPORT(void) zero_si64matrix (sint64 **m, int i0,int i1,int j0,int j1); |
---|
31 | IMAGE_EXPORT(void) zero_ui64matrix (uint64 **m, int i0,int i1,int j0,int j1); |
---|
32 | |
---|
33 | IMAGE_EXPORT(void) zero_f32matrix (float32 **m, int i0,int i1,int j0,int j1); |
---|
34 | IMAGE_EXPORT(void) zero_f64matrix (float64 **m, int i0,int i1,int j0,int j1); |
---|
35 | |
---|
36 | IMAGE_EXPORT(void) zero_rgb8matrix (rgb8 **m, int i0,int i1,int j0,int j1); |
---|
37 | IMAGE_EXPORT(void) zero_rgbx8matrix(rgbx8 **m, int i0,int i1,int j0,int j1); |
---|
38 | |
---|
39 | /* ------------------ */ |
---|
40 | /* --- set_matrix --- */ |
---|
41 | /* ------------------ */ |
---|
42 | |
---|
43 | IMAGE_EXPORT(void) set_si8matrix (sint8 **m,int i0,int i1,int j0, int j1, sint8 x); |
---|
44 | IMAGE_EXPORT(void) set_ui8matrix (uint8 **m,int i0,int i1,int j0, int j1, uint8 x); |
---|
45 | IMAGE_EXPORT(void) set_si16matrix (sint16 **m,int i0,int i1,int j0, int j1, sint16 x); |
---|
46 | IMAGE_EXPORT(void) set_ui16matrix (uint16 **m,int i0,int i1,int j0, int j1, uint16 x); |
---|
47 | IMAGE_EXPORT(void) set_si32matrix (sint32 **m,int i0,int i1,int j0, int j1, sint32 x); |
---|
48 | IMAGE_EXPORT(void) set_ui32matrix (uint32 **m,int i0,int i1,int j0, int j1, uint32 x); |
---|
49 | IMAGE_EXPORT(void) set_si64matrix (sint64 **m,int i0,int i1,int j0, int j1, sint64 x); |
---|
50 | IMAGE_EXPORT(void) set_ui64matrix (uint64 **m,int i0,int i1,int j0, int j1, uint64 x); |
---|
51 | |
---|
52 | IMAGE_EXPORT(void) set_f32matrix (float32 **m,int i0,int i1,int j0, int j1, float32 x); |
---|
53 | IMAGE_EXPORT(void) set_f64matrix (float64 **m,int i0,int i1,int j0, int j1, float64 x); |
---|
54 | |
---|
55 | IMAGE_EXPORT(void) set_rgb8matrix (rgb8 **m,int i0,int i1,int j0, int j1, rgb8 x); |
---|
56 | IMAGE_EXPORT(void) set_rgbx8matrix(rgbx8 **m,int i0,int i1,int j0, int j1, rgbx8 x); |
---|
57 | |
---|
58 | /* |
---|
59 | * ------------------------ |
---|
60 | * --- set_matrix_param --- |
---|
61 | * ------------------------ |
---|
62 | */ |
---|
63 | |
---|
64 | IMAGE_EXPORT(void) set_si8matrix_param (sint8 **m, int i0, int i1, int j0, int j1, sint8 x, sint8 xstep, sint8 ystep); |
---|
65 | IMAGE_EXPORT(void) set_ui8matrix_param (uint8 **m, int i0, int i1, int j0, int j1, uint8 x, uint8 xstep, uint8 ystep); |
---|
66 | IMAGE_EXPORT(void) set_si16matrix_param (sint16 **m, int i0, int i1, int j0, int j1, sint16 x, sint16 xstep, sint16 ystep); |
---|
67 | IMAGE_EXPORT(void) set_ui16matrix_param (uint16 **m, int i0, int i1, int j0, int j1, uint16 x, uint16 xstep, uint16 ystep); |
---|
68 | IMAGE_EXPORT(void) set_si32matrix_param (sint32 **m, int i0, int i1, int j0, int j1, sint32 x, sint32 xstep, sint32 ystep); |
---|
69 | IMAGE_EXPORT(void) set_ui32matrix_param (uint32 **m, int i0, int i1, int j0, int j1, uint32 x, uint32 xstep, uint32 ystep); |
---|
70 | IMAGE_EXPORT(void) set_si64matrix_param (sint64 **m, int i0, int i1, int j0, int j1, sint64 x, sint64 xstep, sint64 ystep); |
---|
71 | IMAGE_EXPORT(void) set_ui64matrix_param (uint64 **m, int i0, int i1, int j0, int j1, uint64 x, uint64 xstep, uint64 ystep); |
---|
72 | |
---|
73 | IMAGE_EXPORT(void) set_f32matrix_param (float32 **m, int i0, int i1, int j0, int j1, float32 x, float32 xstep, float32 ystep); |
---|
74 | IMAGE_EXPORT(void) set_f64matrix_param (float64 **m, int i0, int i1, int j0, int j1, float64 x, float64 xstep, float64 ystep); |
---|
75 | |
---|
76 | IMAGE_EXPORT(void) set_rgb8matrix_param (rgb8 **m, int i0, int i1, int j0, int j1, rgb8 x, rgb8 xstep, rgb8 ystep); |
---|
77 | IMAGE_EXPORT(void) set_rgbx8matrix_param(rgbx8 **m, int i0, int i1, int j0, int j1, rgbx8 x, rgbx8 xstep, rgbx8 ystep); |
---|
78 | |
---|
79 | /* |
---|
80 | * -------------------- |
---|
81 | * --- set_matrix_i --- |
---|
82 | * -------------------- |
---|
83 | */ |
---|
84 | |
---|
85 | /* |
---|
86 | * [i0 .. i0] [1 1 1] |
---|
87 | * m[... ...] = [2 2 2] |
---|
88 | * [i1 .. i1] [3 3 3] |
---|
89 | */ |
---|
90 | |
---|
91 | IMAGE_EXPORT(void) set_si8matrix_i (sint8 **m, int i0, int i1, int j0, int j1); |
---|
92 | IMAGE_EXPORT(void) set_ui8matrix_i (uint8 **m, int i0, int i1, int j0, int j1); |
---|
93 | IMAGE_EXPORT(void) set_si16matrix_i (sint16 **m, int i0, int i1, int j0, int j1); |
---|
94 | IMAGE_EXPORT(void) set_ui16matrix_i (uint16 **m, int i0, int i1, int j0, int j1); |
---|
95 | IMAGE_EXPORT(void) set_si32matrix_i (sint32 **m, int i0, int i1, int j0, int j1); |
---|
96 | IMAGE_EXPORT(void) set_ui32matrix_i (uint32 **m, int i0, int i1, int j0, int j1); |
---|
97 | IMAGE_EXPORT(void) set_si64matrix_i (sint64 **m, int i0, int i1, int j0, int j1); |
---|
98 | IMAGE_EXPORT(void) set_ui64matrix_i (uint64 **m, int i0, int i1, int j0, int j1); |
---|
99 | |
---|
100 | IMAGE_EXPORT(void) set_f32matrix_i (float32 **m, int i0, int i1, int j0, int j1); |
---|
101 | IMAGE_EXPORT(void) set_f64matrix_i (float64 **m, int i0, int i1, int j0, int j1); |
---|
102 | |
---|
103 | IMAGE_EXPORT(void) set_rgb8matrix_i (rgb8 **m, int i0, int i1, int j0, int j1); |
---|
104 | IMAGE_EXPORT(void) set_rgbx8matrix_i(rgbx8 **m, int i0, int i1, int j0, int j1); |
---|
105 | |
---|
106 | /* |
---|
107 | * -------------------- |
---|
108 | * --- set_matrix_j --- |
---|
109 | * -------------------- |
---|
110 | */ |
---|
111 | |
---|
112 | /* |
---|
113 | * [j0 .. j1] [1 2 3] |
---|
114 | * m[... .. ...] = [1 2 3] |
---|
115 | * [j0 .. j1] [1 2 3] |
---|
116 | */ |
---|
117 | |
---|
118 | IMAGE_EXPORT(void) set_si8matrix_j (sint8 **m, int i0, int i1, int j0, int j1); |
---|
119 | IMAGE_EXPORT(void) set_ui8matrix_j (uint8 **m, int i0, int i1, int j0, int j1); |
---|
120 | IMAGE_EXPORT(void) set_si16matrix_j (sint16 **m, int i0, int i1, int j0, int j1); |
---|
121 | IMAGE_EXPORT(void) set_ui16matrix_j (uint16 **m, int i0, int i1, int j0, int j1); |
---|
122 | IMAGE_EXPORT(void) set_si32matrix_j (sint32 **m, int i0, int i1, int j0, int j1); |
---|
123 | IMAGE_EXPORT(void) set_ui32matrix_j (uint32 **m, int i0, int i1, int j0, int j1); |
---|
124 | IMAGE_EXPORT(void) set_si64matrix_j (sint64 **m, int i0, int i1, int j0, int j1); |
---|
125 | IMAGE_EXPORT(void) set_ui64matrix_ (uint64 **m, int i0, int i1, int j0, int j1); |
---|
126 | |
---|
127 | IMAGE_EXPORT(void) set_f32matrix_j (float32 **m, int i0, int i1, int j0, int j1); |
---|
128 | IMAGE_EXPORT(void) set_f64matrix_j (float64 **m, int i0, int i1, int j0, int j1); |
---|
129 | |
---|
130 | IMAGE_EXPORT(void) set_rgb8matrix_j (rgb8 **m, int i0, int i1, int j0, int j1); |
---|
131 | IMAGE_EXPORT(void) set_rgbx8matrix_j(rgbx8 **m, int i0, int i1, int j0, int j1); |
---|
132 | |
---|
133 | /* |
---|
134 | * Initialisation des bords |
---|
135 | */ |
---|
136 | |
---|
137 | |
---|
138 | IMAGE_EXPORT(void) set_ui8matrix_border1(uint8 **m,int i0,int i1,int j0, int j1, uint8 x); |
---|
139 | IMAGE_EXPORT(void) set_ui8matrix_border (uint8 **m,int i0,int i1,int j0, int j1, int n, uint8 x); |
---|
140 | |
---|
141 | #ifdef __cplusplus |
---|
142 | } |
---|
143 | #endif |
---|
144 | |
---|
145 | #endif // _NR_SET2_H_ |
---|