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

Function resolveFunction

YUViewLib/src/ffmpeg/FFmpegLibraryFunctions.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42template <typename T>
43bool resolveFunction(QLibrary & lib,
44 std::function<T> &function,
45 const char * symbolName,
46 QStringList * logList)
47{
48 auto ptr = lib.resolve(symbolName);
49 if (!ptr)
50 {
51 if (logList)
52 logList->append(QString("Function %1 not found.").arg(symbolName));
53 return false;
54 }
55
56 function = reinterpret_cast<T *>(ptr);
57 return true;
58}
59
60bool bindLibraryFunctions(QLibrary & lib,
61 FFmpegLibraryFunctions::AvFormatFunctions &functions,

Callers 1

bindLibraryFunctionsFunction · 0.85

Calls 2

appendMethod · 0.80
resolveMethod · 0.45

Tested by

no test coverage detected