summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/printer.svg
blob: 8a9a7ace19ba754b3aaebea51fb872178f964a0d (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-printer"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>
n> protected: int run() { std::vector<std::pair<PixelFormat, const char *>> formatsMap{ { formats::R8, "R8" }, { formats::SRGGB10_CSI2P, "SRGGB10_CSI2P" }, { PixelFormat(0, 0), "<INVALID>" }, { PixelFormat(0x20203843), "<C8 >" } }; for (const auto &format : formatsMap) { if ((format.first).toString() != format.second) { cerr << "Failed to convert PixelFormat " << utils::hex(format.first.fourcc()) << " to string" << endl; return TestFail; } } if (PixelFormat().toString() != "<INVALID>") { cerr << "Failed to convert default PixelFormat to string" << endl; return TestFail; } return TestPass; } }; TEST_REGISTER(PixelFormatTest)