source: soft/giet_vm/applications/rosenfeld/nrc2/include/nralloc2.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: 4.4 KB
Line 
1/* ------------------ */
2/* --- nralloc2.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 * 2002/06/11 ajout des fonctions endline
13 */
14
15#ifndef __NRALLOC2_H__
16#define __NRALLOC2_H__
17
18#ifdef __cplusplus
19#pragma message ("C++")
20extern "C" {
21#endif
22   
23#ifdef VERBOSE_PRAGMA
24//#pragma message ("- *** include nralloc2.h ***")
25#endif
26
27/*
28 * --------------
29 * --- matrix ---
30 * --------------
31 */
32
33IMAGE_EXPORT(sint8**)     si8matrix(long nrl, long nrh, long ncl, long nch);
34IMAGE_EXPORT(uint8**)     ui8matrix(long nrl, long nrh, long ncl, long nch);
35IMAGE_EXPORT(sint16**)   si16matrix(long nrl, long nrh, long ncl, long nch);
36IMAGE_EXPORT(uint16**)   ui16matrix(long nrl, long nrh, long ncl, long nch);
37IMAGE_EXPORT(sint32**)   si32matrix(long nrl, long nrh, long ncl, long nch);
38IMAGE_EXPORT(uint32**)   ui32matrix(long nrl, long nrh, long ncl, long nch);
39IMAGE_EXPORT(sint64**)   si64matrix(long nrl, long nrh, long ncl, long nch);
40IMAGE_EXPORT(uint64**)   ui64matrix(long nrl, long nrh, long ncl, long nch);
41
42IMAGE_EXPORT(float32**)   f32matrix(long nrl, long nrh, long ncl, long nch);
43IMAGE_EXPORT(float64**)   f64matrix(long nrl, long nrh, long ncl, long nch);
44
45IMAGE_EXPORT(complex32**) c32matrix(long nrl, long nrh, long ncl, long nch);
46IMAGE_EXPORT(complex64**) c64matrix(long nrl, long nrh, long ncl, long nch);
47
48IMAGE_EXPORT(rgb8**)     rgb8matrix(long nrl, long nrh, long ncl, long nch);
49IMAGE_EXPORT(rgbx8**)   rgbx8matrix(long nrl, long nrh, long ncl, long nch);
50//IMAGE_EXPORT(rgb32**)   rgb32matrix(long nrl, long nrh, long ncl, long nch);
51//IMAGE_EXPORT(rgbx32**) rgbx32matrix(long nrl, long nrh, long ncl, long nch);
52
53/*
54 * ---------------
55 * --- matrix0 ---
56 * ---------------
57 */
58
59IMAGE_EXPORT(sint8**)     si8matrix0(long nrl, long nrh, long ncl, long nch);
60IMAGE_EXPORT(uint8**)     ui8matrix0(long nrl, long nrh, long ncl, long nch);
61IMAGE_EXPORT(sint16**)   si16matrix0(long nrl, long nrh, long ncl, long nch);
62IMAGE_EXPORT(uint16**)   ui16matrix0(long nrl, long nrh, long ncl, long nch);
63IMAGE_EXPORT(sint32**)    i32matrix0(long nrl, long nrh, long ncl, long nch);
64IMAGE_EXPORT(uint32**)   ui32matrix0(long nrl, long nrh, long ncl, long nch);
65IMAGE_EXPORT(sint64**)   si64matrix0(long nrl, long nrh, long ncl, long nch);
66IMAGE_EXPORT(uint64**)   ui64matrix0(long nrl, long nrh, long ncl, long nch);
67IMAGE_EXPORT(rgb8**)     rgb8matrix0(long nrl, long nrh, long ncl, long nch);
68IMAGE_EXPORT(rgbx8**)   rgbx8matrix0(long nrl, long nrh, long ncl, long nch);
69IMAGE_EXPORT(rgb32**)   rgb32matrix0(long nrl, long nrh, long ncl, long nch);
70IMAGE_EXPORT(rgbx32**) rgbx32matrix0(long nrl, long nrh, long ncl, long nch);
71
72IMAGE_EXPORT(float32**)   f32matrix0(long nrl, long nrh, long ncl, long nch);
73IMAGE_EXPORT(float64**)   f64matrix0(long nrl, long nrh, long ncl, long nch);
74
75/*
76 * -------------------
77 * --- free_matrix ---
78 * -------------------
79 */ 
80
81IMAGE_EXPORT(void) free_si8matrix  (sint8  **m, long nrl, long nrh, long ncl, long nch);
82IMAGE_EXPORT(void) free_ui8matrix  (uint8  **m, long nrl, long nrh, long ncl, long nch);
83IMAGE_EXPORT(void) free_si16matrix (sint16 **m, long nrl, long nrh, long ncl, long nch);
84IMAGE_EXPORT(void) free_ui16matrix (uint16 **m, long nrl, long nrh, long ncl, long nch);
85IMAGE_EXPORT(void) free_si32matrix (sint32 **m, long nrl, long nrh, long ncl, long nch);
86IMAGE_EXPORT(void) free_ui32matrix (uint32 **m, long nrl, long nrh, long ncl, long nch);
87IMAGE_EXPORT(void) free_si64matrix (sint64 **m, long nrl, long nrh, long ncl, long nch);
88IMAGE_EXPORT(void) free_ui64matrix (uint64 **m, long nrl, long nrh, long ncl, long nch);
89
90IMAGE_EXPORT(void) free_f32matrix (float32   **m, long nrl, long nrh, long ncl, long nch);
91IMAGE_EXPORT(void) free_f64matrix (float64   **m, long nrl, long nrh, long ncl, long nch);
92IMAGE_EXPORT(void) free_c32matrix (complex32 **m, long nrl, long nrh, long ncl, long nch);
93IMAGE_EXPORT(void) free_c64matrix (complex64 **m, long nrl, long nrh, long ncl, long nch);
94
95IMAGE_EXPORT(void) free_rgb8matrix  (rgb8   **m, long nrl, long nrh, long ncl, long nch);
96IMAGE_EXPORT(void) free_rgbx8matrix (rgbx8  **m, long nrl, long nrh, long ncl, long nch);
97IMAGE_EXPORT(void) free_rgb32matrix (rgb32  **m, long nrl, long nrh, long ncl, long nch);
98IMAGE_EXPORT(void) free_rgbx32matrix(rgbx32 **m, long nrl, long nrh, long ncl, long nch);
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif /* __NRALLOC2_H__ */
Note: See TracBrowser for help on using the repository browser.