X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2Fqrcode%2Fdetector%2FFinderPatternFinder.h;h=6c8684d5968b9e1a79e95711684719bce4a78b53;hp=afa2d89f05a769f5242b5d29192d7d63df8fd1db;hb=d59aa5593ed5a911b1141be85d1888088c21e859;hpb=a6543856baf892b2d7162a99511fae5eaa1cacfa diff --git a/cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h b/cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h index afa2d89f..6c8684d5 100644 --- a/cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h +++ b/cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h @@ -24,9 +24,13 @@ #include #include #include +#include #include namespace zxing { + +class DecodeHints; + namespace qrcode { class FinderPatternFinder { @@ -39,6 +43,8 @@ private: std::vector > possibleCenters_; bool hasSkipped_; + Ref callback_; + /** stateCount must be int[5] */ static float centerFromEnd(int* stateCount, int end); static bool foundPatternCross(int* stateCount); @@ -52,11 +58,10 @@ private: bool haveMultiplyConfirmedCenters(); std::vector > selectBestPatterns(); static std::vector > orderBestPatterns(std::vector > patterns); - public: static float distance(Ref p1, Ref p2); - FinderPatternFinder(Ref image); - Ref find(); + FinderPatternFinder(Ref image, Refconst&); + Ref find(DecodeHints const& hints); }; } }