Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BC_SymbolInfo.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_
8#define FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_
9
10#include <stddef.h>
11#include <stdint.h>
12
13#include "core/fxcrt/unowned_ptr.h"
14
16 public:
17 struct Data {
25 };
26
27 virtual ~CBC_SymbolInfo();
28
29 static void Initialize();
30 static void Finalize();
31 static const CBC_SymbolInfo* Lookup(size_t data_codewords,
32 bool allow_rectangular);
33
34 int32_t GetSymbolDataWidth() const;
35 int32_t GetSymbolDataHeight() const;
36 int32_t GetSymbolWidth() const;
37 int32_t GetSymbolHeight() const;
38 virtual size_t GetInterleavedBlockCount() const;
41
42 size_t data_capacity() const { return data_->data_capacity; }
43 size_t error_codewords() const { return data_->error_codewords; }
44 int32_t matrix_width() const { return data_->matrix_width; }
45 int32_t matrix_height() const { return data_->matrix_height; }
46
47 protected:
48 explicit CBC_SymbolInfo(const Data* data);
49
50 private:
51 int32_t GetHorizontalDataRegions() const;
52 int32_t GetVerticalDataRegions() const;
53 bool is_rectangular() const {
54 return data_->matrix_width != data_->matrix_height;
55 }
56
57 UnownedPtr<const Data> const data_;
58};
59
60#endif // FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_
void BC_Library_Init()
void BC_Library_Destroy()
static void Finalize()
static void Initialize()
int32_t GetSymbolDataHeight() const
int32_t GetSymbolWidth() const
virtual ~CBC_SymbolInfo()
int32_t GetSymbolHeight() const
size_t data_capacity() const
size_t GetDataLengthForInterleavedBlock() const
int32_t matrix_height() const
size_t GetErrorLengthForInterleavedBlock() const
static void Finalize()
static const CBC_SymbolInfo * Lookup(size_t data_codewords, bool allow_rectangular)
static void Initialize()
int32_t GetSymbolDataWidth() const
virtual size_t GetInterleavedBlockCount() const
int32_t matrix_width() const
size_t error_codewords() const
CBC_SymbolInfo(const Data *data)