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_DefaultPlacement.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_DEFAULTPLACEMENT_H_
8#define FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/data_vector.h"
13#include "core/fxcrt/widestring.h"
14
15class CBC_DefaultPlacement final {
16 public:
17 CBC_DefaultPlacement(WideString codewords, int32_t numcols, int32_t numrows);
19
20 bool GetBit(int32_t col, int32_t row) const;
21
22 private:
23 void Init();
24 void SetModule(int32_t row, int32_t col, int32_t pos, int32_t bit);
25 void SetUtah(int32_t row, int32_t col, int32_t pos);
26 void SetCorner1(int32_t pos);
27 void SetCorner2(int32_t pos);
28 void SetCorner3(int32_t pos);
29 void SetCorner4(int32_t pos);
30
31 void SetBit(int32_t col, int32_t row, bool bit);
32 bool HasBit(int32_t col, int32_t row) const;
33
34 const WideString m_codewords;
35 const int32_t m_numrows;
36 const int32_t m_numcols;
37 DataVector<uint8_t> m_bits;
38};
39
40#endif // FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_
bool SetErrorCorrectionLevel(int32_t level) override
~CBC_DataMatrixWriter() override
DataVector< uint8_t > Encode(const WideString &contents, int32_t *pOutWidth, int32_t *pOutHeight)
bool GetBit(int32_t col, int32_t row) const
CBC_DefaultPlacement(WideString codewords, int32_t numcols, int32_t numrows)
static WideString EncodeECC200(const WideString &codewords, const CBC_SymbolInfo *symbolInfo)
static WideString EncodeHighLevel(const WideString &msg)
int32_t GetSymbolDataHeight() const
int32_t GetSymbolWidth() const
int32_t GetSymbolHeight() const
int32_t matrix_height() const
int32_t GetSymbolDataWidth() const
int32_t matrix_width() const
void set_error_correction_level(int32_t level)
CBC_TwoDimWriter(bool bFixedSize)
bool IsEmpty() const
Definition widestring.h:118