source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrwrap2.h @ 775

Last change on this file since 775 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: 5.6 KB
Line 
1/* ----------------- */
2/* --- nrwrap2.h --- */
3/* ----------------- */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8 *
9*/
10
11#ifndef _NR_WRAP2_H_
12#define _NR_WRAP2_H_
13
14#ifdef __cplusplus
15#ifdef PRAGMA_VERBOSE
16#pragma message ("C++")
17#endif
18extern "C" {
19#endif
20
21// ------------------ //
22// --- matrix_map --- //
23// ------------------ //
24
25IMAGE_EXPORT(sint8**)   si8matrix_map(long nrl, long nrh, long ncl, long nch);
26IMAGE_EXPORT(uint8**)   ui8matrix_map(long nrl, long nrh, long ncl, long nch);
27IMAGE_EXPORT(sint16**) si16matrix_map(long nrl, long nrh, long ncl, long nch);
28IMAGE_EXPORT(uint16**) ui16matrix_map(long nrl, long nrh, long ncl, long nch);
29IMAGE_EXPORT(sint32**) si32matrix_map(long nrl, long nrh, long ncl, long nch);
30IMAGE_EXPORT(uint32**) ui32matrix_map(long nrl, long nrh, long ncl, long nch);
31IMAGE_EXPORT(sint64**) si64matrix_map(long nrl, long nrh, long ncl, long nch);
32IMAGE_EXPORT(uint64**) ui64matrix_map(long nrl, long nrh, long ncl, long nch);
33
34IMAGE_EXPORT(float32**) f32matrix_map(long nrl, long nrh, long ncl, long nch);
35IMAGE_EXPORT(float64**) f64matrix_map(long nrl, long nrh, long ncl, long nch);
36
37IMAGE_EXPORT(rgb8**)   rgb8matrix_map(long nrl, long nrh, long ncl, long nch);
38IMAGE_EXPORT(rgbx8**) rgbx8matrix_map(long nrl, long nrh, long ncl, long nch);
39
40IMAGE_EXPORT(sint8 **)   si8matrix_map_1D_pitch(sint8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
41IMAGE_EXPORT(uint8 **)   ui8matrix_map_1D_pitch(uint8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
42IMAGE_EXPORT(sint16**)  si16matrix_map_1D_pitch(sint16  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
43IMAGE_EXPORT(uint16**)  ui16matrix_map_1D_pitch(uint16  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
44IMAGE_EXPORT(sint32**)  si32matrix_map_1D_pitch(sint32  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
45IMAGE_EXPORT(uint32**)  ui32matrix_map_1D_pitch(uint32  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
46IMAGE_EXPORT(sint64**)  si64matrix_map_1D_pitch(sint64  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
47IMAGE_EXPORT(uint64**)  ui64matrix_map_1D_pitch(uint64  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
48IMAGE_EXPORT(float32**)  f32matrix_map_1D_pitch(float32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
49IMAGE_EXPORT(float64**)  f64matrix_map_1D_pitch(float64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
50IMAGE_EXPORT(rgb8**)    rgb8matrix_map_1D_pitch(rgb8    **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
51IMAGE_EXPORT(rgbx8**)  rgbx8matrix_map_1D_pitch(rgbx8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
52
53IMAGE_EXPORT(sint8 **)   si8matrix_remap_1D_pitch(sint8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
54IMAGE_EXPORT(uint8 **)   ui8matrix_remap_1D_pitch(uint8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
55IMAGE_EXPORT(sint16**)  si16matrix_remap_1D_pitch(sint16  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
56IMAGE_EXPORT(uint16**)  ui16matrix_remap_1D_pitch(uint16  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
57IMAGE_EXPORT(sint32**)  si32matrix_remap_1D_pitch(sint32  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
58IMAGE_EXPORT(uint32**)  ui32matrix_remap_1D_pitch(uint32  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
59IMAGE_EXPORT(sint64**)  si64matrix_remap_1D_pitch(sint64  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
60IMAGE_EXPORT(uint64**)  ui64matrix_remap_1D_pitch(uint64  **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
61IMAGE_EXPORT(float32**)  f32matrix_remap_1D_pitch(float32 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
62IMAGE_EXPORT(float64**)  f64matrix_remap_1D_pitch(float64 **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
63IMAGE_EXPORT(rgb8**)    rgb8matrix_remap_1D_pitch(rgb8    **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
64IMAGE_EXPORT(rgbx8**)  rgbx8matrix_remap_1D_pitch(rgbx8   **m, long nrl, long nrh, long ncl, long nch, void *data_1D, long pitch);
65
66/*
67 * ---------------
68 * free_matrix_map
69 * ---------------
70 */
71
72IMAGE_EXPORT(void) free_si8matrix_map  (sint8   **m, long nrl, long nrh, long ncl, long nch);
73IMAGE_EXPORT(void) free_ui8matrix_map  (uint8   **m, long nrl, long nrh, long ncl, long nch);
74IMAGE_EXPORT(void) free_si16matrix_map (sint16  **m, long nrl, long nrh, long ncl, long nch);
75IMAGE_EXPORT(void) free_ui16matrix_map (uint16  **m, long nrl, long nrh, long ncl, long nch);
76IMAGE_EXPORT(void) free_si32matrix_map (sint32  **m, long nrl, long nrh, long ncl, long nch);
77IMAGE_EXPORT(void) free_ui32matrix_map (uint32  **m, long nrl, long nrh, long ncl, long nch);
78IMAGE_EXPORT(void) free_si64matrix_map (sint64  **m, long nrl, long nrh, long ncl, long nch);
79IMAGE_EXPORT(void) free_ui64matrix_map (uint64  **m, long nrl, long nrh, long ncl, long nch);
80
81IMAGE_EXPORT(void) free_f32matrix_map  (float32 **m, long nrl, long nrh, long ncl, long nch);
82IMAGE_EXPORT(void) free_f64matrix_map  (float64 **m, long nrl, long nrh, long ncl, long nch);
83
84IMAGE_EXPORT(void) free_rgb8matrix_map (rgb8    **m, long nrl, long nrh, long ncl, long nch);
85IMAGE_EXPORT(void) free_rgbx8matrix_map(rgbx8   **m, long nrl, long nrh, long ncl, long nch);
86
87#ifdef __cplusplus
88}
89#endif
90
91#else
92//#pragma message(" Warning : attemp to re-include nrwrap2.h")
93#endif /* _NR_WRAP2_H_ */
Note: See TracBrowser for help on using the repository browser.