bzr branch
http://darksoft.org/webbzr/perf/fdk
1
by Suren A. Chilingaryan
Initial |
1 |
/* structure to pass arguments to thread */
|
2 |
struct thread_info /* Used as argument to thread_start() */ |
|
3 |
{
|
|
4 |
pthread_t thread_id; /* ID returned by pthread_create() */ |
|
5 |
int thread_num; /* Application-defined thread # */ |
|
6 |
int n_elements; |
|
7 |
int n_proj; |
|
8 |
float cor; |
|
9 |
float d; |
|
10 |
float detector_size; |
|
11 |
float pixel_size; |
|
12 |
float cor_offset; |
|
13 |
float detector_offset_u; |
|
14 |
float detector_offset_v; |
|
15 |
float detector_offset_z; |
|
16 |
float *source; |
|
17 |
float *u_detector; |
|
18 |
float *v_detector; |
|
19 |
float *n_detector; |
|
20 |
float *projections; |
|
21 |
float *slice_x; |
|
22 |
float *slice_y; |
|
23 |
float *slice_coord_z; |
|
24 |
float *out_volume; |
|
2
by Suren A. Chilingaryan
Intel compiler |
25 |
|
26 |
int slices_per_iter; |
|
1
by Suren A. Chilingaryan
Initial |
27 |
};
|
28 |
||
29 |
#ifdef __cplusplus
|
|
30 |
extern "C" { |
|
31 |
#endif
|
|
32 |
||
33 |
void *process (void *args); |
|
34 |
||
35 |
#ifdef __cplusplus
|
|
36 |
}
|
|
37 |
#endif
|