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

Last change on this file since 778 was 772, checked in by meunier, 9 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
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#ifdef __cplusplus
16#pragma message ("C++")
17extern "C" {
18#endif
19   
20#ifdef VERBOSE_PRAGMA
21//#pragma message ("- *** include nrwrap1.h ***")
22#endif
23
24// ------------------------------- //
25// --- vector_map (allocation) --- //
26// ------------------------------- //
27
28// map allocation = nothing to do in 1D
29
30IMAGE_EXPORT(sint8*)    si8vector_map(int nl, int nh);
31IMAGE_EXPORT(uint8*)    ui8vector_map(int nl, int nh);
32IMAGE_EXPORT(sint16*)  si16vector_map(int nl, int nh);
33IMAGE_EXPORT(uint16*)  ui16vector_map(int nl, int nh);
34IMAGE_EXPORT(sint32*)  si32vector_map(int nl, int nh);
35IMAGE_EXPORT(uint32*)  ui32vector_map(int nl, int nh);
36
37IMAGE_EXPORT(float32*)  f32vector_map(int nl, int nh);
38IMAGE_EXPORT(float64*)  f64vector_map(int nl, int nh);
39
40IMAGE_EXPORT(rgb8*)    rgb8vector_map(int nl, int nh);
41IMAGE_EXPORT(rgbx8*)  rgbx8vector_map(int nl, int nh);
42
43// ------------------ //
44// --- Mapping 1D --- //
45// ------------------ //
46
47IMAGE_EXPORT(sint8*)   si8vector_map_1D_pitch(sint8   *v, int nl, int nh, void *data_1D, int pitch);
48IMAGE_EXPORT(uint8*)   ui8vector_map_1D_pitch(uint8   *v, int nl, int nh, void *data_1D, int pitch);
49IMAGE_EXPORT(sint16*) si16vector_map_1D_pitch(sint16  *v, int nl, int nh, void *data_1D, int pitch);
50IMAGE_EXPORT(uint16*) ui16vector_map_1D_pitch(uint16  *v, int nl, int nh, void *data_1D, int pitch);
51IMAGE_EXPORT(sint32*) si32vector_map_1D_pitch(sint32  *v, int nl, int nh, void *data_1D, int pitch);
52IMAGE_EXPORT(uint32*) ui32vector_map_1D_pitch(uint32  *v, int nl, int nh, void *data_1D, int pitch);
53
54IMAGE_EXPORT(float32*) f32vector_map_1D_pitch(float32 *v, int nl, int nh, void *data_1D, int pitch);
55IMAGE_EXPORT(float64*) f64vector_map_1D_pitch(float64 *v, int nl, int nh, void *data_1D, int pitch);
56
57IMAGE_EXPORT(rgb8*)   rgb8vector_map_1D_pitch(rgb8    *v, int nl, int nh, void *data_1D, int pitch);
58IMAGE_EXPORT(rgbx8*) rgbx8vector_map_1D_pitch(rgbx8   *v, int nl, int nh, void *data_1D, int pitch);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif // _NR_WRAP1_H_
Note: See TracBrowser for help on using the repository browser.