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
dmtxscangrid.c File Reference

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

#include <assert.h>
#include <string.h>
#include "dmtx.h"
#include "dmtxstatic.h"

Go to the source code of this file.

Functions

static DmtxScanGrid initScanGrid (DmtxDecode *dec)
 初始化扫描网格
 
static int popGridLocation (DmtxScanGrid *grid, DmtxPixelLoc *locPtr)
 Return the next good location (which may be the current location), and advance grid progress one position beyond that.
 
static int getGridCoordinates (DmtxScanGrid *grid, DmtxPixelLoc *locPtr)
 Extract current grid position in pixel coordinates and return whether location is good, bad, or end.
 
static void setDerivedFields (DmtxScanGrid *grid)
 Update derived fields based on current state.
 

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.

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

Scan grid tracking

Definition in file dmtxscangrid.c.

Function Documentation

◆ getGridCoordinates()

static int getGridCoordinates ( DmtxScanGrid * grid,
DmtxPixelLoc * locPtr )
static

Extract current grid position in pixel coordinates and return whether location is good, bad, or end.

Returns
Pixel location

Definition at line 95 of file dmtxscangrid.c.

◆ initScanGrid()

static DmtxScanGrid initScanGrid ( DmtxDecode * dec)
static

初始化扫描网格

Definition at line 26 of file dmtxscangrid.c.

◆ popGridLocation()

static int popGridLocation ( DmtxScanGrid * grid,
DmtxPixelLoc * locPtr )
static

Return the next good location (which may be the current location), and advance grid progress one position beyond that.

If no good locations remain then return DmtxRangeEnd.

Definition at line 75 of file dmtxscangrid.c.

◆ setDerivedFields()

static void setDerivedFields ( DmtxScanGrid * grid)
static

Update derived fields based on current state.

Definition at line 167 of file dmtxscangrid.c.