/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to cuda/normxcorr_hw.h

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-10 03:43:22 UTC
  • Revision ID: csa@dside.dyndns.org-20091210034322-8umwx60j7ix21l86
Enforce naming conventions for buffers and caches

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
struct STProcessingState {
63
63
    int stored;                         // flag indicating if we already have coordinates in coords stored
 
64
 
 
65
    uint8_t *banlist;                   // control points banned from computations for various reasons
 
66
 
64
67
    mxArray *coords;                    // Matlab array with current coordinates
 
68
 
65
69
    float *points;                      // various information on control points
66
70
                                        //      base_x, base_y, data_x, data_y
67
71
                                        //      base_frac_x, base_frac_y
68
72
                                        //      move_x, move_y
69
73
 
70
 
    uint8_t *banlist;                   // control points banned from computations for various reasons
 
74
 
 
75
    float *cuda_points;                 // Various information on control points:
 
76
                                        // 0: data_x
 
77
                                        // 1: data_y
 
78
                                        // 2: sum
 
79
                                        // 3: denom
71
80
 
72
81
    uint8_t *input_buffer;              // Input Image buffer / Host
73
82
    uint8_t *cuda_input_buffer;         // Input Image buffer / Device
77
86
 
78
87
    void *cuda_temp_buffer;             // Main computational buffer, temporary
79
88
 
 
89
    
80
90
    cufftComplex *cuda_fft_cache;       // Stored FFT's of the template image
81
 
    
82
 
    float *cuda_lsum_temp;              // Temporary buffer for local sum comp.
83
 
    
84
 
    float *cuda_lsum_buffer;
85
 
    float *cuda_denom_buffer;
86
 
    
87
 
    float *cuda_cp;                     // Various information on control points:
88
 
                                        // 0: data_x
89
 
                                        // 1: data_y
90
 
                                        // 2: sum
91
 
                                        // 3: denom
 
91
 
 
92
    float *cuda_lsum_cache;             // Cache of local sums
 
93
    float *cuda_denom_cache;            // Cahce of denoms
 
94
 
 
95
    float *cuda_lsum_temp;              // Temporary buffer for local sum comp, first two pre-zeroed
 
96
    
 
97
 
92
98
 
93
99
    int fft_initialized;                // Flag indicating if CUFFT plan is initialized
94
100
    cufftHandle cufft_plan;