| 614 | } |
| 615 | |
| 616 | bool decoderVTM::checkLibraryFile(QString libFilePath, QString &error) |
| 617 | { |
| 618 | decoderVTM testDecoder; |
| 619 | |
| 620 | // Try to load the library file |
| 621 | testDecoder.library.setFileName(libFilePath); |
| 622 | if (!testDecoder.library.load()) |
| 623 | { |
| 624 | error = "Error opening QLibrary."; |
| 625 | return false; |
| 626 | } |
| 627 | |
| 628 | // Now let's see if we can retrive all the function pointers that we will need. |
| 629 | // If this works, we can be fairly certain that this is a valid libde265 library. |
| 630 | testDecoder.resolveLibraryFunctionPointers(); |
| 631 | error = testDecoder.decoderErrorString(); |
| 632 | return testDecoder.state() != DecoderState::Error; |
| 633 | } |
| 634 | |
| 635 | } // namespace decoder |
nothing calls this directly
no test coverage detected