1ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann// Copyright 2014 PDFium Authors. All rights reserved.
2ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann// Use of this source code is governed by a BSD-style license that can be
3ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann// found in the LICENSE file.
4ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann
5ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann// Original code is licensed as follows:
7ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann/*
8ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * Copyright 2007 ZXing authors
9ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann *
10ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * Licensed under the Apache License, Version 2.0 (the "License");
11ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * you may not use this file except in compliance with the License.
12ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * You may obtain a copy of the License at
13ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann *
14ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann *      http://www.apache.org/licenses/LICENSE-2.0
15ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann *
16ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * Unless required by applicable law or agreed to in writing, software
17ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * distributed under the License is distributed on an "AS IS" BASIS,
18ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * See the License for the specific language governing permissions and
20ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann * limitations under the License.
21ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann */
22ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann
23ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann#include "xfa/src/fxbarcode/barcode.h"
24ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann#include "xfa/src/fxbarcode/BC_ResultPoint.h"
25ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann#include "BC_QRFinderPattern.h"
26ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann#include "BC_FinderPatternInfo.h"
27ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. MoltmannCBC_QRFinderPatternInfo::CBC_QRFinderPatternInfo(CFX_PtrArray* patternCenters) {
28ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  m_bottomLeft = (CBC_QRFinderPattern*)(*patternCenters)[0];
29ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  m_topLeft = (CBC_QRFinderPattern*)(*patternCenters)[1];
30ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  m_topRight = (CBC_QRFinderPattern*)(*patternCenters)[2];
31ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann}
32ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. MoltmannCBC_QRFinderPatternInfo::~CBC_QRFinderPatternInfo() {}
33ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. MoltmannCBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetBottomLeft() {
34ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  return m_bottomLeft;
35ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann}
36ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. MoltmannCBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopLeft() {
37ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  return m_topLeft;
38ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann}
39ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. MoltmannCBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopRight() {
40ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann  return m_topRight;
41ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4Philip P. Moltmann}
42