MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / interpOrder

Function interpOrder

src/backend/cuda/utility.cpp:17–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace cuda {
16
17int interpOrder(const af_interp_type p) noexcept {
18 int order = 1;
19 switch (p) {
20 case AF_INTERP_NEAREST:
21 case AF_INTERP_LOWER: order = 1; break;
22 case AF_INTERP_LINEAR:
23 case AF_INTERP_BILINEAR:
24 case AF_INTERP_LINEAR_COSINE:
25 case AF_INTERP_BILINEAR_COSINE: order = 2; break;
26 case AF_INTERP_CUBIC:
27 case AF_INTERP_BICUBIC:
28 case AF_INTERP_CUBIC_SPLINE:
29 case AF_INTERP_BICUBIC_SPLINE: order = 3; break;
30 }
31 return order;
32}
33
34} // namespace cuda
35} // namespace arrayfire

Callers 4

approx1Function · 0.85
approx2Function · 0.85
rotateFunction · 0.85
transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected