jabcode
 All Classes Files Functions Variables Enumerations Macros
encoder.h File Reference

Encoder header. More...

Go to the source code of this file.

Classes

struct  jab_code
 Code parameters. More...
 

Macros

#define FP0_CORE_COLOR   1
 Finder pattern core color index in default palette.
 
#define FP1_CORE_COLOR   2
 
#define FP2_CORE_COLOR   5
 
#define FP3_CORE_COLOR   6
 
#define AP0_CORE_COLOR   0
 Alignment pattern core color index in default palette.
 
#define AP1_CORE_COLOR   0
 
#define AP2_CORE_COLOR   0
 
#define AP3_CORE_COLOR   0
 
#define APX_CORE_COLOR   7
 
#define FP0   0
 Finder pattern types.
 
#define FP1   1
 
#define FP2   2
 
#define FP3   3
 
#define AP0   0
 Alignment pattern types.
 
#define AP1   1
 
#define AP2   2
 
#define AP3   3
 
#define APX   4
 

Functions

void interleaveData (jab_data *data)
 In-place interleaving. More...
 
jab_int32 maskCode (jab_encode *enc, jab_code *cp)
 Mask modules. More...
 
void maskSymbols (jab_encode *enc, jab_int32 mask_type, jab_int32 *masked, jab_code *cp)
 Mask the data modules in symbols. More...
 
void getNextMetadataModuleInMaster (jab_int32 matrix_height, jab_int32 matrix_width, jab_int32 next_module_count, jab_int32 *x, jab_int32 *y)
 Get the coordinate of the next metadata module in master symbol. More...
 

Detailed Description

Encoder header.

libjabcode - JABCode Encoding/Decoding Library

Copyright 2016 by Fraunhofer SIT. All rights reserved. See LICENSE file for full terms of use and distribution.

Contact: Huajian Liu liu@s.nosp@m.it.f.nosp@m.raunh.nosp@m.ofer.nosp@m..de Waldemar Berchtold walde.nosp@m.mar..nosp@m.berch.nosp@m.told.nosp@m.@sit..nosp@m.frau.nosp@m.nhofe.nosp@m.r.de

Function Documentation

void getNextMetadataModuleInMaster ( jab_int32  matrix_height,
jab_int32  matrix_width,
jab_int32  next_module_count,
jab_int32 *  x,
jab_int32 *  y 
)

Get the coordinate of the next metadata module in master symbol.

Parameters
matrix_heightthe height of the matrix
matrix_widththe width of the matrix
next_module_countthe index number of the next module
xthe x coordinate of the current and the next module
ythe y coordinate of the current and the next module
void interleaveData ( jab_data data)

In-place interleaving.

Parameters
datathe input data to be interleaved
jab_int32 maskCode ( jab_encode enc,
jab_code cp 
)

Mask modules.

Parameters
encthe encode parameters
cpthe code parameters
Returns
the mask pattern reference | -1 if fails
void maskSymbols ( jab_encode enc,
jab_int32  mask_type,
jab_int32 *  masked,
jab_code cp 
)

Mask the data modules in symbols.

Parameters
encthe encode parameters
mask_typethe mask pattern reference
maskedthe masked symbol matrix
cpthe code parameters