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

Method checkLibraryFile

YUViewLib/src/decoder/decoderVVDec.cpp:541–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541bool decoderVVDec::checkLibraryFile(QString libFilePath, QString &error)
542{
543 decoderVVDec testDecoder;
544
545 // Try to load the library file
546 testDecoder.library.setFileName(libFilePath);
547 if (!testDecoder.library.load())
548 {
549 error = "Error opening QLibrary.";
550 return false;
551 }
552
553 // Now let's see if we can retrive all the function pointers that we will need.
554 // If this works, we can be fairly certain that this is a valid library.
555 testDecoder.resolveLibraryFunctionPointers();
556 error = testDecoder.decoderErrorString();
557 return testDecoder.state() != DecoderState::Error;
558}
559
560} // namespace decoder

Callers

nothing calls this directly

Calls 3

decoderErrorStringMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected