summaryrefslogtreecommitdiff
path: root/test/ipa
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2019-06-05 17:24:55 -0400
committerPaul Elder <paul.elder@ideasonboard.com>2019-07-12 16:32:29 +0900
commit403f68d84707065149a30fba899f3d4e238082a8 (patch)
tree7a77237157f7805344b8f759f24fcdd5e9768220 /test/ipa
parent47a81cb9f660495bbde7df7341e74a7f8fff4490 (diff)
libcamera: ipa: add dummy IPA that needs to be isolated
Add a dummy IPA that needs to be isolated. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/ipa')
0 files changed, 0 insertions, 0 deletions
l opt">&rhs), const char *opName, bool expect) { bool result = op(lhs, rhs); if (result != expect) { cout << "Size(" << lhs.width << ", " << lhs.height << ") " << opName << " " << "Size(" << rhs.width << ", " << rhs.height << ") " << "test failed" << std::endl; return false; } return true; } int run() { /* Test Size equality and inequality. */ if (!compare(Size(100, 100), Size(100, 100), &operator==, "==", true)) return TestFail; if (!compare(Size(100, 100), Size(100, 100), &operator!=, "!=", false)) return TestFail; if (!compare(Size(100, 100), Size(200, 100), &operator==, "==", false)) return TestFail; if (!compare(Size(100, 100), Size(200, 100), &operator!=, "!=", true)) return TestFail; if (!compare(Size(100, 100), Size(100, 200), &operator==, "==", false)) return TestFail; if (!compare(Size(100, 100), Size(100, 200), &operator!=, "!=", true)) return TestFail; /* Test Size ordering based on combined with and height. */ if (!compare(Size(100, 100), Size(200, 200), &operator<, "<", true)) return TestFail; if (!compare(Size(100, 100), Size(200, 200), &operator<=, "<=", true)) return TestFail; if (!compare(Size(100, 100), Size(200, 200), &operator>, ">", false)) return TestFail; if (!compare(Size(100, 100), Size(200, 200), &operator>=, ">=", false)) return TestFail; if (!compare(Size(200, 200), Size(100, 100), &operator<, "<", false)) return TestFail; if (!compare(Size(200, 200), Size(100, 100), &operator<=, "<=", false)) return TestFail; if (!compare(Size(200, 200), Size(100, 100), &operator>, ">", true)) return TestFail; if (!compare(Size(200, 200), Size(100, 100), &operator>=, ">=", true)) return TestFail; /* Test Size ordering based on area (with overlapping sizes). */ if (!compare(Size(200, 100), Size(100, 400), &operator<, "<", true)) return TestFail; if (!compare(Size(200, 100), Size(100, 400), &operator<=, "<=", true)) return TestFail; if (!compare(Size(200, 100), Size(100, 400), &operator>, ">", false)) return TestFail;