├── readme_rus.txt
├── arm-barcode-scanner
├── Project
│ └── OV9655_Camera
│ │ ├── EWARM
│ │ ├── settings
│ │ │ ├── Project.wspos
│ │ │ ├── Project.dni
│ │ │ ├── Project.cspy.bat
│ │ │ └── Project.Discover-More.cspy.bat
│ │ ├── Project.eww
│ │ ├── stm32f4xx_flash.icf
│ │ └── stm32f4xx_sram.icf
│ │ ├── src
│ │ ├── usb_com
│ │ │ └── usbd_cdc_vcp.c
│ │ ├── bigint
│ │ │ ├── BigIntegerLibrary.hh
│ │ │ ├── BigIntegerAlgorithms.hh
│ │ │ ├── BigIntegerUtils.cc
│ │ │ └── BigIntegerAlgorithms.cc
│ │ ├── zxing
│ │ │ ├── datamatrix
│ │ │ │ ├── detector
│ │ │ │ │ ├── DetectorException.cpp
│ │ │ │ │ ├── DetectorException.h
│ │ │ │ │ ├── CornerPoint.h
│ │ │ │ │ └── CornerPoint.cpp
│ │ │ │ ├── DataMatrixReader.h
│ │ │ │ ├── decoder
│ │ │ │ │ ├── DatamatrixDecoder.h
│ │ │ │ │ ├── DatamatrixDataBlock.h
│ │ │ │ │ └── DatamatrixBitMatrixParser.h
│ │ │ │ └── DataMatrixReader.cpp
│ │ │ ├── ResultPointCallback.cpp
│ │ │ ├── oned
│ │ │ │ ├── OneDResultPoint.cpp
│ │ │ │ ├── OneDResultPoint.h
│ │ │ │ ├── MultiFormatOneDReader.h
│ │ │ │ ├── MultiFormatUPCEANReader.h
│ │ │ │ ├── EAN8Reader.h
│ │ │ │ ├── EAN13Reader.h
│ │ │ │ ├── Code128Reader.h
│ │ │ │ ├── UPCEReader.h
│ │ │ │ ├── UPCAReader.h
│ │ │ │ ├── CodaBarReader.h
│ │ │ │ ├── Code93Reader.h
│ │ │ │ ├── Code39Reader.h
│ │ │ │ ├── ITFReader.h
│ │ │ │ └── EAN8Reader.cpp
│ │ │ ├── Reader.cpp
│ │ │ ├── common
│ │ │ │ ├── reedsolomon
│ │ │ │ │ ├── ReedSolomonException.cpp
│ │ │ │ │ ├── ReedSolomonException.h
│ │ │ │ │ ├── ReedSolomonDecoder.h
│ │ │ │ │ └── GenericGFPoly.h
│ │ │ │ ├── BitArrayIO.cpp
│ │ │ │ ├── IllegalArgumentException.cpp
│ │ │ │ ├── IllegalArgumentException.h
│ │ │ │ ├── detector
│ │ │ │ │ ├── JavaMath.h
│ │ │ │ │ ├── MathUtils.h
│ │ │ │ │ ├── WhiteRectangleDetector.h
│ │ │ │ │ └── MonochromeRectangleDetector.h
│ │ │ │ ├── DetectorResult.cpp
│ │ │ │ ├── Point.h
│ │ │ │ ├── DetectorResult.h
│ │ │ │ ├── FastHybridBinarizer.h
│ │ │ │ ├── DecoderResult.cpp
│ │ │ │ ├── DecoderResult.h
│ │ │ │ ├── GreyscaleRotatedLuminanceSource.h
│ │ │ │ ├── Str.h
│ │ │ │ ├── StringUtils.h
│ │ │ │ ├── GreyscaleLuminanceSource.h
│ │ │ │ ├── CharacterSetECI.h
│ │ │ │ ├── GlobalHistogramBinarizer.h
│ │ │ │ ├── Str.cpp
│ │ │ │ ├── GridSampler.h
│ │ │ │ ├── HybridBinarizer.h
│ │ │ │ └── PerspectiveTransform.h
│ │ │ ├── multi
│ │ │ │ ├── MultipleBarcodeReader.cpp
│ │ │ │ ├── qrcode
│ │ │ │ │ ├── detector
│ │ │ │ │ │ ├── MultiDetector.h
│ │ │ │ │ │ ├── MultiDetector.cpp
│ │ │ │ │ │ └── MultiFinderPatternFinder.h
│ │ │ │ │ └── QRCodeMultiReader.h
│ │ │ │ ├── ByQuadrantReader.h
│ │ │ │ ├── MultipleBarcodeReader.h
│ │ │ │ └── GenericMultipleBarcodeReader.h
│ │ │ ├── BarcodeFormat.cpp
│ │ │ ├── FormatException.h
│ │ │ ├── ResultIO.cpp
│ │ │ ├── ChecksumException.cpp
│ │ │ ├── ChecksumException.h
│ │ │ ├── Reader.h
│ │ │ ├── ResultPointCallback.h
│ │ │ ├── NotFoundException.h
│ │ │ ├── ReaderException.h
│ │ │ ├── IllegalStateException.h
│ │ │ ├── FormatException.cpp
│ │ │ ├── Exception.cpp
│ │ │ ├── qrcode
│ │ │ │ ├── decoder
│ │ │ │ │ ├── Decoder.h
│ │ │ │ │ ├── DataMask.h
│ │ │ │ │ ├── DataBlock.h
│ │ │ │ │ ├── BitMatrixParser.h
│ │ │ │ │ └── Mode.h
│ │ │ │ ├── detector
│ │ │ │ │ ├── FinderPatternInfo.cpp
│ │ │ │ │ ├── AlignmentPattern.h
│ │ │ │ │ ├── FinderPatternInfo.h
│ │ │ │ │ ├── FinderPattern.h
│ │ │ │ │ └── AlignmentPattern.cpp
│ │ │ │ ├── QRCodeReader.h
│ │ │ │ ├── ErrorCorrectionLevel.h
│ │ │ │ ├── QRCodeReader.cpp
│ │ │ │ ├── FormatInformation.h
│ │ │ │ └── ErrorCorrectionLevel.cpp
│ │ │ ├── Binarizer.cpp
│ │ │ ├── aztec
│ │ │ │ ├── AztecDetectorResult.h
│ │ │ │ ├── AztecReader.h
│ │ │ │ ├── AztecDetectorResult.cpp
│ │ │ │ ├── decoder
│ │ │ │ │ └── AztecDecoder.h
│ │ │ │ └── AztecReader.cpp
│ │ │ ├── MultiFormatReader.h
│ │ │ ├── Binarizer.h
│ │ │ ├── pdf417
│ │ │ │ ├── PDF417Reader.h
│ │ │ │ └── decoder
│ │ │ │ │ ├── ec
│ │ │ │ │ ├── ModulusGF.h
│ │ │ │ │ └── ModulusPoly.h
│ │ │ │ │ └── Pdf417Decoder.h
│ │ │ ├── InvertedLuminanceSource.h
│ │ │ ├── BinaryBitmap.h
│ │ │ ├── Exception.h
│ │ │ ├── BarcodeFormat.h
│ │ │ ├── Result.h
│ │ │ ├── ResultPoint.h
│ │ │ ├── Result.cpp
│ │ │ └── LuminanceSource.h
│ │ ├── ImageReaderSource.h
│ │ └── ImageReaderSource.cpp
│ │ └── inc
│ │ └── bmp.h
├── Utilities
│ ├── fat_fs
│ │ ├── inc
│ │ │ ├── fattime.h
│ │ │ ├── integer.h
│ │ │ └── diskio.h
│ │ └── src
│ │ │ └── fattime.c
│ ├── Binary
│ │ └── Media
│ │ │ ├── STM3210E-1.bmp
│ │ │ ├── STM3210E-2.bmp
│ │ │ ├── STM32IMAGE.bmp
│ │ │ └── STLOGOIMAGE.bmp
│ ├── PC_Software
│ │ ├── DfuSe_Demo_V3.0.2
│ │ │ └── DfuSe USB device firmware upgrade user manual.pdf
│ │ └── stm32_vcp
│ │ │ ├── readme.txt
│ │ │ └── version.txt
│ ├── FatFs_vR0.08a
│ │ └── integer.h
│ └── STM32F4-Discovery
│ │ └── stm32f4_discovery_debug.h
└── Libraries
│ ├── CMSIS
│ ├── index.htm
│ ├── Documentation
│ │ ├── CMSIS_Core.htm
│ │ ├── CMSIS_History.htm
│ │ ├── CMSIS_CM4_SIMD.htm
│ │ ├── CMSIS_DebugSupport.htm
│ │ ├── CMSIS_Logo_Final.jpg
│ │ └── CMSIS_System_View_Description.htm
│ ├── CMSIS END USER LICENCE AGREEMENT.pdf
│ ├── Device
│ │ └── ST
│ │ │ └── STM32F4xx
│ │ │ └── Include
│ │ │ └── stm32f4xx.h
│ ├── Include
│ │ └── arm_common_tables.h
│ └── README.txt
│ ├── STM32F4xx_StdPeriph_Driver
│ ├── Release_Notes.html
│ └── src
│ │ ├── stm32f4xx_rcc.c
│ │ └── stm32f4xx_flash.c
│ └── STM32_USB_Device_Library
│ └── Class
│ ├── cdc
│ └── inc
│ │ └── usbd_cdc_if_template.h
│ └── dfu
│ └── inc
│ └── usbd_otp_if.h
└── README.md
/readme_rus.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/readme_rus.txt
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/EWARM/settings/Project.wspos:
--------------------------------------------------------------------------------
1 | [MainWindow]
2 | WindowPlacement=_ 185 152 1477 836 2
3 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/fat_fs/inc/fattime.h:
--------------------------------------------------------------------------------
1 | #ifndef FATTIME_H_
2 |
3 | #include "integer.h"
4 |
5 | DWORD get_fattime(void);
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/index.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/index.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/Binary/Media/STM3210E-1.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Utilities/Binary/Media/STM3210E-1.bmp
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/Binary/Media/STM3210E-2.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Utilities/Binary/Media/STM3210E-2.bmp
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/Binary/Media/STM32IMAGE.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Utilities/Binary/Media/STM32IMAGE.bmp
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/Binary/Media/STLOGOIMAGE.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Utilities/Binary/Media/STLOGOIMAGE.bmp
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_Core.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_Core.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_History.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_History.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_CM4_SIMD.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_CM4_SIMD.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/usb_com/usbd_cdc_vcp.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Project/OV9655_Camera/src/usb_com/usbd_cdc_vcp.c
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_DebugSupport.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_DebugSupport.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_Logo_Final.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_Logo_Final.jpg
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/fat_fs/src/fattime.c:
--------------------------------------------------------------------------------
1 |
2 | #include "integer.h"
3 | #include "fattime.h"
4 | //#include "rtc.h" //RPi
5 |
6 | DWORD get_fattime(void) {
7 | return 0;
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/Release_Notes.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/Release_Notes.html
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_System_View_Description.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Libraries/CMSIS/Documentation/CMSIS_System_View_Description.htm
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/EWARM/Project.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\Project.ewp
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/PC_Software/DfuSe_Demo_V3.0.2/DfuSe USB device firmware upgrade user manual.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachcard/arm-barcode-scanner/HEAD/arm-barcode-scanner/Utilities/PC_Software/DfuSe_Demo_V3.0.2/DfuSe USB device firmware upgrade user manual.pdf
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/bigint/BigIntegerLibrary.hh:
--------------------------------------------------------------------------------
1 | // This header file includes all of the library header files.
2 |
3 | #include "NumberlikeArray.hh"
4 | #include "BigUnsigned.hh"
5 | #include "BigInteger.hh"
6 | #include "BigIntegerAlgorithms.hh"
7 | #include "BigUnsignedInABase.hh"
8 | #include "BigIntegerUtils.hh"
9 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/detector/DetectorException.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * DetectorException.cpp
3 | *
4 | * Created on: Aug 26, 2011
5 | * Author: luiz
6 | */
7 |
8 | #include "DetectorException.h"
9 |
10 | namespace zxing {
11 | namespace datamatrix {
12 |
13 | DetectorException::DetectorException(const char *msg) :
14 | Exception(msg) {
15 |
16 | }
17 |
18 | DetectorException::~DetectorException() throw () {
19 | // TODO Auto-generated destructor stub
20 | }
21 |
22 | }
23 | } /* namespace zxing */
24 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/detector/DetectorException.h:
--------------------------------------------------------------------------------
1 | /*
2 | * DetectorException.h
3 | *
4 | * Created on: Aug 26, 2011
5 | * Author: luiz
6 | */
7 |
8 | #ifndef DETECTOREXCEPTION_H_
9 | #define DETECTOREXCEPTION_H_
10 |
11 | #include
12 |
13 | namespace zxing {
14 | namespace datamatrix {
15 |
16 | class DetectorException: public Exception {
17 | public:
18 | DetectorException(const char *msg);
19 | virtual ~DetectorException() throw ();
20 | };
21 | } /* namespace nexxera */
22 | } /* namespace zxing */
23 | #endif /* DETECTOREXCEPTION_H_ */
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | arm-barcode-scanner
2 | ===================
3 |
4 | qr barcode scanner for ARM
5 |
6 | project works for the controller STM32F407VG.
7 |
8 | This code is based on the ZXing library. See https://code.google.com/p/zxing/ for
9 | more information.
10 |
11 | Hardware requirements
12 | =====================
13 | The main board is the STM32F4 discovery kit.
14 | See http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419 for more information.
15 |
16 | Running in IAR Embedded Workbench
17 | =================================
18 | 1. Open the project: arm-barcode-scanner\Project\OV9655_Camera\EWARM\Project.eww
19 | 2. Recompile the project: Project -> Rebuild all
20 | 3. Run the debugging: Project -> Download and debug (CTRL + D)
21 | 4. Run the program: Debug -> Go (F5)
22 |
23 | video work
24 | https://vimeo.com/120055682
25 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ResultPointCallback.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * ResultPointCallback.cpp
3 | * zxing
4 | *
5 | * Copyright 2010 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 |
22 | namespace zxing {
23 |
24 | ResultPointCallback::~ResultPointCallback() {
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/bigint/BigIntegerAlgorithms.hh:
--------------------------------------------------------------------------------
1 | #ifndef BIGINTEGERALGORITHMS_H
2 | #define BIGINTEGERALGORITHMS_H
3 |
4 | #include "BigInteger.hh"
5 |
6 | /* Some mathematical algorithms for big integers.
7 | * This code is new and, as such, experimental. */
8 |
9 | // Returns the greatest common divisor of a and b.
10 | BigUnsigned gcd(BigUnsigned a, BigUnsigned b);
11 |
12 | /* Extended Euclidean algorithm.
13 | * Given m and n, finds gcd g and numbers r, s such that r*m + s*n == g. */
14 | void extendedEuclidean(BigInteger m, BigInteger n, BigInteger &g, BigInteger &r,
15 | BigInteger &s);
16 |
17 | /* Returns the multiplicative inverse of x modulo n, or throws an exception if
18 | * they have a common factor. */
19 | BigUnsigned modinv(const BigInteger &x, const BigUnsigned &n);
20 |
21 | // Returns (base ^ exponent) % modulus.
22 | BigUnsigned modexp(const BigInteger &base, const BigUnsigned &exponent,
23 | const BigUnsigned &modulus);
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/OneDResultPoint.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * OneDResultPoint.cpp
3 | * ZXing
4 | *
5 | * Copyright 2010 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include "OneDResultPoint.h"
21 |
22 | namespace zxing {
23 | namespace oned {
24 |
25 | OneDResultPoint::OneDResultPoint(float posX, float posY) :
26 | ResultPoint(posX, posY) {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/FatFs_vR0.08a/integer.h:
--------------------------------------------------------------------------------
1 | /*-------------------------------------------*/
2 | /* Integer type definitions for FatFs module */
3 | /*-------------------------------------------*/
4 |
5 | #ifndef _INTEGER
6 | #define _INTEGER
7 |
8 | #ifdef _WIN32 /* FatFs development platform */
9 |
10 | #include
11 | #include
12 |
13 | #else /* Embedded platform */
14 |
15 | /* These types must be 16-bit, 32-bit or larger integer */
16 | typedef int INT;
17 | typedef unsigned int UINT;
18 |
19 | /* These types must be 8-bit integer */
20 | typedef char CHAR;
21 | typedef unsigned char UCHAR;
22 | typedef unsigned char BYTE;
23 |
24 | /* These types must be 16-bit integer */
25 | typedef short SHORT;
26 | typedef unsigned short USHORT;
27 | typedef unsigned short WORD;
28 | typedef unsigned short WCHAR;
29 |
30 | /* These types must be 32-bit integer */
31 | typedef long LONG;
32 | typedef unsigned long ULONG;
33 | typedef unsigned long DWORD;
34 |
35 | #endif
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/Reader.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Reader.cpp
3 | * zxing
4 | *
5 | * Created by Christian Brunschen on 13/05/2008.
6 | * Copyright 2008 ZXing authors All rights reserved.
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #include
22 |
23 | namespace zxing {
24 |
25 | Reader::~Reader() {
26 | }
27 |
28 | Ref Reader::decode(Ref image) {
29 | return decode(image, DecodeHints::DEFAULT_HINT);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/OneDResultPoint.h:
--------------------------------------------------------------------------------
1 | #ifndef __ONED_RESULT_POINT_H__
2 | #define __ONED_RESULT_POINT_H__
3 | /*
4 | * OneDResultPoint.h
5 | * ZXing
6 | *
7 | * Copyright 2010 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 | #include
22 | #include
23 |
24 | namespace zxing {
25 | namespace oned {
26 |
27 | class OneDResultPoint: public ResultPoint {
28 |
29 | public:
30 | OneDResultPoint(float posX, float posY);
31 | };
32 | }
33 | }
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/reedsolomon/ReedSolomonException.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * ReedSolomonException.cpp
3 | * zxing
4 | *
5 | * Created by Christian Brunschen on 06/05/2008.
6 | * Copyright 2008 Google UK. All rights reserved.
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #include
22 |
23 | namespace zxing {
24 | ReedSolomonException::ReedSolomonException(const char *msg) throw () :
25 | Exception(msg) {
26 | }
27 | ReedSolomonException::~ReedSolomonException() throw () {
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/fat_fs/inc/integer.h:
--------------------------------------------------------------------------------
1 | /*-------------------------------------------*/
2 | /* Integer type definitions for FatFs module */
3 | /*-------------------------------------------*/
4 |
5 | #ifndef _INTEGER
6 |
7 | #if 0
8 | #include
9 | #else
10 |
11 | #include "usb_conf.h"
12 |
13 | /* These types must be 16-bit, 32-bit or larger integer */
14 | typedef int INT;
15 | typedef unsigned int UINT;
16 |
17 | /* These types must be 8-bit integer */
18 | typedef signed char CHAR;
19 | typedef unsigned char UCHAR;
20 | typedef unsigned char BYTE;
21 |
22 | /* These types must be 16-bit integer */
23 | typedef short SHORT;
24 | typedef unsigned short USHORT;
25 | typedef unsigned short WORD;
26 | typedef unsigned short WCHAR;
27 |
28 | /* These types must be 32-bit integer */
29 | typedef long LONG;
30 | typedef unsigned long ULONG;
31 | typedef unsigned long DWORD;
32 |
33 | /* Boolean type */
34 | // typedef enum { FALSE = 0, TRUE } BOOL;
35 | #include
36 | typedef bool BOOL;
37 | #ifndef FALSE
38 | #define FALSE false
39 | #define TRUE true
40 | #endif
41 |
42 | #endif
43 |
44 | #define _INTEGER
45 | #endif
46 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/multi/MultipleBarcodeReader.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 ZXing authors All rights reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #include
18 |
19 | namespace zxing {
20 | namespace multi {
21 |
22 | MultipleBarcodeReader::~MultipleBarcodeReader() {
23 | }
24 |
25 | std::vector[ > MultipleBarcodeReader::decodeMultiple(
26 | Ref image) {
27 | return decodeMultiple(image, DecodeHints::DEFAULT_HINT);
28 | }
29 |
30 | } // End zxing::multi namespace
31 | } // End zxing namespace
32 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/BitArrayIO.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * Copyright 2010 ZXing authors. All rights reserved.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | using zxing::BitArray;
21 | using std::ostream;
22 |
23 | ostream& zxing::operator <<(ostream& os, BitArray const& ba) {
24 | for (int i = 0, size = ba.getSize(); i < size; i++) {
25 | if ((i & 0x07) == 0) {
26 | os << ' ';
27 | }
28 | os << (ba.get(i) ? 'X' : '.');
29 | }
30 | return os;
31 | }
32 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/BarcodeFormat.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * Created by Christian Brunschen on 13/05/2008.
4 | * Copyright 2008 ZXing authors All rights reserved.
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | #include
20 |
21 | const char* zxing::BarcodeFormat::barcodeFormatNames[] = { 0, "AZTEC",
22 | "CODABAR", "CODE_39", "CODE_93", "CODE_128", "DATA_MATRIX", "EAN_8",
23 | "EAN_13", "ITF", "MAXICODE", "PDF_417", "QR_CODE", "RSS_14",
24 | "RSS_EXPANDED", "UPC_A", "UPC_E", "UPC_EAN_EXTENSION" };
25 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/reedsolomon/ReedSolomonException.h:
--------------------------------------------------------------------------------
1 | #ifndef __REED_SOLOMON_EXCEPTION_H__
2 | #define __REED_SOLOMON_EXCEPTION_H__
3 |
4 | /*
5 | * ReedSolomonException.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 | class ReedSolomonException: public Exception {
27 | public:
28 | ReedSolomonException(const char *msg) throw ();
29 | ~ReedSolomonException() throw ();
30 | };
31 | }
32 |
33 | #endif // __REED_SOLOMON_EXCEPTION_H__
34 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/FormatException.h:
--------------------------------------------------------------------------------
1 | #ifndef __FORMAT_EXCEPTION_H__
2 | #define __FORMAT_EXCEPTION_H__
3 |
4 | /*
5 | * FormatException.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 |
27 | class FormatException: public ReaderException {
28 | public:
29 | FormatException();
30 | FormatException(const char *msg);
31 | ~FormatException() throw ();
32 |
33 | static FormatException const& getFormatInstance();
34 | };
35 |
36 | }
37 | #endif // __FORMAT_EXCEPTION_H__
38 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ResultIO.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * ResultIO.cpp
4 | * zxing
5 | *
6 | * Created by Christian Brunschen on 13/05/2008.
7 | * Copyright 2008 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | using zxing::Result;
25 | using std::ostream;
26 |
27 | ostream& zxing::operator<<(ostream &out, Result& result) {
28 | if (result.text_ != 0) {
29 | out << result.text_->getText();
30 | } else {
31 | out << "[" << result.rawBytes_->size() << " bytes]";
32 | }
33 | return out;
34 | }
35 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ChecksumException.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * ChecksumException.cpp
4 | * zxing
5 | *
6 | * Created by Christian Brunschen on 13/05/2008.
7 | * Copyright 2008 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | using zxing::ChecksumException;
25 |
26 | ChecksumException::ChecksumException() throw () {
27 | }
28 | ChecksumException::ChecksumException(const char *msg) throw () :
29 | ReaderException(msg) {
30 | }
31 | ChecksumException::~ChecksumException() throw () {
32 | }
33 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/IllegalArgumentException.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * IllegalArgumentException.cpp
3 | * zxing
4 | *
5 | * Created by Christian Brunschen on 06/05/2008.
6 | * Copyright 2008 Google UK. All rights reserved.
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #include
22 |
23 | using zxing::IllegalArgumentException;
24 |
25 | IllegalArgumentException::IllegalArgumentException() :
26 | Exception() {
27 | }
28 | IllegalArgumentException::IllegalArgumentException(const char *msg) :
29 | Exception(msg) {
30 | }
31 | IllegalArgumentException::~IllegalArgumentException() throw () {
32 | }
33 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ChecksumException.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 |
3 | #ifndef __CHECKSUM_EXCEPTION_H__
4 | #define __NOT_FOUND_EXCEPTION_H__
5 |
6 | /*
7 | * Copyright 20011 ZXing authors
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 | class ChecksumException: public ReaderException {
26 | typedef ReaderException Base;
27 | public:
28 | ChecksumException() throw ();
29 | ChecksumException(const char *msg) throw ();
30 | ~ChecksumException() throw ();
31 | };
32 | }
33 |
34 | #endif // __CHECKSUM_EXCEPTION_H__
35 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/IllegalArgumentException.h:
--------------------------------------------------------------------------------
1 | #ifndef __ILLEGAL_ARGUMENT_EXCEPTION_H__
2 | #define __ILLEGAL_ARGUMENT_EXCEPTION_H__
3 |
4 | /*
5 | * IllegalArgumentException.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 |
27 | class IllegalArgumentException: public Exception {
28 | public:
29 | IllegalArgumentException();
30 | IllegalArgumentException(const char *msg);
31 | ~IllegalArgumentException() throw ();
32 | };
33 |
34 | }
35 |
36 | #endif // __ILLEGAL_ARGUMENT_EXCEPTION_H__
37 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/MultiFormatOneDReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __MULTI_FORMAT_ONED_READER_H__
2 | #define __MULTI_FORMAT_ONED_READER_H__
3 | /*
4 | * MultiFormatOneDReader.h
5 | * ZXing
6 | *
7 | * Copyright 2010 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 | namespace oned {
26 | class MultiFormatOneDReader: public OneDReader {
27 |
28 | private:
29 | std::vector][ > readers;
30 | public:
31 | MultiFormatOneDReader(DecodeHints hints);
32 |
33 | Ref decodeRow(int rowNumber, Ref row);
34 | };
35 | }
36 | }
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/Reader.h:
--------------------------------------------------------------------------------
1 | #ifndef __READER_H__
2 | #define __READER_H__
3 |
4 | /*
5 | * Reader.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 |
27 | namespace zxing {
28 |
29 | class Reader: public Counted {
30 | protected:
31 | Reader() {
32 | }
33 | public:
34 | virtual Ref decode(Ref image);
35 | virtual Ref decode(Ref image, DecodeHints hints) = 0;
36 | virtual ~Reader();
37 | };
38 |
39 | }
40 |
41 | #endif // __READER_H__
42 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ResultPointCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef __RESULT_POINT_CALLBACK_H__
2 | #define __RESULT_POINT_CALLBACK_H__
3 |
4 | /*
5 | * ResultPointCallback.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 |
27 | class ResultPoint;
28 |
29 | class ResultPointCallback: public Counted {
30 | protected:
31 | ResultPointCallback() {
32 | }
33 | public:
34 | virtual void foundPossibleResultPoint(ResultPoint const& point) = 0;
35 | virtual ~ResultPointCallback();
36 | };
37 |
38 | }
39 |
40 | #endif // __RESULT_POINT_CALLBACK_H__
41 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/Include/arm_common_tables.h:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------
2 | * Copyright (C) 2010 ARM Limited. All rights reserved.
3 | *
4 | * $Date: 11. November 2010
5 | * $Revision: V1.0.2
6 | *
7 | * Project: CMSIS DSP Library
8 | * Title: arm_common_tables.h
9 | *
10 | * Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
11 | *
12 | * Target Processor: Cortex-M4/Cortex-M3
13 | *
14 | * Version 1.0.2 2010/11/11
15 | * Documentation updated.
16 | *
17 | * Version 1.0.1 2010/10/05
18 | * Production release and review comments incorporated.
19 | *
20 | * Version 1.0.0 2010/09/20
21 | * Production release and review comments incorporated.
22 | * -------------------------------------------------------------------- */
23 |
24 | #ifndef _ARM_COMMON_TABLES_H
25 | #define _ARM_COMMON_TABLES_H
26 |
27 | #include "arm_math.h"
28 |
29 | extern uint16_t armBitRevTable[256];
30 | extern q15_t armRecipTableQ15[64];
31 | extern q31_t armRecipTableQ31[64];
32 | extern const q31_t realCoefAQ31[1024];
33 | extern const q31_t realCoefBQ31[1024];
34 |
35 | #endif /* ARM_COMMON_TABLES_H */
36 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/NotFoundException.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 |
3 | #ifndef __NOT_FOUND_EXCEPTION_H__
4 | #define __NOT_FOUND_EXCEPTION_H__
5 |
6 | /*
7 | * Copyright 20011 ZXing authors
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 |
26 | class NotFoundException: public ReaderException {
27 | public:
28 | NotFoundException() throw () {
29 | }
30 | NotFoundException(const char *msg) throw () :
31 | ReaderException(msg) {
32 | }
33 | ~NotFoundException() throw () {
34 | }
35 | };
36 |
37 | }
38 |
39 | #endif // __NOT_FOUND_EXCEPTION_H__
40 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/detector/JavaMath.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __ZXING_COMMON_DETECTOR_MATH_H__
3 | #define __ZXING_COMMON_DETECTOR_MATH_H__
4 | /*
5 | * Copyright 2012 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 |
22 | namespace zxing {
23 | namespace common {
24 | namespace detector {
25 |
26 | class Math {
27 | private:
28 | Math();
29 | ~Math();
30 | public:
31 |
32 | // Java standard Math.round
33 | static inline int round(float a) {
34 | return (int) std::floor(a + 0.5f);
35 | }
36 |
37 | };
38 |
39 | }
40 | }
41 | }
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/multi/qrcode/detector/MultiDetector.h:
--------------------------------------------------------------------------------
1 | #ifndef __MULTI_DETECTOR_H__
2 | #define __MULTI_DETECTOR_H__
3 |
4 | /*
5 | * Copyright 2011 ZXing authors
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | namespace zxing {
25 | namespace multi {
26 |
27 | class MultiDetector: public zxing::qrcode::Detector {
28 | public:
29 | MultiDetector(Ref image);
30 | virtual ~MultiDetector();
31 | virtual std::vector][ > detectMulti(DecodeHints hints);
32 | };
33 |
34 | }
35 | }
36 |
37 | #endif // __MULTI_DETECTOR_H__
38 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/ReaderException.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __READER_EXCEPTION_H__
3 | #define __READER_EXCEPTION_H__
4 |
5 | /*
6 | * ReaderException.h
7 | * zxing
8 | *
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 |
26 | namespace zxing {
27 |
28 | class ReaderException: public Exception {
29 | public:
30 | ReaderException() throw () {
31 | }
32 | ReaderException(char const* msg) throw () :
33 | Exception(msg) {
34 | }
35 | ~ReaderException() throw () {
36 | }
37 | };
38 |
39 | }
40 |
41 | #endif // __READER_EXCEPTION_H__
42 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/IllegalStateException.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 |
3 | #ifndef __ILLEGAL_STATE_EXCEPTION_H__
4 | #define __ILLEGAL_STATE_EXCEPTION_H__
5 |
6 | /*
7 | * Copyright 20011 ZXing authors
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may illegal use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 |
26 | class IllegalStateException: public ReaderException {
27 | public:
28 | IllegalStateException() throw () {
29 | }
30 | IllegalStateException(const char *msg) throw () :
31 | ReaderException(msg) {
32 | }
33 | ~IllegalStateException() throw () {
34 | }
35 | };
36 |
37 | }
38 |
39 | #endif // __ILLEGAL_STATE_EXCEPTION_H__
40 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/DetectorResult.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * DetectorResult.cpp
4 | * zxing
5 | *
6 | * Created by Christian Brunschen on 14/05/2008.
7 | * Copyright 2008 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 |
26 | DetectorResult::DetectorResult(Ref bits,
27 | ArrayRef][ > points) :
28 | bits_(bits), points_(points) {
29 | }
30 |
31 | Ref DetectorResult::getBits() {
32 | return bits_;
33 | }
34 |
35 | ArrayRef][ > DetectorResult::getPoints() {
36 | return points_;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/detector/CornerPoint.h:
--------------------------------------------------------------------------------
1 | #ifndef __CORNER_FINDER_H__
2 | #define __CORNER_FINDER_H__
3 |
4 | /*
5 | * CornerPoint.h
6 | * zxing
7 | *
8 | * Created by Luiz Silva on 09/02/2010.
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 |
27 | namespace zxing {
28 | namespace datamatrix {
29 |
30 | class CornerPoint: public ResultPoint {
31 | private:
32 | int counter_;
33 |
34 | public:
35 | CornerPoint(float posX, float posY);
36 | int getCount() const;
37 | void incrementCount();
38 | bool equals(Ref other) const;
39 | };
40 | }
41 | }
42 |
43 | #endif // __CORNER_FINDER_H__
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/FormatException.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * FormatException.cpp
4 | * zxing
5 | *
6 | * Created by Christian Brunschen on 13/05/2008.
7 | * Copyright 2008 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | namespace zxing {
25 |
26 | FormatException::FormatException() {
27 | }
28 |
29 | FormatException::FormatException(const char *msg) :
30 | ReaderException(msg) {
31 | }
32 |
33 | FormatException::~FormatException() throw () {
34 | }
35 |
36 | FormatException const&
37 | FormatException::getFormatInstance() {
38 | static FormatException instance;
39 | return instance;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/Exception.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * Exception.cpp
4 | * ZXing
5 | *
6 | * Created by Christian Brunschen on 03/06/2008.
7 | * Copyright 2008-2011 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 |
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 |
27 | using zxing::Exception;
28 |
29 | void Exception::deleteMessage() {
30 | delete[] message;
31 | }
32 |
33 | char const* Exception::copy(char const* msg) {
34 | char* message = 0;
35 | if (msg) {
36 | int l = strlen(msg) + 1;
37 | if (l) {
38 | message = new char[l];
39 | strcpy(message, msg);
40 | }
41 | }
42 | return message;
43 | }
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/multi/qrcode/QRCodeMultiReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __QRCODE_MULTI_READER_H__
2 | #define __QRCODE_MULTI_READER_H__
3 |
4 | /*
5 | * Copyright 2011 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 |
23 | namespace zxing {
24 | namespace multi {
25 |
26 | class QRCodeMultiReader: public zxing::qrcode::QRCodeReader,
27 | public MultipleBarcodeReader {
28 | public:
29 | QRCodeMultiReader();
30 | virtual ~QRCodeMultiReader();
31 | virtual std::vector][ > decodeMultiple(Ref image,
32 | DecodeHints hints);
33 | };
34 |
35 | }
36 | }
37 |
38 | #endif // __QRCODE_MULTI_READER_H__
39 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/MultiFormatUPCEANReader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __MULTI_FORMAT_UPC_EAN_READER_H__
3 | #define __MULTI_FORMAT_UPC_EAN_READER_H__
4 | /*
5 | * MultiFormatUPCEANReader.h
6 | * ZXing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 | namespace oned {
27 |
28 | class UPCEANReader;
29 |
30 | class MultiFormatUPCEANReader: public OneDReader {
31 | private:
32 | std::vector][ > readers;
33 | public:
34 | MultiFormatUPCEANReader(DecodeHints hints);
35 | Ref decodeRow(int rowNumber, Ref row);
36 | };
37 |
38 | }
39 | }
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/Point.h:
--------------------------------------------------------------------------------
1 | #ifndef __POINT_H__
2 | #define __POINT_H__
3 |
4 | /*
5 | * Point.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | namespace zxing {
24 | class PointI {
25 | public:
26 | int x;
27 | int y;
28 | };
29 |
30 | class Point {
31 | public:
32 | Point() :
33 | x(0.0f), y(0.0f) {
34 | }
35 | ;
36 | Point(float x_, float y_) :
37 | x(x_), y(y_) {
38 | }
39 | ;
40 |
41 | float x;
42 | float y;
43 | };
44 |
45 | class Line {
46 | public:
47 | Line(Point start_, Point end_) :
48 | start(start_), end(end_) {
49 | }
50 | ;
51 |
52 | Point start;
53 | Point end;
54 | };
55 | }
56 | #endif // POINT_H_
57 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/detector/CornerPoint.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * CornerPoint.cpp
3 | * zxing
4 | *
5 | * Created by Luiz Silva on 09/02/2010.
6 | * Copyright 2010 ZXing authors All rights reserved.
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #include
22 |
23 | namespace zxing {
24 | namespace datamatrix {
25 |
26 | using namespace std;
27 |
28 | CornerPoint::CornerPoint(float posX, float posY) :
29 | ResultPoint(posX, posY), counter_(0) {
30 | }
31 |
32 | int CornerPoint::getCount() const {
33 | return counter_;
34 | }
35 |
36 | void CornerPoint::incrementCount() {
37 | counter_++;
38 | }
39 |
40 | bool CornerPoint::equals(Ref other) const {
41 | return posX_ == other->getX() && posY_ == other->getY();
42 | }
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/multi/ByQuadrantReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __BY_QUADRANT_READER_H__
2 | #define __BY_QUADRANT_READER_H__
3 |
4 | /*
5 | * Copyright 2011 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | namespace zxing {
26 | namespace multi {
27 |
28 | class ByQuadrantReader: public Reader {
29 | private:
30 | Reader& delegate_;
31 |
32 | public:
33 | ByQuadrantReader(Reader& delegate);
34 | virtual ~ByQuadrantReader();
35 | virtual Ref decode(Ref image);
36 | virtual Ref decode(Ref image, DecodeHints hints);
37 | };
38 |
39 | }
40 | }
41 |
42 | #endif // __BY_QUADRANT_READER_H__
43 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/EAN8Reader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __EAN_8_READER_H__
3 | #define __EAN_8_READER_H__
4 |
5 | /*
6 | * EAN8Reader.h
7 | * ZXing
8 | *
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 |
27 | namespace zxing {
28 | namespace oned {
29 |
30 | class EAN8Reader: public UPCEANReader {
31 | private:
32 | std::vector decodeMiddleCounters;
33 |
34 | public:
35 | EAN8Reader();
36 |
37 | int decodeMiddle(Ref row, Range const& startRange,
38 | std::string& resultString);
39 |
40 | BarcodeFormat getBarcodeFormat();
41 | };
42 |
43 | }
44 | }
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/DetectorResult.h:
--------------------------------------------------------------------------------
1 | #ifndef __DETECTOR_RESULT_H__
2 | #define __DETECTOR_RESULT_H__
3 |
4 | /*
5 | * DetectorResult.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 |
30 | class DetectorResult: public Counted {
31 | private:
32 | Ref bits_;
33 | ArrayRef][ > points_;
34 |
35 | public:
36 | DetectorResult(Ref bits, ArrayRef][ > points);
37 | Ref getBits();
38 | ArrayRef][ > getPoints();
39 | };
40 |
41 | }
42 |
43 | #endif // __DETECTOR_RESULT_H__
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/decoder/Decoder.h:
--------------------------------------------------------------------------------
1 | #ifndef __DECODER_H__
2 | #define __DECODER_H__
3 |
4 | /*
5 | * Decoder.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 |
29 | namespace zxing {
30 | namespace qrcode {
31 |
32 | class Decoder {
33 | private:
34 | ReedSolomonDecoder rsDecoder_;
35 |
36 | void correctErrors(ArrayRef bytes, int numDataCodewords);
37 |
38 | public:
39 | Decoder();
40 | Ref decode(Ref bits);
41 | };
42 |
43 | }
44 | }
45 |
46 | #endif // __DECODER_H__
47 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/Binarizer.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * Binarizer.cpp
4 | * zxing
5 | *
6 | * Created by Ralf Kistner on 16/10/2009.
7 | * Copyright 2008 ZXing authors All rights reserved.
8 | * Modified by Lukasz Warchol on 02/02/2010.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace zxing {
26 |
27 | Binarizer::Binarizer(Ref source) :
28 | source_(source) {
29 | }
30 |
31 | Binarizer::~Binarizer() {
32 | }
33 |
34 | Ref Binarizer::getLuminanceSource() const {
35 | return source_;
36 | }
37 |
38 | int Binarizer::getWidth() const {
39 | return source_->getWidth();
40 | }
41 |
42 | int Binarizer::getHeight() const {
43 | return source_->getHeight();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/DataMatrixReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __DATA_MATRIX_READER_H__
2 | #define __DATA_MATRIX_READER_H__
3 |
4 | /*
5 | * DataMatrixReader.h
6 | * zxing
7 | *
8 | * Created by Luiz Silva on 09/02/2010.
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 | namespace datamatrix {
30 |
31 | class DataMatrixReader: public Reader {
32 | using Reader::decode;
33 |
34 | private:
35 | Decoder decoder_;
36 |
37 | public:
38 | DataMatrixReader();
39 | virtual Ref decode(Ref image, DecodeHints hints);
40 | virtual ~DataMatrixReader();
41 |
42 | };
43 |
44 | }
45 | }
46 |
47 | #endif // __DATA_MATRIX_READER_H__
48 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/detector/FinderPatternInfo.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * FinderPatternInfo.cpp
3 | * zxing
4 | *
5 | * Created by Christian Brunschen on 13/05/2008.
6 | * Copyright 2008 ZXing authors All rights reserved.
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #include
22 |
23 | namespace zxing {
24 | namespace qrcode {
25 |
26 | FinderPatternInfo::FinderPatternInfo(
27 | std::vector][ > patternCenters) :
28 | bottomLeft_(patternCenters[0]), topLeft_(patternCenters[1]), topRight_(
29 | patternCenters[2]) {
30 | }
31 |
32 | Ref FinderPatternInfo::getBottomLeft() {
33 | return bottomLeft_;
34 | }
35 | Ref FinderPatternInfo::getTopLeft() {
36 | return topLeft_;
37 | }
38 | Ref FinderPatternInfo::getTopRight() {
39 | return topRight_;
40 | }
41 |
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/QRCodeReader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __QR_CODE_READER_H__
3 | #define __QR_CODE_READER_H__
4 |
5 | /*
6 | * QRCodeReader.h
7 | * zxing
8 | *
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 | namespace qrcode {
30 |
31 | class QRCodeReader: public Reader {
32 | using Reader::decode;
33 |
34 | private:
35 | Decoder decoder_;
36 |
37 | protected:
38 | Decoder& getDecoder();
39 |
40 | public:
41 | QRCodeReader();
42 | virtual ~QRCodeReader();
43 |
44 | Ref decode(Ref image, DecodeHints hints);
45 | };
46 |
47 | }
48 | }
49 |
50 | #endif // __QR_CODE_READER_H__
51 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Libraries/CMSIS/README.txt:
--------------------------------------------------------------------------------
1 | * -------------------------------------------------------------------
2 | * Copyright (C) 2011 ARM Limited. All rights reserved.
3 | *
4 | * Date: 25 July 2011
5 | * Revision: V2.10
6 | *
7 | * Project: Cortex Microcontroller Software Interface Standard (CMSIS)
8 | * Title: Release Note for CMSIS
9 | *
10 | * -------------------------------------------------------------------
11 |
12 |
13 | NOTE - Open the index.html file to access CMSIS documentation
14 |
15 |
16 | The Cortex Microcontroller Software Interface Standard (CMSIS) provides a single standard across all
17 | Cortex-Mx processor series vendors. It enables code re-use and code sharing across software projects
18 | and reduces time-to-market for new embedded applications.
19 |
20 | CMSIS is released under the terms of the end user license agreement ("CMSIS END USER LICENCE AGREEMENT.pdf").
21 | Any user of the software package is bound to the terms and conditions of the end user license agreement.
22 |
23 |
24 | You will find the following sub-directories:
25 |
26 | Documentation - Contains CMSIS documentation.
27 |
28 | DSP_Lib - MDK project files, Examples and source files etc.. to build the
29 | CMSIS DSP Software Library for Cortex-M0, Cortex-M3, Cortex-M4 processors.
30 |
31 | Include - CMSIS Core Support and CMSIS DSP Include Files.
32 |
33 | Lib - CMSIS DSP Binaries
34 | ---
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/decoder/DatamatrixDecoder.h:
--------------------------------------------------------------------------------
1 | #ifndef __DECODER_DM_H__
2 | #define __DECODER_DM_H__
3 |
4 | /*
5 | * Decoder.h
6 | * zxing
7 | *
8 | * Created by Luiz Silva on 09/02/2010.
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 |
30 | namespace zxing {
31 | namespace datamatrix {
32 |
33 | class Decoder {
34 | private:
35 | ReedSolomonDecoder rsDecoder_;
36 |
37 | void correctErrors(ArrayRef bytes, int numDataCodewords);
38 |
39 | public:
40 | Decoder();
41 |
42 | Ref decode(Ref bits);
43 | };
44 |
45 | }
46 | }
47 |
48 | #endif // __DECODER_DM_H__
49 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/multi/MultipleBarcodeReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __MULTIPLE_BARCODE_READER_H__
2 | #define __MULTIPLE_BARCODE_READER_H__
3 |
4 | /*
5 | * Copyright 2011 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 |
26 | namespace zxing {
27 | namespace multi {
28 |
29 | class MultipleBarcodeReader: public Counted {
30 | protected:
31 | MultipleBarcodeReader() {
32 | }
33 | public:
34 | virtual std::vector][ > decodeMultiple(Ref image);
35 | virtual std::vector][ > decodeMultiple(Ref image,
36 | DecodeHints hints) = 0;
37 | virtual ~MultipleBarcodeReader();
38 | };
39 |
40 | }
41 | }
42 |
43 | #endif // __MULTIPLE_BARCODE_READER_H__
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/FastHybridBinarizer.h:
--------------------------------------------------------------------------------
1 | #ifndef __FASTHYBRIDBINARIZER_H__
2 | #define __FASTHYBRIDBINARIZER_H__
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 |
10 | namespace zxing {
11 |
12 | class FastHybridBinarizer {
13 |
14 | private:
15 | const unsigned int width_;
16 | const unsigned int height_;
17 | uint8_t *workingRows;
18 | const unsigned int workingRowsSize;
19 | int blockRowsWritten;
20 | int blockRowsRead;
21 | unsigned int workingRowWriteOffset;
22 | unsigned int workingRowReadOffset;
23 | uint8_t *blackPoints;
24 | uint8_t *matrix;
25 |
26 | void calculateBlackPoint(uint8_t *block, int x, int y);
27 | void thresholdBlock(uint8_t *out, uint8_t *block, int stride,
28 | int threshold);
29 | void calculateThresholdForBlockRow(uint8_t *blockRow, int y);
30 |
31 | public:
32 | FastHybridBinarizer(unsigned int width, unsigned int height);
33 | ~FastHybridBinarizer();
34 |
35 | void reset(void);
36 | //void load(Ref source);
37 | void writeBlockRow(uint8_t *blockRow);
38 | uint8_t * getResults();
39 | Ref getBlackMatrix();
40 | bool compareBlackPoints(ArrayRef other);
41 | bool compareMatrix(Ref other);
42 |
43 | int getWidth();
44 | int getHeight();
45 | };
46 |
47 | }
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/EAN13Reader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __EAN_13_READER_H__
3 | #define __EAN_13_READER_H__
4 |
5 | /*
6 | * EAN13Reader.h
7 | * ZXing
8 | *
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 |
27 | namespace zxing {
28 | namespace oned {
29 |
30 | class EAN13Reader: public UPCEANReader {
31 | private:
32 | std::vector decodeMiddleCounters;
33 | static void determineFirstDigit(std::string& resultString,
34 | int lgPatternFound);
35 |
36 | public:
37 | EAN13Reader();
38 |
39 | int decodeMiddle(Ref row, Range const& startRange,
40 | std::string& resultString);
41 |
42 | BarcodeFormat getBarcodeFormat();
43 | };
44 |
45 | }
46 | }
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/detector/AlignmentPattern.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 |
3 | #ifndef __ALIGNMENT_PATTERN_H__
4 | #define __ALIGNMENT_PATTERN_H__
5 |
6 | /*
7 | * AlignmentPattern.h
8 | * zxing
9 | *
10 | * Copyright 2010 ZXing authors All rights reserved.
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the "License");
13 | * you may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * http://www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 | namespace qrcode {
30 |
31 | class AlignmentPattern: public ResultPoint {
32 | private:
33 | float estimatedModuleSize_;
34 |
35 | public:
36 | AlignmentPattern(float posX, float posY, float estimatedModuleSize);
37 | bool aboutEquals(float moduleSize, float i, float j) const;
38 | Ref combineEstimate(float i, float j,
39 | float newModuleSize) const;
40 | };
41 |
42 | }
43 | }
44 |
45 | #endif // __ALIGNMENT_PATTERN_H__
46 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Utilities/PC_Software/stm32_vcp/readme.txt:
--------------------------------------------------------------------------------
1 | /******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
2 | * File Name : readme.txt
3 | * Author : MCD Application Team
4 | * Version : V1.3.1
5 | * Date : 07/23/2010
6 | * Description : read me file for Virtual COM Port driver
7 | ********************************************************************************
8 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14 | *******************************************************************************/
15 |
16 | Last version
17 | ***************
18 |
19 | - V1.3.1 - 07/23/2010
20 |
21 |
22 | Supported OS
23 | ***************
24 |
25 | + Windows 98SE, 2000, XP, Vista, Seven (x86 & x64 Windows platforms)
26 |
27 |
28 | How to use
29 | ***************
30 |
31 | 1- Uninstall previous versions (Start-> Settings-> Control Panel-> Add or remove programs)
32 |
33 | 2- run setup.
34 |
35 |
36 |
37 | ******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE******
38 |
39 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/ImageReaderSource.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __IMAGE_READER_SOURCE_H_
3 | #define __IMAGE_READER_SOURCE_H_
4 | /*
5 | * Copyright 2010-2011 ZXing authors
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 |
23 | namespace zxing {
24 | class ImageReaderSource: public LuminanceSource {
25 | using LuminanceSource::getWidth;
26 | using LuminanceSource::getHeight;
27 |
28 | private:
29 | typedef LuminanceSource Super;
30 | const Ref matrix;
31 | public:
32 | ImageReaderSource(Ref matrix_, int width, int height);
33 |
34 | ArrayRef getRow(int y, ArrayRef row) const;
35 |
36 | // zxing::ArrayRef getRow(int y, zxing::ArrayRef row) const;
37 | ArrayRef getMatrix() const;
38 | };
39 | }
40 |
41 | #endif /* __IMAGE_READER_SOURCE_H_ */
42 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/decoder/DataMask.h:
--------------------------------------------------------------------------------
1 | #ifndef __DATA_MASK_H__
2 | #define __DATA_MASK_H__
3 |
4 | /*
5 | * DataMask.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 |
27 | #include
28 |
29 | namespace zxing {
30 | namespace qrcode {
31 |
32 | class DataMask: public Counted {
33 | private:
34 | static std::vector][ > DATA_MASKS;
35 |
36 | protected:
37 |
38 | public:
39 | static int buildDataMasks();
40 | DataMask();
41 | virtual ~DataMask();
42 | void unmaskBitMatrix(BitMatrix& matrix, std::size_t dimension);
43 | virtual bool isMasked(std::size_t x, std::size_t y) = 0;
44 | static DataMask& forReference(int reference);
45 | };
46 |
47 | }
48 | }
49 |
50 | #endif // __DATA_MASK_H__
51 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/aztec/AztecDetectorResult.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * AtztecDetecorResult.h
4 | * zxing
5 | *
6 | * Created by Lukas Stabe on 08/02/2012.
7 | * Copyright 2012 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | #ifndef ZXingWidget_AtztecDetecorResult_h
25 | #define ZXingWidget_AtztecDetecorResult_h
26 |
27 | namespace zxing {
28 | namespace aztec {
29 |
30 | class AztecDetectorResult: public DetectorResult {
31 | private:
32 | bool compact_;
33 | int nbDatablocks_, nbLayers_;
34 | public:
35 | AztecDetectorResult(Ref bits, ArrayRef][ > points,
36 | bool compact, int nbDatablocks, int nbLayers);
37 | bool isCompact();
38 | int getNBDatablocks();
39 | int getNBLayers();
40 | };
41 |
42 | }
43 | }
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/aztec/AztecReader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * AztecReader.h
4 | * zxing
5 | *
6 | * Created by Lukas Stabe on 08/02/2012.
7 | * Copyright 2012 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | #ifndef ZXingWidget_AztecReader_h
27 | #define ZXingWidget_AztecReader_h
28 |
29 | namespace zxing {
30 | namespace aztec {
31 |
32 | class AztecReader: public Reader {
33 | private:
34 | Decoder decoder_;
35 |
36 | protected:
37 | Decoder &getDecoder();
38 |
39 | public:
40 | AztecReader();
41 | virtual Ref decode(Ref image);
42 | virtual Ref decode(Ref image, DecodeHints hints);
43 | virtual ~AztecReader();
44 | };
45 |
46 | }
47 | }
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/detector/FinderPatternInfo.h:
--------------------------------------------------------------------------------
1 | #ifndef __FINDER_PATTERN_INFO_H__
2 | #define __FINDER_PATTERN_INFO_H__
3 |
4 | /*
5 | * FinderPatternInfo.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 | namespace qrcode {
30 |
31 | class FinderPatternInfo: public Counted {
32 | private:
33 | Ref bottomLeft_;
34 | Ref topLeft_;
35 | Ref topRight_;
36 |
37 | public:
38 | FinderPatternInfo(std::vector][ > patternCenters);
39 |
40 | Ref getBottomLeft();
41 | Ref getTopLeft();
42 | Ref getTopRight();
43 | };
44 | }
45 | }
46 |
47 | #endif // __FINDER_PATTERN_INFO_H__
48 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/inc/bmp.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * ]© COPYRIGHT 2012 Embest Tech. Co., Ltd.
4 | * @file bmp.h
5 | * @author CMP Team
6 | * @version V1.0.0
7 | * @date 28-December-2012
8 | * @brief Header for bmp.c module.
9 | ******************************************************************************
10 | * @attention
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, Embest SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
15 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
16 | * OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
17 | * CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | ******************************************************************************
19 | */
20 | #ifndef __BMP_H
21 | #define __BMP_H
22 | /* Includes ------------------------------------------------------------------*/
23 | #include "stm32f4xx.h"
24 |
25 | /* Exported macro ------------------------------------------------------------*/
26 | /* Exported functions ------------------------------------------------------- */
27 | int32_t Capture_Image_TO_Bmp(void);
28 | void init_picture_count(void);
29 |
30 | #endif /* #define __BMP_H */
31 | /******************* COPYRIGHT 2012 Embest Tech. Co., Ltd. *****END OF FILE****/
32 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/MultiFormatReader.h:
--------------------------------------------------------------------------------
1 | #ifndef __MULTI_FORMAT_READER_H__
2 | #define __MULTI_FORMAT_READER_H__
3 |
4 | /*
5 | * MultiFormatBarcodeReader.h
6 | * ZXing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 | class MultiFormatReader: public Reader {
30 | private:
31 | Ref decodeInternal(Ref image);
32 |
33 | std::vector[ > readers_;
34 | DecodeHints hints_;
35 |
36 | public:
37 | MultiFormatReader();
38 |
39 | Ref decode(Ref image);
40 | Ref decode(Ref image, DecodeHints hints);
41 | Ref decodeWithState(Ref image);
42 | void setHints(DecodeHints hints);
43 | ~MultiFormatReader();
44 | };
45 | }
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/DecoderResult.cpp:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | /*
3 | * DecoderResult.cpp
4 | * zxing
5 | *
6 | * Created by Christian Brunschen on 20/05/2008.
7 | * Copyright 2008-2011 ZXing authors All rights reserved.
8 | *
9 | * Licensed under the Apache License, Version 2.0 (the "License");
10 | * you may not use this file except in compliance with the License.
11 | * You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing, software
16 | * distributed under the License is distributed on an "AS IS" BASIS,
17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 | * See the License for the specific language governing permissions and
19 | * limitations under the License.
20 | */
21 |
22 | #include
23 |
24 | using namespace std;
25 | using namespace zxing;
26 |
27 | DecoderResult::DecoderResult(ArrayRef rawBytes, Ref text,
28 | ArrayRef >& byteSegments, string const& ecLevel) :
29 | rawBytes_(rawBytes), text_(text), byteSegments_(byteSegments), ecLevel_(
30 | ecLevel) {
31 | }
32 |
33 | DecoderResult::DecoderResult(ArrayRef rawBytes, Ref text) :
34 | rawBytes_(rawBytes), text_(text) {
35 | }
36 |
37 | ArrayRef DecoderResult::getRawBytes() {
38 | return rawBytes_;
39 | }
40 |
41 | Ref DecoderResult::getText() {
42 | return text_;
43 | }
44 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/Binarizer.h:
--------------------------------------------------------------------------------
1 | #ifndef BINARIZER_H_
2 | #define BINARIZER_H_
3 |
4 | /*
5 | * Binarizer.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 |
30 | class Binarizer: public Counted {
31 | private:
32 | Ref source_;
33 |
34 | public:
35 | Binarizer(Ref source);
36 | virtual ~Binarizer();
37 |
38 | virtual Ref getBlackRow(int y, Ref row) = 0;
39 | virtual Ref getBlackMatrix() = 0;
40 |
41 | Ref getLuminanceSource() const;
42 | virtual Ref createBinarizer(Ref source) = 0;
43 |
44 | int getWidth() const;
45 | int getHeight() const;
46 |
47 | };
48 |
49 | }
50 | #endif /* BINARIZER_H_ */
51 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/datamatrix/decoder/DatamatrixDataBlock.h:
--------------------------------------------------------------------------------
1 | #ifndef __DATA_BLOCK_DM_H__
2 | #define __DATA_BLOCK_DM_H__
3 |
4 | /*
5 | * DataBlock.h
6 | * zxing
7 | *
8 | * Created by Luiz Silva on 09/02/2010.
9 | * Copyright 2010 ZXing authors All rights reserved.
10 | *
11 | * Licensed under the Apache License, Version 2.0 (the "License");
12 | * you may not use this file except in compliance with the License.
13 | * You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
24 | #include
25 | #include
26 | #include
27 | #include
28 |
29 | namespace zxing {
30 | namespace datamatrix {
31 |
32 | class DataBlock: public Counted {
33 | private:
34 | int numDataCodewords_;
35 | ArrayRef codewords_;
36 |
37 | DataBlock(int numDataCodewords, ArrayRef codewords);
38 |
39 | public:
40 | static std::vector][ > getDataBlocks(
41 | ArrayRef rawCodewords, Version *version);
42 |
43 | int getNumDataCodewords();
44 | ArrayRef getCodewords();
45 | };
46 |
47 | }
48 | }
49 |
50 | #endif // __DATA_BLOCK_DM_H__
51 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/oned/Code128Reader.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef __CODE_128_READER_H__
3 | #define __CODE_128_READER_H__
4 | /*
5 | * Copyright 2010 ZXing authors All rights reserved.
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | namespace zxing {
25 | namespace oned {
26 |
27 | class Code128Reader: public OneDReader {
28 | private:
29 | static const int MAX_AVG_VARIANCE;
30 | static const int MAX_INDIVIDUAL_VARIANCE;
31 |
32 | static std::vector findStartPattern(Ref row);
33 | static int decodeCode(Ref row, std::vector& counters,
34 | int rowOffset);
35 |
36 | public:
37 | Ref decodeRow(int rowNumber, Ref row);
38 | Code128Reader();
39 | ~Code128Reader();
40 |
41 | BarcodeFormat getBarcodeFormat();
42 | };
43 |
44 | }
45 | }
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/qrcode/decoder/DataBlock.h:
--------------------------------------------------------------------------------
1 | #ifndef __DATA_BLOCK_H__
2 | #define __DATA_BLOCK_H__
3 |
4 | /*
5 | * DataBlock.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 |
29 | namespace zxing {
30 | namespace qrcode {
31 |
32 | class DataBlock: public Counted {
33 | private:
34 | int numDataCodewords_;
35 | ArrayRef codewords_;
36 |
37 | DataBlock(int numDataCodewords, ArrayRef codewords);
38 |
39 | public:
40 | static std::vector][ >
41 | getDataBlocks(ArrayRef rawCodewords, Version *version,
42 | ErrorCorrectionLevel &ecLevel);
43 |
44 | int getNumDataCodewords();
45 | ArrayRef getCodewords();
46 | };
47 |
48 | }
49 | }
50 |
51 | #endif // __DATA_BLOCK_H__
52 |
--------------------------------------------------------------------------------
/arm-barcode-scanner/Project/OV9655_Camera/src/zxing/common/DecoderResult.h:
--------------------------------------------------------------------------------
1 | #ifndef __DECODER_RESULT_H__
2 | #define __DECODER_RESULT_H__
3 |
4 | /*
5 | * DecoderResult.h
6 | * zxing
7 | *
8 | * Copyright 2010 ZXing authors All rights reserved.
9 | *
10 | * Licensed under the Apache License, Version 2.0 (the "License");
11 | * you may not use this file except in compliance with the License.
12 | * You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 |
28 | namespace zxing {
29 |
30 | class DecoderResult: public Counted {
31 | private:
32 | ArrayRef rawBytes_;
33 | Ref text_;
34 | ArrayRef > byteSegments_;
35 | std::string ecLevel_;
36 |
37 | public:
38 | DecoderResult(ArrayRef rawBytes, Ref text,
39 | ArrayRef >& byteSegments,
40 | std::string const& ecLevel);
41 |
42 | DecoderResult(ArrayRef]