Fork of https://developer.mbed.org/teams/Renesas/code/GR-PEACH_mbed-os-client-ZXingSample/
zxing_lib/zxing/qrcode/QRCodeReader.h@0:2f8d4a574b4e, 2018-01-12 (annotated)
- Committer:
- Osamu Nakamura
- Date:
- Fri Jan 12 15:41:00 2018 +0900
- Revision:
- 0:2f8d4a574b4e
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Osamu Nakamura |
0:2f8d4a574b4e | 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- |
Osamu Nakamura |
0:2f8d4a574b4e | 2 | #ifndef __QR_CODE_READER_H__ |
Osamu Nakamura |
0:2f8d4a574b4e | 3 | #define __QR_CODE_READER_H__ |
Osamu Nakamura |
0:2f8d4a574b4e | 4 | |
Osamu Nakamura |
0:2f8d4a574b4e | 5 | /* |
Osamu Nakamura |
0:2f8d4a574b4e | 6 | * QRCodeReader.h |
Osamu Nakamura |
0:2f8d4a574b4e | 7 | * zxing |
Osamu Nakamura |
0:2f8d4a574b4e | 8 | * |
Osamu Nakamura |
0:2f8d4a574b4e | 9 | * Copyright 2010 ZXing authors All rights reserved. |
Osamu Nakamura |
0:2f8d4a574b4e | 10 | * |
Osamu Nakamura |
0:2f8d4a574b4e | 11 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Osamu Nakamura |
0:2f8d4a574b4e | 12 | * you may not use this file except in compliance with the License. |
Osamu Nakamura |
0:2f8d4a574b4e | 13 | * You may obtain a copy of the License at |
Osamu Nakamura |
0:2f8d4a574b4e | 14 | * |
Osamu Nakamura |
0:2f8d4a574b4e | 15 | * http://www.apache.org/licenses/LICENSE-2.0 |
Osamu Nakamura |
0:2f8d4a574b4e | 16 | * |
Osamu Nakamura |
0:2f8d4a574b4e | 17 | * Unless required by applicable law or agreed to in writing, software |
Osamu Nakamura |
0:2f8d4a574b4e | 18 | * distributed under the License is distributed on an "AS IS" BASIS, |
Osamu Nakamura |
0:2f8d4a574b4e | 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Osamu Nakamura |
0:2f8d4a574b4e | 20 | * See the License for the specific language governing permissions and |
Osamu Nakamura |
0:2f8d4a574b4e | 21 | * limitations under the License. |
Osamu Nakamura |
0:2f8d4a574b4e | 22 | */ |
Osamu Nakamura |
0:2f8d4a574b4e | 23 | |
Osamu Nakamura |
0:2f8d4a574b4e | 24 | #include <zxing/Reader.h> |
Osamu Nakamura |
0:2f8d4a574b4e | 25 | #include <zxing/qrcode/decoder/Decoder.h> |
Osamu Nakamura |
0:2f8d4a574b4e | 26 | #include <zxing/DecodeHints.h> |
Osamu Nakamura |
0:2f8d4a574b4e | 27 | |
Osamu Nakamura |
0:2f8d4a574b4e | 28 | namespace zxing { |
Osamu Nakamura |
0:2f8d4a574b4e | 29 | namespace qrcode { |
Osamu Nakamura |
0:2f8d4a574b4e | 30 | |
Osamu Nakamura |
0:2f8d4a574b4e | 31 | class QRCodeReader : public Reader { |
Osamu Nakamura |
0:2f8d4a574b4e | 32 | private: |
Osamu Nakamura |
0:2f8d4a574b4e | 33 | Decoder decoder_; |
Osamu Nakamura |
0:2f8d4a574b4e | 34 | |
Osamu Nakamura |
0:2f8d4a574b4e | 35 | protected: |
Osamu Nakamura |
0:2f8d4a574b4e | 36 | Decoder& getDecoder(); |
Osamu Nakamura |
0:2f8d4a574b4e | 37 | |
Osamu Nakamura |
0:2f8d4a574b4e | 38 | public: |
Osamu Nakamura |
0:2f8d4a574b4e | 39 | QRCodeReader(); |
Osamu Nakamura |
0:2f8d4a574b4e | 40 | virtual ~QRCodeReader(); |
Osamu Nakamura |
0:2f8d4a574b4e | 41 | |
Osamu Nakamura |
0:2f8d4a574b4e | 42 | Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints); |
Osamu Nakamura |
0:2f8d4a574b4e | 43 | }; |
Osamu Nakamura |
0:2f8d4a574b4e | 44 | |
Osamu Nakamura |
0:2f8d4a574b4e | 45 | } |
Osamu Nakamura |
0:2f8d4a574b4e | 46 | } |
Osamu Nakamura |
0:2f8d4a574b4e | 47 | |
Osamu Nakamura |
0:2f8d4a574b4e | 48 | #endif // __QR_CODE_READER_H__ |