| 194 | } |
| 195 | |
| 196 | template <typename T> T decoderHM::resolve(T &fun, const char *symbol, bool optional) |
| 197 | { |
| 198 | QFunctionPointer ptr = this->library.resolve(symbol); |
| 199 | if (!ptr) |
| 200 | { |
| 201 | if (!optional) |
| 202 | setError(QStringLiteral("Error loading the libde265 library: Can't find function %1.") |
| 203 | .arg(symbol)); |
| 204 | return nullptr; |
| 205 | } |
| 206 | |
| 207 | return fun = reinterpret_cast<T>(ptr); |
| 208 | } |
| 209 | |
| 210 | void decoderHM::resetDecoder() |
| 211 | { |