MCPcopy Create free account
hub / github.com/IENT/YUView / resolve

Method resolve

YUViewLib/src/decoder/decoderVVDec.cpp:235–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235template <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
249void decoderVVDec::resetDecoder()
250{

Callers

nothing calls this directly

Calls 1

setErrorMethod · 0.45

Tested by

no test coverage detected