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

void zbar_decoder_reset ( zbar_decoder_t decoder  ) 

clear all decoder state. any partial symbols are flushed

Definition at line 87 of file decoder.c.

References zbar_decoder_reset().

Referenced by zbar::Decoder::reset(), zbar_decoder_create(), zbar_decoder_reset(), and zbar_scanner_reset().

{
    memset(dcode, 0, (long)&dcode->buf_alloc - (long)dcode);
#ifdef ENABLE_EAN
    ean_reset(&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