qrencode  4.1.1
About: libqrencode is a fast and compact library and command-line utility for encoding data in a QR Code symbol.
  Fossies Dox: qrencode-4.1.1.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

qrinput.h File Reference
#include "qrencode.h"
#include "bitstream.h"
Include dependency graph for qrinput.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _QRinput_List
 
struct  _QRinput
 Input Data. More...
 
struct  _QRinput_InputList
 
struct  _QRinput_Struct
 

Macros

#define QRinput_lookAnTable(__c__)    ((__c__ & 0x80)?-1:QRinput_anTable[(int)__c__])
 Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19). More...
 
#define MODE_INDICATOR_SIZE   4
 Length of a standard mode indicator in bits. More...
 
#define STRUCTURE_HEADER_SIZE   20
 Length of a segment of structured-append header. More...
 
#define MAX_STRUCTURED_SYMBOLS   16
 Maximum number of symbols in a set of structured-appended symbols. More...
 

Typedefs

typedef struct _QRinput_List QRinput_List
 Entry of input data. More...
 
typedef struct _QRinput_InputList QRinput_InputList
 Structured append input data. More...
 

Functions

int QRinput_isSplittableMode (QRencodeMode mode)
 Utilities. More...
 
unsigned char * QRinput_getByteStream (QRinput *input)
 Pack all bit streams padding bits into a byte array. More...
 
int QRinput_estimateBitsModeNum (int size)
 Estimate the length of the encoded bit stream of numeric data. More...
 
int QRinput_estimateBitsModeAn (int size)
 Estimate the length of the encoded bit stream of alphabet-numeric data. More...
 
int QRinput_estimateBitsMode8 (int size)
 8 bit data More...
 
int QRinput_estimateBitsModeKanji (int size)
 Kanji data. More...
 
QRinputQRinput_dup (QRinput *input)
 

Variables

const signed char QRinput_anTable [128]
 Alphabet-numeric data. More...
 

Macro Definition Documentation

◆ MAX_STRUCTURED_SYMBOLS

#define MAX_STRUCTURED_SYMBOLS   16

Maximum number of symbols in a set of structured-appended symbols.

Definition at line 112 of file qrinput.h.

◆ MODE_INDICATOR_SIZE

#define MODE_INDICATOR_SIZE   4

Length of a standard mode indicator in bits.

Definition at line 102 of file qrinput.h.

◆ QRinput_lookAnTable

#define QRinput_lookAnTable (   __c__)     ((__c__ & 0x80)?-1:QRinput_anTable[(int)__c__])

Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19).

Parameters
<strong>c</strong>character
Returns
value

Definition at line 95 of file qrinput.h.

◆ STRUCTURE_HEADER_SIZE

#define STRUCTURE_HEADER_SIZE   20

Length of a segment of structured-append header.

Definition at line 107 of file qrinput.h.

Typedef Documentation

◆ QRinput_InputList

Structured append input data.

Definition at line 59 of file qrinput.h.

◆ QRinput_List

typedef struct _QRinput_List QRinput_List

Entry of input data.

Definition at line 33 of file qrinput.h.

Function Documentation

◆ QRinput_dup()

◆ QRinput_estimateBitsMode8()

int QRinput_estimateBitsMode8 ( int  size)

8 bit data

Estimate the length of the encoded bit stream of 8 bit data.

Parameters
size
Returns
number of bits

Definition at line 566 of file qrinput.c.

References size.

Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().

◆ QRinput_estimateBitsModeAn()

int QRinput_estimateBitsModeAn ( int  size)

Estimate the length of the encoded bit stream of alphabet-numeric data.

Parameters
size
Returns
number of bits

Definition at line 493 of file qrinput.c.

References size.

Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().

◆ QRinput_estimateBitsModeKanji()

int QRinput_estimateBitsModeKanji ( int  size)

Kanji data.

Estimate the length of the encoded bit stream of kanji data.

Parameters
size
Returns
number of bits

Definition at line 616 of file qrinput.c.

References size.

Referenced by QRinput_estimateBitStreamSizeOfEntry().

◆ QRinput_estimateBitsModeNum()

int QRinput_estimateBitsModeNum ( int  size)

Estimate the length of the encoded bit stream of numeric data.

Parameters
size
Returns
number of bits

Definition at line 381 of file qrinput.c.

References size.

Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().

◆ QRinput_getByteStream()

unsigned char * QRinput_getByteStream ( QRinput input)

Pack all bit streams padding bits into a byte array.

Parameters
inputinput data.
Returns
padded merged byte stream

Definition at line 1326 of file qrinput.c.

References BitStream_free(), BitStream_new(), BitStream_toByte(), and QRinput_getBitStream().

Referenced by MQRraw_new(), and QRraw_new().

◆ QRinput_isSplittableMode()

int QRinput_isSplittableMode ( QRencodeMode  mode)

Utilities.

Definition at line 39 of file qrinput.c.

References QR_MODE_KANJI, and QR_MODE_NUM.

Referenced by QRspec_lengthIndicator(), and QRspec_maximumWords().

Variable Documentation

◆ QRinput_anTable

const signed char QRinput_anTable[128]
extern

Alphabet-numeric data.

Definition at line 459 of file qrinput.c.