source: soft/giet_vm/applications/rosenfeld/nrc2/src/nrwrap1.c

Last change on this file was 826, checked in by meunier, 7 years ago
  • Mise à jour NR2 et Rosenfeld
File size: 1.5 KB
Line 
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) \
36t * 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
43type_vector_map_1D_pitch(int8_t);
44type_vector_map_1D_pitch(uint8_t);
45type_vector_map_1D_pitch(int16_t);
46type_vector_map_1D_pitch(uint16_t);
47type_vector_map_1D_pitch(int32_t);
48type_vector_map_1D_pitch(uint32_t);
49type_vector_map_1D_pitch(int64_t);
50type_vector_map_1D_pitch(uint64_t);
51type_vector_map_1D_pitch(float);
52type_vector_map_1D_pitch(double);
53type_vector_map_1D_pitch(rgb8);
54type_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
Note: See TracBrowser for help on using the repository browser.