| 992 | } |
| 993 | |
| 994 | bool 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 | |
| 1013 | QStringList decoderLibde265::getLibraryNames() const |
| 1014 | { |
nothing calls this directly
no test coverage detected