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

zbar_scanner_t* zbar_scanner_create ( zbar_decoder_t decoder  ) 

constructor. if decoder is non-NULL it will be attached to scanner and called automatically at each new edge current color is initialized to ZBAR_SPACE (so an initial BAR->SPACE transition may be discarded)

Definition at line 78 of file scanner.c.

References zbar_scanner_create(), and zbar_scanner_reset().

Referenced by zbar::Scanner::Scanner(), zbar_image_scanner_create(), and zbar_scanner_create().

{
    zbar_scanner_t *scn = malloc(sizeof(zbar_scanner_t));
    scn->decoder = dcode;
    scn->y1_min_thresh = ZBAR_SCANNER_THRESH_MIN;
    zbar_scanner_reset(scn);
    return(scn);
}


Generated by  Doxygen 1.6.0   Back to index