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

SCM Repository

[diderot] Annotation of /branches/vis12-cl/src/compiler/cl-target/fragments/cl-types.in
ViewVC logotype

Annotation of /branches/vis12-cl/src/compiler/cl-target/fragments/cl-types.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2716 - (view) (download)

1 : jhr 2714 #if defined(DIDEROT_INT)
2 :     typedef int Diderot_int_t;
3 :     #else
4 : jhr 2716 typedef long Diderot_int_t;
5 : jhr 2714 #endif
6 :    
7 :     #if defined(DIDEROT_SINGLE_PRECISION)
8 :     typedef float Diderot_real_t;
9 :     typedef float2 Diderot_vec2_t;
10 :     typedef float3 Diderot_vec3_t;
11 :     typedef float4 Diderot_vec4_t;
12 :     #define VEC2(a,b) (float2)((a), (b))
13 :     #define VEC3(a,b,c) (float3)_V3((a), (b), (c))
14 :     #define VEC4(a,b,c,d) (float4)((a), (b), (c), (d))
15 :     #define VEC8(a,b,c,d,e,f,g,h) (float8)((a), (b), (c), (d), (e), (f), (g), (h))
16 :     #define EPSILON 1.0E-12
17 :     #else
18 :     # error double precision not yet supported
19 :     #endif
20 :    
21 :     typedef Diderot_vec2_t Diderot_Mat2x2_t[2]; // represented as row vectors
22 :     typedef Diderot_vec3_t Diderot_Mat3x3_t[3]; // represented as row vectors
23 :     typedef Diderot_vec4_t Diderot_Mat4x4_t[4]; // represented as row vectors
24 :    
25 :     // Image types. Note that these should have the same organization as
26 :     // the Shadow_image[123]D_t types.
27 :     //
28 :     typedef struct {
29 :     uint size[1];
30 :     Diderot_real_t s; // scaling from world-space to image-space
31 :     Diderot_real_t t; // translation from world-space to image-space
32 :     void *data; // pointer to image data
33 :     } Diderot_image1D_t;
34 :    
35 :     typedef struct {
36 :     uint size[2]; // sizes (fast to slow)
37 :     Diderot_Mat2x2_t w2i; // affine tranform from world space to index space. This is the
38 :     // inverse of the index to world-space transform that is loaded from
39 :     // the Nrrd file.
40 :     Diderot_vec2_t tVec; // translation part of world to index transform
41 :     Diderot_Mat2x2_t w2iT; // transpose w3i
42 :     void *data; // pointer to image data
43 :     } Diderot_image2D_t;
44 :    
45 :     typedef struct {
46 :     uint size[3]; // sizes (fast to slow)
47 :     Diderot_Mat3x3_t w2i; // affine tranform from world space to index space. This is the
48 :     // inverse of the index to world-space transform that is loaded from
49 :     // the Nrrd file.
50 :     Diderot_vec3_t tVec; // translation part of world to index transform
51 :     Diderot_Mat3x3_t w2iT; // transpose w3i
52 :     void *data; // pointer to image data
53 :     } Diderot_image3D_t;

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