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

Side by Side Diff: xfa/src/fxbarcode/common/BC_WhiteRectangleDetector.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_COMMON_BC_WHITERECTANGLEDETECTOR_H_ 7 #ifndef XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_
8 #define XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ 8 #define XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
(...skipping 20 matching lines...) Expand all
31 FX_FLOAT bY); 31 FX_FLOAT bY);
32 int32_t DistanceL2(FX_FLOAT aX, FX_FLOAT aY, FX_FLOAT bX, FX_FLOAT bY); 32 int32_t DistanceL2(FX_FLOAT aX, FX_FLOAT aY, FX_FLOAT bX, FX_FLOAT bY);
33 CFX_PtrArray* CenterEdges(CBC_ResultPoint* y, 33 CFX_PtrArray* CenterEdges(CBC_ResultPoint* y,
34 CBC_ResultPoint* z, 34 CBC_ResultPoint* z,
35 CBC_ResultPoint* x, 35 CBC_ResultPoint* x,
36 CBC_ResultPoint* t); 36 CBC_ResultPoint* t);
37 FX_BOOL ContainsBlackPoint(int32_t a, 37 FX_BOOL ContainsBlackPoint(int32_t a,
38 int32_t b, 38 int32_t b,
39 int32_t fixed, 39 int32_t fixed,
40 FX_BOOL horizontal); 40 FX_BOOL horizontal);
41 const static int32_t INIT_SIZE; 41
42 const static int32_t CORR; 42 static const int32_t INIT_SIZE = 30;
43 static const int32_t CORR = 1;
43 44
44 CBC_CommonBitMatrix* m_image; 45 CBC_CommonBitMatrix* m_image;
45 int32_t m_height; 46 int32_t m_height;
46 int32_t m_width; 47 int32_t m_width;
47 int32_t m_leftInit; 48 int32_t m_leftInit;
48 int32_t m_rightInit; 49 int32_t m_rightInit;
49 int32_t m_downInit; 50 int32_t m_downInit;
50 int32_t m_upInit; 51 int32_t m_upInit;
51 }; 52 };
52 53
53 #endif // XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ 54 #endif // XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_
OLDNEW
« no previous file with comments | « xfa/src/fwl/lightwidget/edit.cpp ('k') | xfa/src/fxbarcode/common/BC_WhiteRectangleDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698