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

Method checkLibraryFile

YUViewLib/src/decoder/decoderVTM.cpp:616–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616bool 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

Callers

nothing calls this directly

Calls 3

decoderErrorStringMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected