/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 dict_hw/src/normxcorr_hw.h

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-25 23:10:35 UTC
  • Revision ID: csa@dside.dyndns.org-20100425231035-ggdq59911gurvsu3
Preloading of images

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
typedef struct STProcessingState *ProcessingState;
123
123
 
124
124
 
 
125
enum DICTPreloadStatus {
 
126
    DICT_PRELOAD_NOPE = 0,
 
127
    DICT_PRELOAD_REQUEST = 1,
 
128
    DICT_PRELOAD_READY = 2
 
129
};
 
130
 
125
131
struct STDICTContext {
126
132
    int ncp;
127
133
    int ncp_alloc_size;
135
141
    DICTImageType image_type;
136
142
    void *image_buf;            // Temporary buffer for images (specific-format)
137
143
    unsigned char *image;       // Reduced format
 
144
    unsigned char *image2;      // Reduced format, for image pre-loading
138
145
    unsigned char *base_image;  // Stored base image
139
146
 
140
147
    float *points;                      // various information on control points
145
152
    float *res_x;                       // External points buffer
146
153
    float *res_y;                       // External points buffer
147
154
 
 
155
    int preload;                        // Request preloading of image
 
156
    char *preload_image;                // Name of preloaded image file
 
157
    size_t preload_image_size;          // Buffer size
 
158
    char *preload_request;              // Name of image to preload
 
159
    size_t preload_request_size;        // Buffer size
148
160
 
149
161
        // Here are starting non-zeroed parameters, so the matlab_mode should be first
150
162
    int matlab_mode;            // 2D stored transposed (i.e. by columns)