Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/diderot.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/diderot.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 557, Tue Feb 22 20:03:12 2011 UTC revision 558, Tue Feb 22 20:09:16 2011 UTC
# Line 18  Line 18 
18    
19  #include <stdint.h>  #include <stdint.h>
20  #include <stdbool.h>  #include <stdbool.h>
21    #include <stdlib.h>
22    #include <math.h>
23    
24  /* library-call status */  /* library-call status */
25  typedef enum { DIDEROT_OK = 0, DIDEROT_FAIL = -1 } Status_t;  typedef enum { DIDEROT_OK = 0, DIDEROT_FAIL = -1 } Status_t;
# Line 40  Line 42 
42  typedef union { double r[4]; vec4d v; } union4d;  typedef union { double r[4]; vec4d v; } union4d;
43  typedef union { double r[8]; vec8d v; } union8d;  typedef union { double r[8]; vec8d v; } union8d;
44    
45    typedef int32_t vec2i __attribute__ ((vector_size (8)));
46    typedef int32_t vec4i __attribute__ ((vector_size (16)));
47    typedef int32_t vec8i __attribute__ ((vector_size (32)));
48    
49  /* vector lengths must be power of 2, but vec3 is useful, so we pad to 4 */  /* vector lengths must be power of 2, but vec3 is useful, so we pad to 4 */
50  typedef vec4f vec3f;  typedef vec4f vec3f;
51  typedef vec4d vec3d;  typedef vec4d vec3d;
# Line 86  Line 92 
92  /* Diderot library functions */  /* Diderot library functions */
93    
94  /* load image data from Nrrd files */  /* load image data from Nrrd files */
95  extern Status_t Diderot_LoadImage1D (Diderot_string_t name, Diderot_image1D_t **img);  extern Status_t Diderot_LoadImage1D (Diderot_string_t name, Diderot_image1D_t *img);
96  extern Status_t Diderot_LoadImage2D (Diderot_string_t name, Diderot_image2D_t **img);  extern Status_t Diderot_LoadImage2D (Diderot_string_t name, Diderot_image2D_t *img);
97  extern Status_t Diderot_LoadImage3D (Diderot_string_t name, Diderot_image3D_t **img);  extern Status_t Diderot_LoadImage3D (Diderot_string_t name, Diderot_image3D_t *img);
98    
99  /* functions to get input-parameter values */  /* functions to get input-parameter values */
100  extern Status_t Diderot_InputString (const char *, const char **, bool);  extern Status_t Diderot_InputString (const char *, const char **, bool);

Legend:
Removed from v.557  
changed lines
  Added in v.558

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0