BSS Aztec Reader SDK (ver 1.2)
Description
SDK BSS Aztec Reader Win32 is a robust solution for decoding Aztec barcodes from the raster halftone images with a value of BPP (BitsPerPixel) equal 8. This SDK is Windows based. The document includes the description of software interface, the description of a package contents and instructions on how to build a sample project and examples of functions’ calls.
Structure of delivery
SDK BSS Aztec Reader Win32 is an archive which includes several components:
Components list
Description of Subdirectories
Activation
Trial version of the SDK can be used within 30 days on a standalone PC. During the first use (after 30 days trial period) of dynamic library from the delivery (for example when use a sample application) there will be a message with request to activate the copy of SDK. You will have to enter a License Key in the respective field. In order to receive it you will need to purchase the respective Commercial License at www.BarcodeSoftwareSolutions.com and send a System-ID and the version of used SDK to support@barcodesoftwaresolutions.com. Within 24 hours we will send the Commercial License Key.
Sample project
In order to compile a sample project you need to open .sln file which can be found in the “make” subdirectory. Select needed configuration to build (Release, Debug). Binary files will be created in the “bin” directory.
Projects’ configurations
SDK BSS Aztec Reader Win32 includes sample projects for Microsoft Visual Studio 8.0 IDE. There are two configurations in the delivery:
Program interface
The structure of SDK BSS Aztec Reader Win32 program interface is focused to provide developer with the easiest way to use SDK. There are only two plane C functions exported from dynamic library.
User data types

Structure bssAztecInfo contains information regarding read symbols of barcode.
typedef struct BSS_AztecInfo_Struct
{
    int nCenterPosX;
    int nCenterPosY;
    int nDataLength;
    char* pchData;
} bssAztecInfo;
Functions

Function BSS_ReadAztec() search and decode a Aztec barcode or barcodes on the image and returns an array of structures with the decoded data.
int BSS_ReadAztec
(
    const unsigned char* pImageData,
    int nImageWidth,
    int nImageHeight,
    int nImageRowDist,
    int nTryReadMultiple,
    bssAztecInfo** ppAztecInfo,
    int* pnAztecInfoCount
);
Return codes
Function BSS_ReleaseAztecResults() releases resources which were allocated during the barcode reading.
int BSS_ReleaseAztecResults
(
    bssAztecInfo* pAztecInfo,
    int nAztecInfoCount
);
Return codes
Example
// Declare variables to store results
bssAztecInfo* pInfo;
int nInfoCnt;

// Call a barcode reading function
int nResult = BSS_ReadAztec( …, &pInfo, &nInfoCnt );

// Check the return code, process (output) the results of reading
if( nResult == BSS_AZTEC_OK )
    for( int n = 0; n < nInfoCnt; n++ )
        cout << n << " : " << pInfo[ n ].pchData << endl;

// Releasing resources
BSS_ReleaseAztecResults( pInfo, nInfoCnt );