| 20 | namespace kernel { |
| 21 | |
| 22 | static 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 |
no test coverage detected