summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/algorithm.h
AgeCommit message (Collapse)Author
2021-04-22ipa: Add a common interface for algorithm objectsJean-Michel Hautbois
In order to instantiate and use algorithms (AWB, AGC, etc.) there is a need for a common class to define mandatory methods. Instead of reinventing the wheel, reuse what Raspberry Pi has done and adapt to the minimum requirements expected. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
an class="hl opt">: public MediaDeviceTest { int run() { if (!media_->acquire()) return TestFail; if (media_->acquire()) return TestFail; media_->release(); if (!media_->acquire()) return TestFail; media_->release(); return TestPass; } }; TEST_REGISTER(MediaDeviceAcquire)