zxing-cpp: strip to core library only (remove tests/wrappers/examples/docs); .gitignore: fix /core to allow zxing-cpp/core/ dir
This commit is contained in:
1 parent
22c24d135e
commit
8051dfe4e5
2506 files changed
+57271
-30087
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2016 Nu-book Inc.
|
||||
* Copyright 2016 ZXing authors
|
||||
*/
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ReaderOptions.h"
|
||||
#include "BarcodeData.h"
|
||||
|
||||
namespace ZXing {
|
||||
|
||||
class BinaryBitmap;
|
||||
class ReaderOptions;
|
||||
|
||||
class Reader
|
||||
{
|
||||
protected:
|
||||
const ReaderOptions& _opts;
|
||||
|
||||
public:
|
||||
const bool supportsInversion;
|
||||
|
||||
explicit Reader(const ReaderOptions& opts, bool supportsInversion = false) : _opts(opts), supportsInversion(supportsInversion) {}
|
||||
explicit Reader(ReaderOptions&& opts) = delete;
|
||||
virtual ~Reader() = default;
|
||||
|
||||
virtual BarcodesData read(const BinaryBitmap& image, int maxSymbols) const = 0;
|
||||
};
|
||||
|
||||
} // ZXing
|
||||
Reference in new issue
Block a user