| 590 | } |
| 591 | |
| 592 | bool decoderHM::checkLibraryFile(QString libFilePath, QString &error) |
| 593 | { |
| 594 | decoderHM testDecoder; |
| 595 | |
| 596 | // Try to load the library file |
| 597 | testDecoder.library.setFileName(libFilePath); |
| 598 | if (!testDecoder.library.load()) |
| 599 | { |
| 600 | error = "Error opening QLibrary."; |
| 601 | return false; |
| 602 | } |
| 603 | |
| 604 | // Now let's see if we can retrive all the function pointers that we will need. |
| 605 | // If this works, we can be fairly certain that this is a valid libde265 library. |
| 606 | testDecoder.resolveLibraryFunctionPointers(); |
| 607 | error = testDecoder.decoderErrorString(); |
| 608 | return testDecoder.state() != DecoderState::Error; |
| 609 | } |
| 610 | |
| 611 | } // namespace decoder |
nothing calls this directly
no test coverage detected