#include "fxbarcode/datamatrix/BC_DefaultPlacement.h"
#include <stdint.h>
#include <utility>
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/fx_2d_size.h"
#include "fxbarcode/datamatrix/BC_Encoder.h"
namespace {
size_t GetIndex(size_t col, size_t row, size_t num_cols) { … }
}
CBC_DefaultPlacement::CBC_DefaultPlacement(WideString codewords,
int32_t numcols,
int32_t numrows)
: … { … }
CBC_DefaultPlacement::~CBC_DefaultPlacement() = default;
bool CBC_DefaultPlacement::GetBit(int32_t col, int32_t row) const { … }
void CBC_DefaultPlacement::SetBit(int32_t col, int32_t row, bool bit) { … }
bool CBC_DefaultPlacement::HasBit(int32_t col, int32_t row) const { … }
void CBC_DefaultPlacement::Init() { … }
void CBC_DefaultPlacement::SetModule(int32_t row,
int32_t col,
int32_t pos,
int32_t bit) { … }
void CBC_DefaultPlacement::SetUtah(int32_t row, int32_t col, int32_t pos) { … }
void CBC_DefaultPlacement::SetCorner1(int32_t pos) { … }
void CBC_DefaultPlacement::SetCorner2(int32_t pos) { … }
void CBC_DefaultPlacement::SetCorner3(int32_t pos) { … }
void CBC_DefaultPlacement::SetCorner4(int32_t pos) { … }