libdmtx 0.7.8.7
libdmtx is a software library that enables programs to read and write Data Matrix barcodes of the modern ECC200 variety.
Loading...
Searching...
No Matches
dmtxsymbol.c File Reference

libdmtx - Data Matrix Encoding/Decoding Library Copyright 2008, 2009 Mike Laughton. More...

#include "dmtx.h"

Go to the source code of this file.

Functions

int getSizeIdxFromSymbolDimension (int rows, int cols)
 Retrieve symbol index from rows and columns.
 
int dmtxGetSymbolAttribute (int attribute, int sizeIdx)
 根据规格索引返回二维码规格各个参数
 
int dmtxGetBlockDataSize (int sizeIdx, int blockIdx)
 Retrieve data size for a specific symbol size and block number.
 
static int findSymbolSize (int dataWords, int sizeIdxRequest)
 Determine symbol size based on data size and requested properties.
 

Detailed Description

libdmtx - Data Matrix Encoding/Decoding Library Copyright 2008, 2009 Mike Laughton.

All rights reserved. Copyright 2012-2016 Vadim A. Misbakh-Soloviov. All rights reserved. Copyright 2016 Tim Zaman. All rights reserved.

See LICENSE file in the main project directory for full terms of use and distribution.

Contact: Vadim A. Misbakh-Soloviov dmtx@.nosp@m.mva..nosp@m.name Mike Laughton mike@.nosp@m.drag.nosp@m.onfly.nosp@m.logi.nosp@m.c.com

Data Matrix symbol attributes

Definition in file dmtxsymbol.c.

Function Documentation

◆ dmtxGetBlockDataSize()

int dmtxGetBlockDataSize ( int sizeIdx,
int blockIdx )
extern

Retrieve data size for a specific symbol size and block number.

Parameters
sizeIdx
blockIdx
Returns
Attribute value

Definition at line 118 of file dmtxsymbol.c.

◆ dmtxGetSymbolAttribute()

int dmtxGetSymbolAttribute ( int attribute,
int sizeIdx )
extern

根据规格索引返回二维码规格各个参数

Parameters
[in]attribute属性 DmtxSymAttribute
[in]sizeIdx规格索引
Returns
属性值

Definition at line 45 of file dmtxsymbol.c.

◆ findSymbolSize()

static int findSymbolSize ( int dataWords,
int sizeIdxRequest )
static

Determine symbol size based on data size and requested properties.

Parameters
dataWords
sizeIdxRequest
Returns
Symbol size index (or DmtxUndefined if none)

Definition at line 142 of file dmtxsymbol.c.

◆ getSizeIdxFromSymbolDimension()

int getSizeIdxFromSymbolDimension ( int rows,
int cols )
extern

Retrieve symbol index from rows and columns.

Parameters
rows
cols
Returns
sizeIdx value

Definition at line 26 of file dmtxsymbol.c.