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

Method checkLibraryFile

YUViewLib/src/decoder/decoderLibde265.cpp:994–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994bool decoderLibde265::checkLibraryFile(QString libFilePath, QString &error)
995{
996 decoderLibde265 testDecoder;
997
998 // Try to load the library file
999 testDecoder.library.setFileName(libFilePath);
1000 if (!testDecoder.library.load())
1001 {
1002 error = "Error opening QLibrary.";
1003 return false;
1004 }
1005
1006 // Now let's see if we can retrive all the function pointers that we will need.
1007 // If this works, we can be fairly certain that this is a valid libde265 library.
1008 testDecoder.resolveLibraryFunctionPointers();
1009 error = testDecoder.decoderErrorString();
1010 return testDecoder.state() != DecoderState::Error;
1011}
1012
1013QStringList decoderLibde265::getLibraryNames() const
1014{

Callers

nothing calls this directly

Calls 3

decoderErrorStringMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected