forked from shibatch/rectdetect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoclimgutil.h
104 lines (99 loc) · 5.67 KB
/
oclimgutil.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct oclimgutil_t {
uint32_t magic;
cl_device_id device;
cl_context context;
cl_kernel kernel_clear;
int kid_clear;
cl_kernel kernel_copy;
int kid_copy;
cl_kernel kernel_cast_i_f;
int kid_cast_i_f;
cl_kernel kernel_cast_c_i;
int kid_cast_c_i;
cl_kernel kernel_threshold_i_i;
int kid_threshold_i_i;
cl_kernel kernel_threshold_f_f;
int kid_threshold_f_f;
cl_kernel kernel_threshold_f;
int kid_threshold_f;
cl_kernel kernel_rand;
int kid_rand;
cl_kernel kernel_bgr2plab;
int kid_bgr2plab;
cl_kernel kernel_plab2bgr;
int kid_plab2bgr;
cl_kernel kernel_convert_bgr_luminancef;
int kid_convert_bgr_luminancef;
cl_kernel kernel_convert_bgr_lumaf;
int kid_convert_bgr_lumaf;
cl_kernel kernel_convert_bgr_labeli;
int kid_convert_bgr_labeli;
cl_kernel kernel_pack_plab;
int kid_pack_plab;
cl_kernel kernel_unpack_plab;
int kid_unpack_plab;
cl_kernel kernel_edgevec_plab;
int kid_edgevec_plab;
cl_kernel kernel_edgevec_f;
int kid_edgevec_f;
cl_kernel kernel_edge_plab;
int kid_edge_plab;
cl_kernel kernel_edge_f_f;
int kid_edge_f_f;
cl_kernel kernel_thinthres_f_f_f2;
int kid_thinthres_f_f_f2;
cl_kernel kernel_thincubic_float_float;
int kid_thincubic_float_float;
cl_kernel kernel_labelxPreprocess_int_int;
int kid_labelxPreprocess_int_int;
cl_kernel kernel_label8xMain_int_int;
int kid_label8xMain_int_int;
cl_kernel kernel_iirblur_f_f_pass0a;
int kid_iirblur_f_f_pass0a;
cl_kernel kernel_iirblur_f_f_pass0b;
int kid_iirblur_f_f_pass0b;
cl_kernel kernel_iirblur_f_f_pass2a;
int kid_iirblur_f_f_pass2a;
cl_kernel kernel_iirblur_f_f_pass2b;
int kid_iirblur_f_f_pass2b;
cl_kernel kernel_iirblur_f_f_pass1;
int kid_iirblur_f_f_pass1;
cl_kernel kernel_iirblur_f_f_pass3;
int kid_iirblur_f_f_pass3;
cl_kernel kernel_calcStrength;
int kid_calcStrength;
cl_kernel kernel_filterStrength;
int kid_filterStrength;
} oclimgutil_t;
oclimgutil_t *init_oclimgutil(cl_device_id device, cl_context context);
void dispose_oclimgutil(oclimgutil_t *thiz);
cl_event oclimgutil_clear(oclimgutil_t *thiz, cl_mem out, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_copy(oclimgutil_t *thiz, cl_mem out, cl_mem in, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_cast_i_f(oclimgutil_t *thiz, cl_mem out, cl_mem in, float scale, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_cast_c_i(oclimgutil_t *thiz, cl_mem out, cl_mem in, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_threshold_i_i(oclimgutil_t *thiz, cl_mem out, cl_mem in, int vlow, int threshold, int vhigh, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_threshold_f_f(oclimgutil_t *thiz, cl_mem out, cl_mem in, float vlow, float threshold, float vhigh, int size, cl_command_queue queue, const cl_event *event);
cl_event oclimgutil_rand(oclimgutil_t *thiz, cl_mem out, int size, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_convert_bgr_luminancef(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, int ws, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_convert_bgr_lumaf(oclimgutil_t *thiz, cl_mem out, cl_mem in, float f, int iw, int ih, int ws, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_convert_bgr_labeli(oclimgutil_t *thiz, cl_mem out, cl_mem in, int bgc, int iw, int ih, int ws, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_edge_f_f(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_edgevec_f2_f(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_thinthres_f_f_f2(oclimgutil_t *thiz, cl_mem out, cl_mem in, cl_mem vec, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_thincubic_f_f_f2(oclimgutil_t *thiz, cl_mem out, cl_mem in, cl_mem vec, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_label8x_int_int(oclimgutil_t *thiz, cl_mem out, cl_mem in, cl_mem tmp, int bgc, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_iirblur_f_f(oclimgutil_t *thiz, cl_mem obuf, cl_mem ibuf, cl_mem tmp0, cl_mem tmp1, int r, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_convert_plab_bgr(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, int ws, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_convert_bgr_plab(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, int ws, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_unpack_f_f_f_plab(oclimgutil_t *thiz, cl_mem out0, cl_mem out1, cl_mem out2, cl_mem in, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_pack_plab_f_f_f(oclimgutil_t *thiz, cl_mem out, cl_mem in0, cl_mem in1, cl_mem in2, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_edgevec_f2_plab(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_edge_f_plab(oclimgutil_t *thiz, cl_mem out, cl_mem in, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_calcStrength(oclimgutil_t *thiz, cl_mem out, cl_mem edge, cl_mem label, int iw, int ih, cl_command_queue queue, const cl_event *events);
cl_event oclimgutil_filterStrength(oclimgutil_t *thiz, cl_mem labelinout, cl_mem str, int thre, int iw, int ih, cl_command_queue queue, const cl_event *events);
#if defined(__cplusplus)
}
#endif