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

Function addInterpEnumOptions

src/backend/opencl/kernel/interp.hpp:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace kernel {
21
22static void addInterpEnumOptions(std::vector<std::string>& options) {
23 static std::array<std::string, 10> enOpts = {
24 DefineKeyValue(AF_INTERP_NEAREST, static_cast<int>(AF_INTERP_NEAREST)),
25 DefineKeyValue(AF_INTERP_LINEAR, static_cast<int>(AF_INTERP_LINEAR)),
26 DefineKeyValue(AF_INTERP_BILINEAR,
27 static_cast<int>(AF_INTERP_BILINEAR)),
28 DefineKeyValue(AF_INTERP_CUBIC, static_cast<int>(AF_INTERP_CUBIC)),
29 DefineKeyValue(AF_INTERP_LOWER, static_cast<int>(AF_INTERP_LOWER)),
30 DefineKeyValue(AF_INTERP_LINEAR_COSINE,
31 static_cast<int>(AF_INTERP_LINEAR_COSINE)),
32 DefineKeyValue(AF_INTERP_BILINEAR_COSINE,
33 static_cast<int>(AF_INTERP_BILINEAR_COSINE)),
34 DefineKeyValue(AF_INTERP_BICUBIC, static_cast<int>(AF_INTERP_BICUBIC)),
35 DefineKeyValue(AF_INTERP_CUBIC_SPLINE,
36 static_cast<int>(AF_INTERP_CUBIC_SPLINE)),
37 DefineKeyValue(AF_INTERP_BICUBIC_SPLINE,
38 static_cast<int>(AF_INTERP_BICUBIC_SPLINE)),
39 };
40 options.insert(std::end(options), std::begin(enOpts), std::end(enOpts));
41}
42} // namespace kernel
43} // namespace opencl
44} // namespace arrayfire

Callers 3

genCompileOptionsFunction · 0.85
rotateFunction · 0.85
transformFunction · 0.85

Calls 2

endFunction · 0.85
beginFunction · 0.85

Tested by

no test coverage detected