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

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-25 04:39:54 UTC
  • Revision ID: csa@dside.dyndns.org-20100425043954-v7xm2bzohickyl9z
Multi-GPU support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _DICT_HW_H
2
2
#define _DICT_HW_H
3
3
 
4
 
typedef struct STProcessingState *DICTContext;
 
4
#define MAX_DEVICES 16
 
5
 
 
6
typedef struct STDICTContext *DICTContext;
5
7
 
6
8
# ifdef __cplusplus
7
9
extern "C" {
12
14
    DICT_ERROR_CUDA_MALLOC = 2,
13
15
    DICT_ERROR_MALLOC = 3,
14
16
    DICT_ERROR_CUDPP = 4,
15
 
    DICT_ERROR_IMAGE = 5
 
17
    DICT_ERROR_IMAGE = 5,
 
18
    DICT_ERROR_GLIB = 6
16
19
};
17
20
 
18
21
enum DICTFlags {
19
22
    DICT_FLAGS_DEFAULT = 0,
20
23
    DICT_FLAGS_FIXED_FFT_SIZE = 1,
21
 
    DICT_FLAGS_MATLAB_MODE = 2
 
24
    DICT_FLAGS_MATLAB_MODE = 2,
 
25
    DICT_FLAGS_SINGLE_THREAD = 4
22
26
};
23
27
 
24
28
 
49
53
int dictGetCurrentPoints(DICTContext ctx, float *points_x, float *points_y);
50
54
 
51
55
int dictLoadTemplateImage(DICTContext ctx, const unsigned char *img, int width, int height);
52
 
int dictLoadTemplateFragment(DICTContext ctx, int icp, int ncp, const unsigned char *img);
53
56
int dictLoadTemplateImageFile(DICTContext ctx, const char *name);
54
57
 
55
 
int dictLoadImage(DICTContext ctx, unsigned char *img);
56
 
int dictLoadFragment(DICTContext ctx, int icp, int ncp, const unsigned char *image);
 
58
int dictLoadImage(DICTContext ctx, const unsigned char *img);
57
59
int dictLoadImageFile(DICTContext ctx, const char *name);
58
60
 
59
61
int dictSetPointsBuffer(DICTContext ps, float *point_x, float *point_y);
60
62
int dictCompute(DICTContext ctx);
61
 
int dictProcessImage(DICTContext ctx, unsigned char *img);
 
63
int dictProcessImage(DICTContext ctx, const unsigned char *img);
62
64
int dictProcessImageFile(DICTContext ctx, const char *name);
63
65
 
64
66