summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
blob: afb200a4eac6053fed308044d1411c6ea77561bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
#define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_

#include "core/fxcrt/include/fx_basic.h"
#include "xfa/fxbarcode/BC_ResultPoint.h"

class CBC_CommonBitMatrix;

class CBC_PDF417DetectorResult final {
 public:
  // Takes ownership of |points|.
  CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits,
                           CBC_ResultPointArrayArray* points);
  ~CBC_PDF417DetectorResult();

  CBC_CommonBitMatrix* getBits() const;
  CBC_ResultPointArrayArray* getPoints() const;

 private:
  CBC_CommonBitMatrix* m_bits;
  std::unique_ptr<CBC_ResultPointArrayArray> m_points;
};

#endif  // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_