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

void zebra_decoder_new_scan ( zebra_decoder_t decoder  ) 

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

Definition at line 95 of file decoder.c.

References zebra_decoder_new_scan().

Referenced by zebra::Decoder::new_scan(), zebra_decoder_new_scan(), and zebra_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
}


Generated by  Doxygen 1.6.0   Back to index