1 | /* ----------------- */ |
---|
2 | /* --- nrwrap1.c --- */ |
---|
3 | /* ----------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | * Distributed under the Boost Software License, Version 1.0 |
---|
9 | * see accompanying file LICENSE.txt or copy it at |
---|
10 | * http://www.boost.org/LICENSE_1_0.txt |
---|
11 | */ |
---|
12 | |
---|
13 | /* |
---|
14 | * 2002/06/11 ajout des fonctions endline |
---|
15 | */ |
---|
16 | |
---|
17 | #include <stdio.h> |
---|
18 | #include <stddef.h> |
---|
19 | #include <stdlib.h> |
---|
20 | |
---|
21 | #include "mypredef.h" |
---|
22 | #include "nrtype.h" |
---|
23 | #include "nrdef.h" |
---|
24 | #include "nrmacro.h" |
---|
25 | #include "nrkernel.h" |
---|
26 | |
---|
27 | #include "nrwrap1.h" |
---|
28 | |
---|
29 | |
---|
30 | /* ------------------ */ |
---|
31 | /* --- Mapping 1D --- */ |
---|
32 | /* ------------------ */ |
---|
33 | |
---|
34 | #undef type_vector_map_1D_pitch |
---|
35 | #define type_vector_map_1D_pitch(t) \ |
---|
36 | t * short_name(t,,vector_map_1D_pitch)(t * v, int32_t nl, int32_t nh, void * data_1D, int32_t pitch) \ |
---|
37 | { \ |
---|
38 | v = (t *) data_1D; \ |
---|
39 | v -= nl; \ |
---|
40 | return v; \ |
---|
41 | } |
---|
42 | |
---|
43 | type_vector_map_1D_pitch(int8_t); |
---|
44 | type_vector_map_1D_pitch(uint8_t); |
---|
45 | type_vector_map_1D_pitch(int16_t); |
---|
46 | type_vector_map_1D_pitch(uint16_t); |
---|
47 | type_vector_map_1D_pitch(int32_t); |
---|
48 | type_vector_map_1D_pitch(uint32_t); |
---|
49 | type_vector_map_1D_pitch(int64_t); |
---|
50 | type_vector_map_1D_pitch(uint64_t); |
---|
51 | type_vector_map_1D_pitch(float); |
---|
52 | type_vector_map_1D_pitch(double); |
---|
53 | type_vector_map_1D_pitch(rgb8); |
---|
54 | type_vector_map_1D_pitch(rgbx8); |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | // Local Variables: |
---|
60 | // tab-width: 4 |
---|
61 | // c-basic-offset: 4 |
---|
62 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
63 | // indent-tabs-mode: nil |
---|
64 | // End: |
---|
65 | |
---|
66 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
67 | |
---|