source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrset1.h @ 777

Last change on this file since 777 was 772, checked in by meunier, 8 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File size: 4.8 KB
Line 
1/* ---------------- */
2/* --- nrset1.h --- */
3/* ---------------- */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8*/
9
10#ifndef _NRSET1_H_
11#define _NRSET1_H_
12
13#ifdef __cplusplus
14#ifdef PRAGMA_VERBOSE
15#pragma message ("C++")
16#endif
17extern "C" {
18#endif
19
20#ifdef PRAGMA_VERBOSE
21//#pragma message("- include nrset1.h")
22#endif
23
24/*
25 * ------------
26 * --- Zero ---
27 * ------------
28 */
29
30IMAGE_EXPORT(void) zero_si8vector  (sint8   *v, long nl, long nh);
31IMAGE_EXPORT(void) zero_ui8vector  (uint8   *v, long nl, long nh);
32IMAGE_EXPORT(void) zero_si16vector (sint16  *v, long nl, long nh);
33IMAGE_EXPORT(void) zero_ui16vector (uint16  *v, long nl, long nh);
34IMAGE_EXPORT(void) zero_si32vector (sint32  *v, long nl, long nh);
35IMAGE_EXPORT(void) zero_ui32vector (uint32  *v, long nl, long nh);
36IMAGE_EXPORT(void) zero_si64vector (sint64  *v, long nl, long nh);
37IMAGE_EXPORT(void) zero_ui64vector (uint64  *v, long nl, long nh);
38
39IMAGE_EXPORT(void) zero_f32vector  (float32 *v, long nl, long nh);
40IMAGE_EXPORT(void) zero_f64vector  (float64 *v, long nl, long nh);
41
42IMAGE_EXPORT(void) zero_rgb8vector (rgb8    *v, long nl, long nh);
43IMAGE_EXPORT(void) zero_rgbx8vector(rgbx8   *v, long nl, long nh);
44
45/*
46 * ------------------
47 * --- set_vector ---
48 * ------------------
49 */
50
51IMAGE_EXPORT(void) set_si8vector  (sint8   *v, long nl, long nh, sint8   x);
52IMAGE_EXPORT(void) set_ui8vector  (uint8   *v, long nl, long nh, uint8   x);
53IMAGE_EXPORT(void) set_si16vector (sint16  *v, long nl, long nh, int16   x);
54IMAGE_EXPORT(void) set_ui16vector (uint16  *v, long nl, long nh, uint16  x);
55IMAGE_EXPORT(void) set_si32vector (sint32  *v, long nl, long nh, sint32  x);
56IMAGE_EXPORT(void) set_ui32vector (uint32  *v, long nl, long nh, uint32  x);
57IMAGE_EXPORT(void) set_si64vector (sint64  *v, long nl, long nh, sint64  x);
58IMAGE_EXPORT(void) set_ui64vector (uint64  *v, long nl, long nh, uint64  x);
59
60IMAGE_EXPORT(void) set_f32vector  (float32 *v, long nl, long nh, float32 x);
61IMAGE_EXPORT(void) set_f64vector  (float64 *v, long nl, long nh, float64 x);
62
63IMAGE_EXPORT(void) set_rgb8vector (rgb8    *v, long nl, long nh, rgb8    x);
64IMAGE_EXPORT(void) set_rgbx8vector(rgbx8   *v, long nl, long nh, rgbx8   x);
65
66/*
67 * ------------------------
68 * --- set_vector_param ---
69 * ------------------------
70 */
71
72IMAGE_EXPORT(void) set_si8vector_param  (sint8   *v, long nl, long nh, sint8   x, sint8  xstep);
73IMAGE_EXPORT(void) set_ui8vector_param  (uint8   *v, long nl, long nh, uint8   x, uint8  xstep);
74IMAGE_EXPORT(void) set_si16vector_param (sint16  *v, long nl, long nh, int16   x, sint16 xstep);
75IMAGE_EXPORT(void) set_ui16vector_param (uint16  *v, long nl, long nh, uint16  x, uint16 xstep);
76IMAGE_EXPORT(void) set_si32vector_param (sint32  *v, long nl, long nh, sint32  x, sint32 xstep);
77IMAGE_EXPORT(void) set_ui32vector_param (uint32  *v, long nl, long nh, uint32  x, uint32 xstep);
78IMAGE_EXPORT(void) set_si64vector_param (sint64  *v, long nl, long nh, sint64  x, sint64 xstep);
79IMAGE_EXPORT(void) set_ui64vector_param (uint64  *v, long nl, long nh, uint64  x, uint64 xstep);
80
81IMAGE_EXPORT(void) set_f32vector_param  (float32 *v, long nl, long nh, float32 x, float32 xstep);
82IMAGE_EXPORT(void) set_f64vector_param  (float64 *v, long nl, long nh, float64 x, float64 xstep);
83
84IMAGE_EXPORT(void) set_rgb8vector_param (rgb8    *v, long nl, long nh, rgb8    x, rgb8  xstep);
85IMAGE_EXPORT(void) set_rgbx8vector_param(rgbx8   *v, long nl, long nh, rgbx8   x, rgbx8 xstep);
86
87/*
88 * --------------------
89 * --- set_vector_j ---
90 * --------------------
91 */
92
93IMAGE_EXPORT(void) set_si8vector_j  (sint8   *v, long nl, long nh);
94IMAGE_EXPORT(void) set_ui8vector_j  (uint8   *v, long nl, long nh);
95IMAGE_EXPORT(void) set_si16vector_j (sint16  *v, long nl, long nh);
96IMAGE_EXPORT(void) set_ui16vector_j (uint16  *v, long nl, long nh);
97IMAGE_EXPORT(void) set_si32vector_j (sint32  *v, long nl, long nh);
98IMAGE_EXPORT(void) set_ui32vector_j (uint32  *v, long nl, long nh);
99
100IMAGE_EXPORT(void) set_f32vector_j  (float32 *v, long nl, long nh);
101IMAGE_EXPORT(void) set_f64vector_j  (float64 *v, long nl, long nh);
102
103IMAGE_EXPORT(void) set_rgb8vector_j (rgb8    *v, long nl, long nh);
104IMAGE_EXPORT(void) set_rgbx8vector_j(rgbx8   *v, long nl, long nh);
105
106/*
107 * ----------------------
108 * --- set_vector_str ---
109 * ----------------------
110 */
111
112IMAGE_EXPORT(void) set_si8vector_str  (sint8  *v, long nl, long nh, char *str);
113IMAGE_EXPORT(void) set_ui8vector_str  (uint8  *v, long nl, long nh, char *str);
114IMAGE_EXPORT(void) set_si16vector_str (sint16 *v, long nl, long nh, char *str);
115IMAGE_EXPORT(void) set_ui16vector_str (uint16 *v, long nl, long nh, char *str);
116IMAGE_EXPORT(void) set_si32vector_str (sint32 *v, long nl, long nh, char *str);
117IMAGE_EXPORT(void) set_ui32vector_str (uint32 *v, long nl, long nh, char *str);
118
119#ifdef __cplusplus
120}
121#endif
122
123#endif /* __NRSET1_H__ */
Note: See TracBrowser for help on using the repository browser.