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 | |
---|
14 | /* ------------------ |
---|
15 | * --- set_matrix --- |
---|
16 | * --- set_matrix_param --- |
---|
17 | * ------------------ |
---|
18 | */ |
---|
19 | |
---|
20 | /* |
---|
21 | * -------------------- |
---|
22 | * --- set_matrix_i --- |
---|
23 | * -------------------- |
---|
24 | */ |
---|
25 | |
---|
26 | /* |
---|
27 | * [i0 .. i0] [1 1 1] |
---|
28 | * m[... ...] = [2 2 2] |
---|
29 | * [i1 .. i1] [3 3 3] |
---|
30 | */ |
---|
31 | |
---|
32 | /* |
---|
33 | * -------------------- |
---|
34 | * --- set_matrix_j --- |
---|
35 | * -------------------- |
---|
36 | */ |
---|
37 | |
---|
38 | /* |
---|
39 | * [j0 .. j1] [1 2 3] |
---|
40 | * m[... .. ...] = [1 2 3] |
---|
41 | * [j0 .. j1] [1 2 3] |
---|
42 | */ |
---|
43 | |
---|
44 | #define set_type_matrix(t) \ |
---|
45 | void short_name(t,zero_,matrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1); \ |
---|
46 | void short_name(t,set_,matrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, t x); \ |
---|
47 | void short_name(t,set_,matrix_param)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, t x, t xstep, t ystep); \ |
---|
48 | void short_name(t,set_,matrix_i)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1); \ |
---|
49 | void short_name(t,set_,matrix_j)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1); |
---|
50 | |
---|
51 | |
---|
52 | set_type_matrix(int8_t); |
---|
53 | set_type_matrix(uint8_t); |
---|
54 | set_type_matrix(int16_t); |
---|
55 | set_type_matrix(uint16_t); |
---|
56 | set_type_matrix(int32_t); |
---|
57 | set_type_matrix(uint32_t); |
---|
58 | set_type_matrix(int64_t); |
---|
59 | set_type_matrix(uint64_t); |
---|
60 | set_type_matrix(float); |
---|
61 | set_type_matrix(double); |
---|
62 | set_type_matrix(rgb8); |
---|
63 | set_type_matrix(rgbx8); |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | /* |
---|
68 | * Initialisation des bords |
---|
69 | */ |
---|
70 | |
---|
71 | #define set_type_matrix_border(t) \ |
---|
72 | void short_name(t,set_,matrix_border)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t n, t x); \ |
---|
73 | void short_name(t,set_,matrix_border1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, t x); |
---|
74 | |
---|
75 | set_type_matrix_border(int8_t); |
---|
76 | set_type_matrix_border(uint8_t); |
---|
77 | set_type_matrix_border(int16_t); |
---|
78 | set_type_matrix_border(uint16_t); |
---|
79 | set_type_matrix_border(int32_t); |
---|
80 | set_type_matrix_border(uint32_t); |
---|
81 | set_type_matrix_border(int64_t); |
---|
82 | set_type_matrix_border(uint64_t); |
---|
83 | set_type_matrix_border(float); |
---|
84 | set_type_matrix_border(double); |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | #endif // _NR_SET2_H_ |
---|
89 | |
---|
90 | // Local Variables: |
---|
91 | // tab-width: 4 |
---|
92 | // c-basic-offset: 4 |
---|
93 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
94 | // indent-tabs-mode: nil |
---|
95 | // End: |
---|
96 | |
---|
97 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
98 | |
---|