mw::qrd::DecodeData Structure

Syntax

struct DecodeData
{
    Rect qrPosition;
    s32 version;
    s32 size;
    s32 total;
    s32 index;
    s32 parity;
    DataType type;
    u8 data[DATA_MAX + 1];
} DecodeData;

Description

Structure that stores the QR Code decoding result.
Note that even if data contains string data, it will not be null-terminated. The value in size is the amount of valid data in data. If the QR Code to be decoded is a divided QR Code, the values set in total and index will reflect this. If it is not a divided QR Code, the value of total is set to 0. If the data has been divided, parity stores the parity information for the total original data. When concatenating QR Code patterns on the application side, use total and index to confirm each QR Code pattern's place in the concatenation order. Also check that each QR Code pattern's parity value are equal to one another to confirm that the divided QR Code patterns all belong to the correct set.

Member Variables

qrPosition The position information for the top, bottom, right, and left coordinates of the circumscribed rectangle of the QR Code. See Rect.
version The version number of the QR Code (versions 1-40).
size The valid data size.
total The number of divisions (0 to 15) if a divided QR Code. If the number of divisions is m, the value is specified as (m-1). The maximum value of m is 16.
index The index for a divided QR Code (0 to 15).
parity The parity for a divided QR Code.
type The data type of the QR Code. See DataType.
data The data contained in the QR Code.

Revision History

2010/06/24
Corrected the text.
2010/05/31
Initial version.

CONFIDENTIAL