| 233 | } |
| 234 | |
| 235 | template <typename T> T decoderVVDec::resolve(T &fun, const char *symbol, bool optional) |
| 236 | { |
| 237 | auto ptr = this->library.resolve(symbol); |
| 238 | if (!ptr) |
| 239 | { |
| 240 | if (!optional) |
| 241 | this->setError(QStringLiteral("Error loading the libvvDeC library: Can't find function %1.") |
| 242 | .arg(symbol)); |
| 243 | return nullptr; |
| 244 | } |
| 245 | |
| 246 | return fun = reinterpret_cast<T>(ptr); |
| 247 | } |
| 248 | |
| 249 | void decoderVVDec::resetDecoder() |
| 250 | { |