1use super::*;
2
3impl_threshold_fixed!(threshold_greater_u8_c1, u8, nppiThreshold_GT_8u_C1R_Ctx);
4impl_threshold_fixed!(threshold_greater_u16_c1, u16, nppiThreshold_GT_16u_C1R_Ctx);
5impl_threshold_fixed!(threshold_greater_i16_c1, i16, nppiThreshold_GT_16s_C1R_Ctx);
6impl_threshold_fixed!(threshold_greater_f32_c1, f32, nppiThreshold_GT_32f_C1R_Ctx);
7impl_threshold_fixed_in_place!(
8 threshold_greater_u8_c1_in_place,
9 u8,
10 nppiThreshold_GT_8u_C1IR_Ctx
11);
12impl_threshold_fixed_in_place!(
13 threshold_greater_u16_c1_in_place,
14 u16,
15 nppiThreshold_GT_16u_C1IR_Ctx
16);
17impl_threshold_fixed_in_place!(
18 threshold_greater_i16_c1_in_place,
19 i16,
20 nppiThreshold_GT_16s_C1IR_Ctx
21);
22impl_threshold_fixed_in_place!(
23 threshold_greater_f32_c1_in_place,
24 f32,
25 nppiThreshold_GT_32f_C1IR_Ctx
26);
27impl_threshold_fixed!(threshold_less_u8_c1, u8, nppiThreshold_LT_8u_C1R_Ctx);
28impl_threshold_fixed!(threshold_less_u16_c1, u16, nppiThreshold_LT_16u_C1R_Ctx);
29impl_threshold_fixed!(threshold_less_i16_c1, i16, nppiThreshold_LT_16s_C1R_Ctx);
30impl_threshold_fixed!(threshold_less_f32_c1, f32, nppiThreshold_LT_32f_C1R_Ctx);
31impl_threshold_fixed_in_place!(
32 threshold_less_u8_c1_in_place,
33 u8,
34 nppiThreshold_LT_8u_C1IR_Ctx
35);
36impl_threshold_fixed_in_place!(
37 threshold_less_u16_c1_in_place,
38 u16,
39 nppiThreshold_LT_16u_C1IR_Ctx
40);
41impl_threshold_fixed_in_place!(
42 threshold_less_i16_c1_in_place,
43 i16,
44 nppiThreshold_LT_16s_C1IR_Ctx
45);
46impl_threshold_fixed_in_place!(
47 threshold_less_f32_c1_in_place,
48 f32,
49 nppiThreshold_LT_32f_C1IR_Ctx
50);
51impl_threshold_fixed_packed!(
52 threshold_greater_u8_c3,
53 u8,
54 C3,
55 3,
56 nppiThreshold_GT_8u_C3R_Ctx
57);
58impl_threshold_fixed_packed!(
59 threshold_greater_u8_ac4,
60 u8,
61 AC4,
62 3,
63 nppiThreshold_GT_8u_AC4R_Ctx
64);
65impl_threshold_fixed_packed!(
66 threshold_greater_u16_c3,
67 u16,
68 C3,
69 3,
70 nppiThreshold_GT_16u_C3R_Ctx
71);
72impl_threshold_fixed_packed!(
73 threshold_greater_u16_ac4,
74 u16,
75 AC4,
76 3,
77 nppiThreshold_GT_16u_AC4R_Ctx
78);
79impl_threshold_fixed_packed!(
80 threshold_greater_i16_c3,
81 i16,
82 C3,
83 3,
84 nppiThreshold_GT_16s_C3R_Ctx
85);
86impl_threshold_fixed_packed!(
87 threshold_greater_i16_ac4,
88 i16,
89 AC4,
90 3,
91 nppiThreshold_GT_16s_AC4R_Ctx
92);
93impl_threshold_fixed_packed!(
94 threshold_greater_f32_c3,
95 f32,
96 C3,
97 3,
98 nppiThreshold_GT_32f_C3R_Ctx
99);
100impl_threshold_fixed_packed!(
101 threshold_greater_f32_ac4,
102 f32,
103 AC4,
104 3,
105 nppiThreshold_GT_32f_AC4R_Ctx
106);
107impl_threshold_fixed_packed_in_place!(
108 threshold_greater_u8_c3_in_place,
109 u8,
110 C3,
111 3,
112 nppiThreshold_GT_8u_C3IR_Ctx
113);
114impl_threshold_fixed_packed_in_place!(
115 threshold_greater_u8_ac4_in_place,
116 u8,
117 AC4,
118 3,
119 nppiThreshold_GT_8u_AC4IR_Ctx
120);
121impl_threshold_fixed_packed_in_place!(
122 threshold_greater_u16_c3_in_place,
123 u16,
124 C3,
125 3,
126 nppiThreshold_GT_16u_C3IR_Ctx
127);
128impl_threshold_fixed_packed_in_place!(
129 threshold_greater_u16_ac4_in_place,
130 u16,
131 AC4,
132 3,
133 nppiThreshold_GT_16u_AC4IR_Ctx
134);
135impl_threshold_fixed_packed_in_place!(
136 threshold_greater_i16_c3_in_place,
137 i16,
138 C3,
139 3,
140 nppiThreshold_GT_16s_C3IR_Ctx
141);
142impl_threshold_fixed_packed_in_place!(
143 threshold_greater_i16_ac4_in_place,
144 i16,
145 AC4,
146 3,
147 nppiThreshold_GT_16s_AC4IR_Ctx
148);
149impl_threshold_fixed_packed_in_place!(
150 threshold_greater_f32_c3_in_place,
151 f32,
152 C3,
153 3,
154 nppiThreshold_GT_32f_C3IR_Ctx
155);
156impl_threshold_fixed_packed_in_place!(
157 threshold_greater_f32_ac4_in_place,
158 f32,
159 AC4,
160 3,
161 nppiThreshold_GT_32f_AC4IR_Ctx
162);
163impl_threshold_fixed_packed!(threshold_less_u8_c3, u8, C3, 3, nppiThreshold_LT_8u_C3R_Ctx);
164impl_threshold_fixed_packed!(
165 threshold_less_u8_ac4,
166 u8,
167 AC4,
168 3,
169 nppiThreshold_LT_8u_AC4R_Ctx
170);
171impl_threshold_fixed_packed!(
172 threshold_less_u16_c3,
173 u16,
174 C3,
175 3,
176 nppiThreshold_LT_16u_C3R_Ctx
177);
178impl_threshold_fixed_packed!(
179 threshold_less_u16_ac4,
180 u16,
181 AC4,
182 3,
183 nppiThreshold_LT_16u_AC4R_Ctx
184);
185impl_threshold_fixed_packed!(
186 threshold_less_i16_c3,
187 i16,
188 C3,
189 3,
190 nppiThreshold_LT_16s_C3R_Ctx
191);
192impl_threshold_fixed_packed!(
193 threshold_less_i16_ac4,
194 i16,
195 AC4,
196 3,
197 nppiThreshold_LT_16s_AC4R_Ctx
198);
199impl_threshold_fixed_packed!(
200 threshold_less_f32_c3,
201 f32,
202 C3,
203 3,
204 nppiThreshold_LT_32f_C3R_Ctx
205);
206impl_threshold_fixed_packed!(
207 threshold_less_f32_ac4,
208 f32,
209 AC4,
210 3,
211 nppiThreshold_LT_32f_AC4R_Ctx
212);
213impl_threshold_fixed_packed_in_place!(
214 threshold_less_u8_c3_in_place,
215 u8,
216 C3,
217 3,
218 nppiThreshold_LT_8u_C3IR_Ctx
219);
220impl_threshold_fixed_packed_in_place!(
221 threshold_less_u8_ac4_in_place,
222 u8,
223 AC4,
224 3,
225 nppiThreshold_LT_8u_AC4IR_Ctx
226);
227impl_threshold_fixed_packed_in_place!(
228 threshold_less_u16_c3_in_place,
229 u16,
230 C3,
231 3,
232 nppiThreshold_LT_16u_C3IR_Ctx
233);
234impl_threshold_fixed_packed_in_place!(
235 threshold_less_u16_ac4_in_place,
236 u16,
237 AC4,
238 3,
239 nppiThreshold_LT_16u_AC4IR_Ctx
240);
241impl_threshold_fixed_packed_in_place!(
242 threshold_less_i16_c3_in_place,
243 i16,
244 C3,
245 3,
246 nppiThreshold_LT_16s_C3IR_Ctx
247);
248impl_threshold_fixed_packed_in_place!(
249 threshold_less_i16_ac4_in_place,
250 i16,
251 AC4,
252 3,
253 nppiThreshold_LT_16s_AC4IR_Ctx
254);
255impl_threshold_fixed_packed_in_place!(
256 threshold_less_f32_c3_in_place,
257 f32,
258 C3,
259 3,
260 nppiThreshold_LT_32f_C3IR_Ctx
261);
262impl_threshold_fixed_packed_in_place!(
263 threshold_less_f32_ac4_in_place,
264 f32,
265 AC4,
266 3,
267 nppiThreshold_LT_32f_AC4IR_Ctx
268);
269
270impl_generic_threshold_fixed_scalar!(
271 ThresholdGreaterC1,
272 threshold_greater,
273 threshold_greater_c1,
274 [
275 u8 => threshold_greater_u8_c1,
276 u16 => threshold_greater_u16_c1,
277 i16 => threshold_greater_i16_c1,
278 f32 => threshold_greater_f32_c1,
279 ]
280);
281impl_generic_threshold_fixed_scalar_in_place!(
282 ThresholdGreaterC1InPlace,
283 threshold_greater_in_place,
284 threshold_greater_c1_in_place,
285 [
286 u8 => threshold_greater_u8_c1_in_place,
287 u16 => threshold_greater_u16_c1_in_place,
288 i16 => threshold_greater_i16_c1_in_place,
289 f32 => threshold_greater_f32_c1_in_place,
290 ]
291);
292impl_generic_threshold_fixed_array!(
293 ThresholdGreaterC3,
294 threshold_greater,
295 threshold_greater_c3,
296 C3,
297 3,
298 [
299 u8 => threshold_greater_u8_c3,
300 u16 => threshold_greater_u16_c3,
301 i16 => threshold_greater_i16_c3,
302 f32 => threshold_greater_f32_c3,
303 ]
304);
305impl_generic_threshold_fixed_array_in_place!(
306 ThresholdGreaterC3InPlace,
307 threshold_greater_in_place,
308 threshold_greater_c3_in_place,
309 C3,
310 3,
311 [
312 u8 => threshold_greater_u8_c3_in_place,
313 u16 => threshold_greater_u16_c3_in_place,
314 i16 => threshold_greater_i16_c3_in_place,
315 f32 => threshold_greater_f32_c3_in_place,
316 ]
317);
318impl_generic_threshold_fixed_array!(
319 ThresholdGreaterAc4,
320 threshold_greater,
321 threshold_greater_ac4,
322 AC4,
323 3,
324 [
325 u8 => threshold_greater_u8_ac4,
326 u16 => threshold_greater_u16_ac4,
327 i16 => threshold_greater_i16_ac4,
328 f32 => threshold_greater_f32_ac4,
329 ]
330);
331impl_generic_threshold_fixed_array_in_place!(
332 ThresholdGreaterAc4InPlace,
333 threshold_greater_in_place,
334 threshold_greater_ac4_in_place,
335 AC4,
336 3,
337 [
338 u8 => threshold_greater_u8_ac4_in_place,
339 u16 => threshold_greater_u16_ac4_in_place,
340 i16 => threshold_greater_i16_ac4_in_place,
341 f32 => threshold_greater_f32_ac4_in_place,
342 ]
343);
344impl_generic_threshold_fixed_scalar!(ThresholdLessC1, threshold_less, threshold_less_c1, [
345 u8 => threshold_less_u8_c1,
346 u16 => threshold_less_u16_c1,
347 i16 => threshold_less_i16_c1,
348 f32 => threshold_less_f32_c1,
349]);
350impl_generic_threshold_fixed_scalar_in_place!(
351 ThresholdLessC1InPlace,
352 threshold_less_in_place,
353 threshold_less_c1_in_place,
354 [
355 u8 => threshold_less_u8_c1_in_place,
356 u16 => threshold_less_u16_c1_in_place,
357 i16 => threshold_less_i16_c1_in_place,
358 f32 => threshold_less_f32_c1_in_place,
359 ]
360);
361impl_generic_threshold_fixed_array!(
362 ThresholdLessC3,
363 threshold_less,
364 threshold_less_c3,
365 C3,
366 3,
367 [
368 u8 => threshold_less_u8_c3,
369 u16 => threshold_less_u16_c3,
370 i16 => threshold_less_i16_c3,
371 f32 => threshold_less_f32_c3,
372 ]
373);
374impl_generic_threshold_fixed_array_in_place!(
375 ThresholdLessC3InPlace,
376 threshold_less_in_place,
377 threshold_less_c3_in_place,
378 C3,
379 3,
380 [
381 u8 => threshold_less_u8_c3_in_place,
382 u16 => threshold_less_u16_c3_in_place,
383 i16 => threshold_less_i16_c3_in_place,
384 f32 => threshold_less_f32_c3_in_place,
385 ]
386);
387impl_generic_threshold_fixed_array!(
388 ThresholdLessAc4,
389 threshold_less,
390 threshold_less_ac4,
391 AC4,
392 3,
393 [
394 u8 => threshold_less_u8_ac4,
395 u16 => threshold_less_u16_ac4,
396 i16 => threshold_less_i16_ac4,
397 f32 => threshold_less_f32_ac4,
398 ]
399);
400impl_generic_threshold_fixed_array_in_place!(
401 ThresholdLessAc4InPlace,
402 threshold_less_in_place,
403 threshold_less_ac4_in_place,
404 AC4,
405 3,
406 [
407 u8 => threshold_less_u8_ac4_in_place,
408 u16 => threshold_less_u16_ac4_in_place,
409 i16 => threshold_less_i16_ac4_in_place,
410 f32 => threshold_less_f32_ac4_in_place,
411 ]
412);