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

zebra_symbol_type_t zebra_scanner_new_scan ( zebra_scanner_t scanner  ) 

mark start of a new scan pass. resets color to ZEBRA_SPACE. also updates an associated decoder.

Returns:
any decode results flushed from the pipeline
Note:
when not using callback handlers, the return value should be checked the same as zebra_scan_y()

Definition at line 155 of file scanner.c.

References zebra_decoder_new_scan(), and zebra_scanner_new_scan().

Referenced by zebra::Scanner::new_scan(), zebra_scan_image(), and zebra_scanner_new_scan().

{
    /* finalize outstanding edge */
    zebra_symbol_type_t edge = process_edge(scn, 0);

    /* reset color to SPACE
     * (actually just resets everything)
     */
    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_new_scan(scn->decoder);
    return(edge);
}


Generated by  Doxygen 1.6.0   Back to index