source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrwrap1.h @ 826

Last change on this file since 826 was 826, checked in by meunier, 7 years ago
  • Mise à jour NR2 et Rosenfeld
File size: 2.2 KB
Line 
1/* ----------------- */
2/* --- nrwrap1.h --- */
3/* ----------------- */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8*
9*/
10
11
12#ifndef _NR_WRAP1_H_
13#define _NR_WRAP1_H_
14
15
16// ------------------------------- //
17// --- vector_map (allocation) --- //
18// ------------------------------- //
19
20// map allocation = nothing to do in 1D
21
22IMAGE_EXPORT(sint8*)    si8vector_map(int nl, int nh);
23IMAGE_EXPORT(uint8*)    ui8vector_map(int nl, int nh);
24IMAGE_EXPORT(sint16*)  si16vector_map(int nl, int nh);
25IMAGE_EXPORT(uint16*)  ui16vector_map(int nl, int nh);
26IMAGE_EXPORT(sint32*)  si32vector_map(int nl, int nh);
27IMAGE_EXPORT(uint32*)  ui32vector_map(int nl, int nh);
28
29IMAGE_EXPORT(float32*)  f32vector_map(int nl, int nh);
30IMAGE_EXPORT(float64*)  f64vector_map(int nl, int nh);
31
32IMAGE_EXPORT(rgb8*)    rgb8vector_map(int nl, int nh);
33IMAGE_EXPORT(rgbx8*)  rgbx8vector_map(int nl, int nh);
34
35// ------------------ //
36// --- Mapping 1D --- //
37// ------------------ //
38
39IMAGE_EXPORT(sint8*)   si8vector_map_1D_pitch(sint8   *v, int nl, int nh, void *data_1D, int pitch);
40IMAGE_EXPORT(uint8*)   ui8vector_map_1D_pitch(uint8   *v, int nl, int nh, void *data_1D, int pitch);
41IMAGE_EXPORT(sint16*) si16vector_map_1D_pitch(sint16  *v, int nl, int nh, void *data_1D, int pitch);
42IMAGE_EXPORT(uint16*) ui16vector_map_1D_pitch(uint16  *v, int nl, int nh, void *data_1D, int pitch);
43IMAGE_EXPORT(sint32*) si32vector_map_1D_pitch(sint32  *v, int nl, int nh, void *data_1D, int pitch);
44IMAGE_EXPORT(uint32*) ui32vector_map_1D_pitch(uint32  *v, int nl, int nh, void *data_1D, int pitch);
45
46IMAGE_EXPORT(float32*) f32vector_map_1D_pitch(float32 *v, int nl, int nh, void *data_1D, int pitch);
47IMAGE_EXPORT(float64*) f64vector_map_1D_pitch(float64 *v, int nl, int nh, void *data_1D, int pitch);
48
49IMAGE_EXPORT(rgb8*)   rgb8vector_map_1D_pitch(rgb8    *v, int nl, int nh, void *data_1D, int pitch);
50IMAGE_EXPORT(rgbx8*) rgbx8vector_map_1D_pitch(rgbx8   *v, int nl, int nh, void *data_1D, int pitch);
51
52#endif // _NR_WRAP1_H_
53
54// Local Variables:
55// tab-width: 4
56// c-basic-offset: 4
57// c-file-offsets:((innamespace . 0)(inline-open . 0))
58// indent-tabs-mode: nil
59// End:
60
61// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
62
Note: See TracBrowser for help on using the repository browser.