summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/speaker.svg
blob: 75d5ff9c0970a47a1b2346e7ace648deace98388 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-speaker"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line></svg>
class="hl com"> */ #include <iostream> #include <string.h> #include "libcamera/internal/ipa_module.h" #include "test.h" using namespace std; using namespace libcamera; class IPAModuleTest : public Test { protected: int runTest(const string &path, const struct IPAModuleInfo &testInfo) { int ret = 0; IPAModule *ll = new IPAModule(path); if (!ll->isValid()) { cerr << "test IPA module " << path << " is invalid" << endl; delete ll; return -1; } const struct IPAModuleInfo &info = ll->info(); if (memcmp(&info, &testInfo, sizeof(info))) { cerr << "IPA module information mismatch: expected:" << endl << "moduleAPIVersion = " << testInfo.moduleAPIVersion << endl << "pipelineVersion = " << testInfo.pipelineVersion << endl << "pipelineName = " << testInfo.pipelineName << endl << "name = " << testInfo.name << "got: " << endl << "moduleAPIVersion = " << info.moduleAPIVersion << endl << "pipelineVersion = " << info.pipelineVersion << endl << "pipelineName = " << info.pipelineName << endl << "name = " << info.name << endl; } delete ll; return ret; } int run() override { int count = 0; const struct IPAModuleInfo testInfo = { IPA_MODULE_API_VERSION, 0, "PipelineHandlerVimc", "vimc", }; count += runTest("src/ipa/vimc/ipa_vimc.so", testInfo); if (count < 0) return TestFail; return TestPass; } }; TEST_REGISTER(IPAModuleTest)