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

Method checkLibraryFile

YUViewLib/src/decoder/decoderHM.cpp:592–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592bool 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

Callers

nothing calls this directly

Calls 3

decoderErrorStringMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected