IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/include/dvomath.h

    r20827 r20839  
    44# define DVOMATH_H
    55
     6# define OPIHI_NAME_SIZE 1024
     7
    68# define NCHARS 256
    7 # define opihi_float float
     9# define opihi_flt double
    810# define opihi_int unsigned int
    911
    1012enum {ANYVECTOR, NEWVECTOR, OLDVECTOR};
    1113enum {ANYBUFFER, NEWBUFFER, OLDBUFFER};
    12 enum {OPIHI_FLOAT, OPIHI_INT};
     14enum {OPIHI_FLT, OPIHI_INT};
    1315
    1416typedef struct {                        /* representation of a variable (0-D) */
     
    1820
    1921typedef struct {                        /* representation of a vector (1-D) */
    20   char name[1024];
     22  char name[OPIHI_NAME_SIZE];
    2123  char type;
    22   float *elements;
    23   unsigned int *elementsInt;
     24  union {
     25    void      *Ptr;
     26    opihi_flt *Flt;
     27    opihi_int *Int;
     28  } elements;
    2429  int Nelements;
    2530} Vector;
    2631
    2732typedef struct {                        /* representation of buffer (image) */
    28   char name[1024];
    29   char file[1024];
     33  char name[OPIHI_NAME_SIZE];
     34  char file[OPIHI_NAME_SIZE];
    3035  Header header;
    3136  Matrix matrix;
     
    3742  char   *name;
    3843  char    type;
    39   float  *ptr;
    4044  Buffer *buffer;
    4145  Vector *vector;
    42   float   Float;
     46  opihi_flt FltValue;
     47  opihi_int IntValue;
    4348} StackVar;
    4449
Note: See TracChangeset for help on using the changeset viewer.