1 | /* ---------------- */ |
---|
2 | /* --- nrset1.h --- */ |
---|
3 | /* ---------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NRSET1_H_ |
---|
11 | #define _NRSET1_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 nrset1.h") |
---|
22 | #endif |
---|
23 | |
---|
24 | /* |
---|
25 | * ------------ |
---|
26 | * --- Zero --- |
---|
27 | * ------------ |
---|
28 | */ |
---|
29 | |
---|
30 | IMAGE_EXPORT(void) zero_si8vector (sint8 *v, long nl, long nh); |
---|
31 | IMAGE_EXPORT(void) zero_ui8vector (uint8 *v, long nl, long nh); |
---|
32 | IMAGE_EXPORT(void) zero_si16vector (sint16 *v, long nl, long nh); |
---|
33 | IMAGE_EXPORT(void) zero_ui16vector (uint16 *v, long nl, long nh); |
---|
34 | IMAGE_EXPORT(void) zero_si32vector (sint32 *v, long nl, long nh); |
---|
35 | IMAGE_EXPORT(void) zero_ui32vector (uint32 *v, long nl, long nh); |
---|
36 | IMAGE_EXPORT(void) zero_si64vector (sint64 *v, long nl, long nh); |
---|
37 | IMAGE_EXPORT(void) zero_ui64vector (uint64 *v, long nl, long nh); |
---|
38 | |
---|
39 | IMAGE_EXPORT(void) zero_f32vector (float32 *v, long nl, long nh); |
---|
40 | IMAGE_EXPORT(void) zero_f64vector (float64 *v, long nl, long nh); |
---|
41 | |
---|
42 | IMAGE_EXPORT(void) zero_rgb8vector (rgb8 *v, long nl, long nh); |
---|
43 | IMAGE_EXPORT(void) zero_rgbx8vector(rgbx8 *v, long nl, long nh); |
---|
44 | |
---|
45 | /* |
---|
46 | * ------------------ |
---|
47 | * --- set_vector --- |
---|
48 | * ------------------ |
---|
49 | */ |
---|
50 | |
---|
51 | IMAGE_EXPORT(void) set_si8vector (sint8 *v, long nl, long nh, sint8 x); |
---|
52 | IMAGE_EXPORT(void) set_ui8vector (uint8 *v, long nl, long nh, uint8 x); |
---|
53 | IMAGE_EXPORT(void) set_si16vector (sint16 *v, long nl, long nh, int16 x); |
---|
54 | IMAGE_EXPORT(void) set_ui16vector (uint16 *v, long nl, long nh, uint16 x); |
---|
55 | IMAGE_EXPORT(void) set_si32vector (sint32 *v, long nl, long nh, sint32 x); |
---|
56 | IMAGE_EXPORT(void) set_ui32vector (uint32 *v, long nl, long nh, uint32 x); |
---|
57 | IMAGE_EXPORT(void) set_si64vector (sint64 *v, long nl, long nh, sint64 x); |
---|
58 | IMAGE_EXPORT(void) set_ui64vector (uint64 *v, long nl, long nh, uint64 x); |
---|
59 | |
---|
60 | IMAGE_EXPORT(void) set_f32vector (float32 *v, long nl, long nh, float32 x); |
---|
61 | IMAGE_EXPORT(void) set_f64vector (float64 *v, long nl, long nh, float64 x); |
---|
62 | |
---|
63 | IMAGE_EXPORT(void) set_rgb8vector (rgb8 *v, long nl, long nh, rgb8 x); |
---|
64 | IMAGE_EXPORT(void) set_rgbx8vector(rgbx8 *v, long nl, long nh, rgbx8 x); |
---|
65 | |
---|
66 | /* |
---|
67 | * ------------------------ |
---|
68 | * --- set_vector_param --- |
---|
69 | * ------------------------ |
---|
70 | */ |
---|
71 | |
---|
72 | IMAGE_EXPORT(void) set_si8vector_param (sint8 *v, long nl, long nh, sint8 x, sint8 xstep); |
---|
73 | IMAGE_EXPORT(void) set_ui8vector_param (uint8 *v, long nl, long nh, uint8 x, uint8 xstep); |
---|
74 | IMAGE_EXPORT(void) set_si16vector_param (sint16 *v, long nl, long nh, int16 x, sint16 xstep); |
---|
75 | IMAGE_EXPORT(void) set_ui16vector_param (uint16 *v, long nl, long nh, uint16 x, uint16 xstep); |
---|
76 | IMAGE_EXPORT(void) set_si32vector_param (sint32 *v, long nl, long nh, sint32 x, sint32 xstep); |
---|
77 | IMAGE_EXPORT(void) set_ui32vector_param (uint32 *v, long nl, long nh, uint32 x, uint32 xstep); |
---|
78 | IMAGE_EXPORT(void) set_si64vector_param (sint64 *v, long nl, long nh, sint64 x, sint64 xstep); |
---|
79 | IMAGE_EXPORT(void) set_ui64vector_param (uint64 *v, long nl, long nh, uint64 x, uint64 xstep); |
---|
80 | |
---|
81 | IMAGE_EXPORT(void) set_f32vector_param (float32 *v, long nl, long nh, float32 x, float32 xstep); |
---|
82 | IMAGE_EXPORT(void) set_f64vector_param (float64 *v, long nl, long nh, float64 x, float64 xstep); |
---|
83 | |
---|
84 | IMAGE_EXPORT(void) set_rgb8vector_param (rgb8 *v, long nl, long nh, rgb8 x, rgb8 xstep); |
---|
85 | IMAGE_EXPORT(void) set_rgbx8vector_param(rgbx8 *v, long nl, long nh, rgbx8 x, rgbx8 xstep); |
---|
86 | |
---|
87 | /* |
---|
88 | * -------------------- |
---|
89 | * --- set_vector_j --- |
---|
90 | * -------------------- |
---|
91 | */ |
---|
92 | |
---|
93 | IMAGE_EXPORT(void) set_si8vector_j (sint8 *v, long nl, long nh); |
---|
94 | IMAGE_EXPORT(void) set_ui8vector_j (uint8 *v, long nl, long nh); |
---|
95 | IMAGE_EXPORT(void) set_si16vector_j (sint16 *v, long nl, long nh); |
---|
96 | IMAGE_EXPORT(void) set_ui16vector_j (uint16 *v, long nl, long nh); |
---|
97 | IMAGE_EXPORT(void) set_si32vector_j (sint32 *v, long nl, long nh); |
---|
98 | IMAGE_EXPORT(void) set_ui32vector_j (uint32 *v, long nl, long nh); |
---|
99 | |
---|
100 | IMAGE_EXPORT(void) set_f32vector_j (float32 *v, long nl, long nh); |
---|
101 | IMAGE_EXPORT(void) set_f64vector_j (float64 *v, long nl, long nh); |
---|
102 | |
---|
103 | IMAGE_EXPORT(void) set_rgb8vector_j (rgb8 *v, long nl, long nh); |
---|
104 | IMAGE_EXPORT(void) set_rgbx8vector_j(rgbx8 *v, long nl, long nh); |
---|
105 | |
---|
106 | /* |
---|
107 | * ---------------------- |
---|
108 | * --- set_vector_str --- |
---|
109 | * ---------------------- |
---|
110 | */ |
---|
111 | |
---|
112 | IMAGE_EXPORT(void) set_si8vector_str (sint8 *v, long nl, long nh, char *str); |
---|
113 | IMAGE_EXPORT(void) set_ui8vector_str (uint8 *v, long nl, long nh, char *str); |
---|
114 | IMAGE_EXPORT(void) set_si16vector_str (sint16 *v, long nl, long nh, char *str); |
---|
115 | IMAGE_EXPORT(void) set_ui16vector_str (uint16 *v, long nl, long nh, char *str); |
---|
116 | IMAGE_EXPORT(void) set_si32vector_str (sint32 *v, long nl, long nh, char *str); |
---|
117 | IMAGE_EXPORT(void) set_ui32vector_str (uint32 *v, long nl, long nh, char *str); |
---|
118 | |
---|
119 | #ifdef __cplusplus |
---|
120 | } |
---|
121 | #endif |
---|
122 | |
---|
123 | #endif /* __NRSET1_H__ */ |
---|