Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: xfa/src/fxbarcode/oned/BC_OneDReader.h

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_
8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_
9 9
10 #include "xfa/src/fxbarcode/BC_Reader.h" 10 #include "xfa/src/fxbarcode/BC_Reader.h"
(...skipping 13 matching lines...) Expand all
24 CBC_CommonBitArray* row, 24 CBC_CommonBitArray* row,
25 int32_t hints, 25 int32_t hints,
26 int32_t& e) { 26 int32_t& e) {
27 return ""; 27 return "";
28 } 28 }
29 29
30 private: 30 private:
31 CFX_ByteString DeDecode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); 31 CFX_ByteString DeDecode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e);
32 32
33 protected: 33 protected:
34 const static int32_t INTEGER_MATH_SHIFT; 34 static const int32_t INTEGER_MATH_SHIFT = 8;
35 const static int32_t PATTERN_MATCH_RESULT_SCALE_FACTOR; 35 static const int32_t PATTERN_MATCH_RESULT_SCALE_FACTOR = 1 << 8;
36
36 void RecordPattern(CBC_CommonBitArray* row, 37 void RecordPattern(CBC_CommonBitArray* row,
37 int32_t start, 38 int32_t start,
38 CFX_Int32Array* counters, 39 CFX_Int32Array* counters,
39 int32_t& e); 40 int32_t& e);
40 void RecordPatternInReverse(CBC_CommonBitArray* row, 41 void RecordPatternInReverse(CBC_CommonBitArray* row,
41 int32_t start, 42 int32_t start,
42 CFX_Int32Array* counters, 43 CFX_Int32Array* counters,
43 int32_t& e); 44 int32_t& e);
44 int32_t PatternMatchVariance(CFX_Int32Array* counters, 45 int32_t PatternMatchVariance(CFX_Int32Array* counters,
45 const int32_t* pattern, 46 const int32_t* pattern,
46 int32_t maxIndividualVariance); 47 int32_t maxIndividualVariance);
47 }; 48 };
48 49
49 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ 50 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/datamatrix/BC_DataMatrixDetector.h ('k') | xfa/src/fxbarcode/oned/BC_OneDReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698