source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrtypex.h @ 772

Last change on this file since 772 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: 1.5 KB
Line 
1/* ----------------- */
2/* --- nrtypex.h --- */
3/* ----------------- */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8 *
9 * Modif : 15/01/2001 : rgb16, rgb32 are now signed (int16, int32)
10 * modif : 22/02/2001 : new types : float32 & float64
11 * modif : 15/02/2004 : clean-up previous definition for mac-OSX port
12 * modif:  1/06/2010 : split of def.h into nrtype.h nrdefine.h ...
13 */
14
15#ifndef _NRTYPE_X_H_
16#define _NRTYPE_X_H_
17
18#ifdef __cplusplus
19#pragma message ("C++")
20extern "C" {
21#endif
22   
23#define VERBOSE_PRAGMA
24
25#ifdef VERBOSE_PRAGMA
26//#pragma message ("- include nrtypeX.h")
27#endif
28
29// ---------------------------------- //
30// -- don not write under the line -- //
31// ---------------------------------- //
32
33#include "mypredef.h"
34
35/* ------------- */
36/* --- Point --- */
37/* ------------- */
38typedef struct {sint16  x; sint16  y;} si16Point;
39typedef struct {uint16  x; uint16  y;} ui16Point;
40typedef struct {sint32  x; sint32  y;} si32Point;
41typedef struct {uint32  x; uint32  y;} ui32Point;
42typedef struct {float32 x; float32 y;}  f32Point; // same as complex32
43
44/* --------------- */
45/* --- Triplet --- */
46/* --------------- */
47typedef struct {sint16  x; sint16  y; sint16  z;}  si16Triplet;
48typedef struct {uint16  x; uint16  y; uint16  z;}  ui16Triplet;
49typedef struct {sint32  x; sint32  y; sint32  z;}  si32Triplet;
50typedef struct {uint32  x; uint32  y; uint32  z;}  ui32Triplet;
51typedef struct {float32 x; float32 y; float32 z;}   f32Triplet; // same as complex32
52
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif // _NR_TYPE_X_H_
Note: See TracBrowser for help on using the repository browser.