Logo Search packages:      
Sourcecode: zbar version File versions  Download package

void zbar_decoder_new_scan ( zbar_decoder_t decoder  ) 

mark start of a new scan pass. clears any intra-symbol state and resets color to ZBAR_SPACE. any partially decoded symbol state is retained

Definition at line 110 of file decoder.c.

References zbar_decoder_new_scan().

Referenced by zbar::Decoder::new_scan(), zbar_decoder_new_scan(), and zbar_scanner_new_scan().

{
    /* soft reset decoder */
    memset(dcode->w, 0, sizeof(dcode->w));
    dcode->lock = 0;
    dcode->idx = 0;
#ifdef ENABLE_EAN
    ean_new_scan(&dcode->ean);
#endif
#ifdef ENABLE_I25
    i25_reset(&dcode->i25);
#endif
#ifdef ENABLE_CODE39
    code39_reset(&dcode->code39);
#endif
#ifdef ENABLE_CODE128
    code128_reset(&dcode->code128);
#endif
#ifdef ENABLE_PDF417
    pdf417_reset(&dcode->pdf417);
#endif
#ifdef ENABLE_QRCODE
    qr_finder_reset(&dcode->qrf);
#endif
}


Generated by  Doxygen 1.6.0   Back to index