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

zebra_symbol_type_t zebra_scanner_reset ( zebra_scanner_t scanner  ) 

clear all scanner state. also resets an associated decoder

Definition at line 91 of file scanner.c.

References zebra_decoder_reset(), ZEBRA_NONE, and zebra_scanner_reset().

Referenced by zebra::Scanner::reset(), zebra_scanner_create(), and zebra_scanner_reset().

{
    memset(&scn->x, 0, sizeof(zebra_scanner_t) + (void*)scn - (void*)&scn->x);
    scn->y1_thresh = scn->y1_min_thresh;
    if(scn->decoder)
        zebra_decoder_reset(scn->decoder);
    return(ZEBRA_NONE);
}


Generated by  Doxygen 1.6.0   Back to index