Skip to main content

singe_npp/image/
threshold_fixed_value.rs

1use super::*;
2
3impl_threshold_fixed_value_c1!(
4    threshold_greater_value_u8_c1,
5    u8,
6    nppiThreshold_GTVal_8u_C1R_Ctx
7);
8impl_threshold_fixed_value_c1!(
9    threshold_greater_value_u16_c1,
10    u16,
11    nppiThreshold_GTVal_16u_C1R_Ctx
12);
13impl_threshold_fixed_value_c1!(
14    threshold_greater_value_i16_c1,
15    i16,
16    nppiThreshold_GTVal_16s_C1R_Ctx
17);
18impl_threshold_fixed_value_c1!(
19    threshold_greater_value_f32_c1,
20    f32,
21    nppiThreshold_GTVal_32f_C1R_Ctx
22);
23impl_threshold_fixed_value_c1_in_place!(
24    threshold_greater_value_u8_c1_in_place,
25    u8,
26    nppiThreshold_GTVal_8u_C1IR_Ctx
27);
28impl_threshold_fixed_value_c1_in_place!(
29    threshold_greater_value_u16_c1_in_place,
30    u16,
31    nppiThreshold_GTVal_16u_C1IR_Ctx
32);
33impl_threshold_fixed_value_c1_in_place!(
34    threshold_greater_value_i16_c1_in_place,
35    i16,
36    nppiThreshold_GTVal_16s_C1IR_Ctx
37);
38impl_threshold_fixed_value_c1_in_place!(
39    threshold_greater_value_f32_c1_in_place,
40    f32,
41    nppiThreshold_GTVal_32f_C1IR_Ctx
42);
43impl_threshold_fixed_value_c1!(
44    threshold_less_value_u8_c1,
45    u8,
46    nppiThreshold_LTVal_8u_C1R_Ctx
47);
48impl_threshold_fixed_value_c1!(
49    threshold_less_value_u16_c1,
50    u16,
51    nppiThreshold_LTVal_16u_C1R_Ctx
52);
53impl_threshold_fixed_value_c1!(
54    threshold_less_value_i16_c1,
55    i16,
56    nppiThreshold_LTVal_16s_C1R_Ctx
57);
58impl_threshold_fixed_value_c1!(
59    threshold_less_value_f32_c1,
60    f32,
61    nppiThreshold_LTVal_32f_C1R_Ctx
62);
63impl_threshold_fixed_value_c1_in_place!(
64    threshold_less_value_u8_c1_in_place,
65    u8,
66    nppiThreshold_LTVal_8u_C1IR_Ctx
67);
68impl_threshold_fixed_value_c1_in_place!(
69    threshold_less_value_u16_c1_in_place,
70    u16,
71    nppiThreshold_LTVal_16u_C1IR_Ctx
72);
73impl_threshold_fixed_value_c1_in_place!(
74    threshold_less_value_i16_c1_in_place,
75    i16,
76    nppiThreshold_LTVal_16s_C1IR_Ctx
77);
78impl_threshold_fixed_value_c1_in_place!(
79    threshold_less_value_f32_c1_in_place,
80    f32,
81    nppiThreshold_LTVal_32f_C1IR_Ctx
82);
83impl_threshold_fixed_value_packed!(
84    threshold_greater_value_u8_c3,
85    u8,
86    C3,
87    3,
88    nppiThreshold_GTVal_8u_C3R_Ctx
89);
90impl_threshold_fixed_value_packed!(
91    threshold_greater_value_u8_ac4,
92    u8,
93    AC4,
94    3,
95    nppiThreshold_GTVal_8u_AC4R_Ctx
96);
97impl_threshold_fixed_value_packed!(
98    threshold_greater_value_u16_c3,
99    u16,
100    C3,
101    3,
102    nppiThreshold_GTVal_16u_C3R_Ctx
103);
104impl_threshold_fixed_value_packed!(
105    threshold_greater_value_u16_ac4,
106    u16,
107    AC4,
108    3,
109    nppiThreshold_GTVal_16u_AC4R_Ctx
110);
111impl_threshold_fixed_value_packed!(
112    threshold_greater_value_i16_c3,
113    i16,
114    C3,
115    3,
116    nppiThreshold_GTVal_16s_C3R_Ctx
117);
118impl_threshold_fixed_value_packed!(
119    threshold_greater_value_i16_ac4,
120    i16,
121    AC4,
122    3,
123    nppiThreshold_GTVal_16s_AC4R_Ctx
124);
125impl_threshold_fixed_value_packed!(
126    threshold_greater_value_f32_c3,
127    f32,
128    C3,
129    3,
130    nppiThreshold_GTVal_32f_C3R_Ctx
131);
132impl_threshold_fixed_value_packed!(
133    threshold_greater_value_f32_ac4,
134    f32,
135    AC4,
136    3,
137    nppiThreshold_GTVal_32f_AC4R_Ctx
138);
139impl_threshold_fixed_value_packed_in_place!(
140    threshold_greater_value_u8_c3_in_place,
141    u8,
142    C3,
143    3,
144    nppiThreshold_GTVal_8u_C3IR_Ctx
145);
146impl_threshold_fixed_value_packed_in_place!(
147    threshold_greater_value_u8_ac4_in_place,
148    u8,
149    AC4,
150    3,
151    nppiThreshold_GTVal_8u_AC4IR_Ctx
152);
153impl_threshold_fixed_value_packed_in_place!(
154    threshold_greater_value_u16_c3_in_place,
155    u16,
156    C3,
157    3,
158    nppiThreshold_GTVal_16u_C3IR_Ctx
159);
160impl_threshold_fixed_value_packed_in_place!(
161    threshold_greater_value_u16_ac4_in_place,
162    u16,
163    AC4,
164    3,
165    nppiThreshold_GTVal_16u_AC4IR_Ctx
166);
167impl_threshold_fixed_value_packed_in_place!(
168    threshold_greater_value_i16_c3_in_place,
169    i16,
170    C3,
171    3,
172    nppiThreshold_GTVal_16s_C3IR_Ctx
173);
174impl_threshold_fixed_value_packed_in_place!(
175    threshold_greater_value_i16_ac4_in_place,
176    i16,
177    AC4,
178    3,
179    nppiThreshold_GTVal_16s_AC4IR_Ctx
180);
181impl_threshold_fixed_value_packed_in_place!(
182    threshold_greater_value_f32_c3_in_place,
183    f32,
184    C3,
185    3,
186    nppiThreshold_GTVal_32f_C3IR_Ctx
187);
188impl_threshold_fixed_value_packed_in_place!(
189    threshold_greater_value_f32_ac4_in_place,
190    f32,
191    AC4,
192    3,
193    nppiThreshold_GTVal_32f_AC4IR_Ctx
194);
195impl_threshold_fixed_value_packed!(
196    threshold_less_value_u8_c3,
197    u8,
198    C3,
199    3,
200    nppiThreshold_LTVal_8u_C3R_Ctx
201);
202impl_threshold_fixed_value_packed!(
203    threshold_less_value_u8_ac4,
204    u8,
205    AC4,
206    3,
207    nppiThreshold_LTVal_8u_AC4R_Ctx
208);
209impl_threshold_fixed_value_packed!(
210    threshold_less_value_u16_c3,
211    u16,
212    C3,
213    3,
214    nppiThreshold_LTVal_16u_C3R_Ctx
215);
216impl_threshold_fixed_value_packed!(
217    threshold_less_value_u16_ac4,
218    u16,
219    AC4,
220    3,
221    nppiThreshold_LTVal_16u_AC4R_Ctx
222);
223impl_threshold_fixed_value_packed!(
224    threshold_less_value_i16_c3,
225    i16,
226    C3,
227    3,
228    nppiThreshold_LTVal_16s_C3R_Ctx
229);
230impl_threshold_fixed_value_packed!(
231    threshold_less_value_i16_ac4,
232    i16,
233    AC4,
234    3,
235    nppiThreshold_LTVal_16s_AC4R_Ctx
236);
237impl_threshold_fixed_value_packed!(
238    threshold_less_value_f32_c3,
239    f32,
240    C3,
241    3,
242    nppiThreshold_LTVal_32f_C3R_Ctx
243);
244impl_threshold_fixed_value_packed!(
245    threshold_less_value_f32_ac4,
246    f32,
247    AC4,
248    3,
249    nppiThreshold_LTVal_32f_AC4R_Ctx
250);
251impl_threshold_fixed_value_packed_in_place!(
252    threshold_less_value_u8_c3_in_place,
253    u8,
254    C3,
255    3,
256    nppiThreshold_LTVal_8u_C3IR_Ctx
257);
258impl_threshold_fixed_value_packed_in_place!(
259    threshold_less_value_u8_ac4_in_place,
260    u8,
261    AC4,
262    3,
263    nppiThreshold_LTVal_8u_AC4IR_Ctx
264);
265impl_threshold_fixed_value_packed_in_place!(
266    threshold_less_value_u16_c3_in_place,
267    u16,
268    C3,
269    3,
270    nppiThreshold_LTVal_16u_C3IR_Ctx
271);
272impl_threshold_fixed_value_packed_in_place!(
273    threshold_less_value_u16_ac4_in_place,
274    u16,
275    AC4,
276    3,
277    nppiThreshold_LTVal_16u_AC4IR_Ctx
278);
279impl_threshold_fixed_value_packed_in_place!(
280    threshold_less_value_i16_c3_in_place,
281    i16,
282    C3,
283    3,
284    nppiThreshold_LTVal_16s_C3IR_Ctx
285);
286impl_threshold_fixed_value_packed_in_place!(
287    threshold_less_value_i16_ac4_in_place,
288    i16,
289    AC4,
290    3,
291    nppiThreshold_LTVal_16s_AC4IR_Ctx
292);
293impl_threshold_fixed_value_packed_in_place!(
294    threshold_less_value_f32_c3_in_place,
295    f32,
296    C3,
297    3,
298    nppiThreshold_LTVal_32f_C3IR_Ctx
299);
300impl_threshold_fixed_value_packed_in_place!(
301    threshold_less_value_f32_ac4_in_place,
302    f32,
303    AC4,
304    3,
305    nppiThreshold_LTVal_32f_AC4IR_Ctx
306);
307
308impl_generic_threshold_fixed_value_scalar!(
309    ThresholdGreaterValueC1,
310    threshold_greater_value,
311    threshold_greater_value_c1,
312    [
313        u8 => threshold_greater_value_u8_c1,
314        u16 => threshold_greater_value_u16_c1,
315        i16 => threshold_greater_value_i16_c1,
316        f32 => threshold_greater_value_f32_c1,
317    ]
318);
319impl_generic_threshold_fixed_value_scalar_in_place!(
320    ThresholdGreaterValueC1InPlace,
321    threshold_greater_value_in_place,
322    threshold_greater_value_c1_in_place,
323    [
324        u8 => threshold_greater_value_u8_c1_in_place,
325        u16 => threshold_greater_value_u16_c1_in_place,
326        i16 => threshold_greater_value_i16_c1_in_place,
327        f32 => threshold_greater_value_f32_c1_in_place,
328    ]
329);
330impl_generic_threshold_fixed_value_array!(
331    ThresholdGreaterValueC3,
332    threshold_greater_value,
333    threshold_greater_value_c3,
334    C3,
335    3,
336    [
337        u8 => threshold_greater_value_u8_c3,
338        u16 => threshold_greater_value_u16_c3,
339        i16 => threshold_greater_value_i16_c3,
340        f32 => threshold_greater_value_f32_c3,
341    ]
342);
343impl_generic_threshold_fixed_value_array_in_place!(
344    ThresholdGreaterValueC3InPlace,
345    threshold_greater_value_in_place,
346    threshold_greater_value_c3_in_place,
347    C3,
348    3,
349    [
350        u8 => threshold_greater_value_u8_c3_in_place,
351        u16 => threshold_greater_value_u16_c3_in_place,
352        i16 => threshold_greater_value_i16_c3_in_place,
353        f32 => threshold_greater_value_f32_c3_in_place,
354    ]
355);
356impl_generic_threshold_fixed_value_array!(
357    ThresholdGreaterValueAc4,
358    threshold_greater_value,
359    threshold_greater_value_ac4,
360    AC4,
361    3,
362    [
363        u8 => threshold_greater_value_u8_ac4,
364        u16 => threshold_greater_value_u16_ac4,
365        i16 => threshold_greater_value_i16_ac4,
366        f32 => threshold_greater_value_f32_ac4,
367    ]
368);
369impl_generic_threshold_fixed_value_array_in_place!(
370    ThresholdGreaterValueAc4InPlace,
371    threshold_greater_value_in_place,
372    threshold_greater_value_ac4_in_place,
373    AC4,
374    3,
375    [
376        u8 => threshold_greater_value_u8_ac4_in_place,
377        u16 => threshold_greater_value_u16_ac4_in_place,
378        i16 => threshold_greater_value_i16_ac4_in_place,
379        f32 => threshold_greater_value_f32_ac4_in_place,
380    ]
381);
382impl_generic_threshold_fixed_value_scalar!(
383    ThresholdLessValueC1,
384    threshold_less_value,
385    threshold_less_value_c1,
386    [
387        u8 => threshold_less_value_u8_c1,
388        u16 => threshold_less_value_u16_c1,
389        i16 => threshold_less_value_i16_c1,
390        f32 => threshold_less_value_f32_c1,
391    ]
392);
393impl_generic_threshold_fixed_value_scalar_in_place!(
394    ThresholdLessValueC1InPlace,
395    threshold_less_value_in_place,
396    threshold_less_value_c1_in_place,
397    [
398        u8 => threshold_less_value_u8_c1_in_place,
399        u16 => threshold_less_value_u16_c1_in_place,
400        i16 => threshold_less_value_i16_c1_in_place,
401        f32 => threshold_less_value_f32_c1_in_place,
402    ]
403);
404impl_generic_threshold_fixed_value_array!(
405    ThresholdLessValueC3,
406    threshold_less_value,
407    threshold_less_value_c3,
408    C3,
409    3,
410    [
411        u8 => threshold_less_value_u8_c3,
412        u16 => threshold_less_value_u16_c3,
413        i16 => threshold_less_value_i16_c3,
414        f32 => threshold_less_value_f32_c3,
415    ]
416);
417impl_generic_threshold_fixed_value_array_in_place!(
418    ThresholdLessValueC3InPlace,
419    threshold_less_value_in_place,
420    threshold_less_value_c3_in_place,
421    C3,
422    3,
423    [
424        u8 => threshold_less_value_u8_c3_in_place,
425        u16 => threshold_less_value_u16_c3_in_place,
426        i16 => threshold_less_value_i16_c3_in_place,
427        f32 => threshold_less_value_f32_c3_in_place,
428    ]
429);
430impl_generic_threshold_fixed_value_array!(
431    ThresholdLessValueAc4,
432    threshold_less_value,
433    threshold_less_value_ac4,
434    AC4,
435    3,
436    [
437        u8 => threshold_less_value_u8_ac4,
438        u16 => threshold_less_value_u16_ac4,
439        i16 => threshold_less_value_i16_ac4,
440        f32 => threshold_less_value_f32_ac4,
441    ]
442);
443impl_generic_threshold_fixed_value_array_in_place!(
444    ThresholdLessValueAc4InPlace,
445    threshold_less_value_in_place,
446    threshold_less_value_ac4_in_place,
447    AC4,
448    3,
449    [
450        u8 => threshold_less_value_u8_ac4_in_place,
451        u16 => threshold_less_value_u16_ac4_in_place,
452        i16 => threshold_less_value_i16_ac4_in_place,
453        f32 => threshold_less_value_f32_ac4_in_place,
454    ]
455);