low-level linear intensity sample stream scanner interface. More...
Public Member Functions | |
Scanner (Decoder &decoder) | |
constructor. More... | |
Scanner (Decoder *decoder=NULL) | |
constructor. More... | |
~Scanner () | |
zbar_symbol_type_t | flush () |
flush scanner pipeline. More... | |
const zbar_scanner_t * | get_c_scanner () const |
retrieve C scanner More... | |
zbar_color_t | get_color () const |
retrieve last scanned color. More... | |
zbar_symbol_type_t | get_type () const |
retrieve last scan result. More... | |
unsigned | get_width () const |
retrieve last scanned width. More... | |
zbar_symbol_type_t | new_scan () |
mark start of a new scan pass. More... | |
operator zbar_scanner_t * () const | |
cast to C scanner More... | |
Scanner & | operator<< (int y) |
process next sample intensity value. More... | |
Scanner & | operator<< (unsigned char *rgb) |
process next sample from RGB (or BGR) triple. More... | |
void | reset () |
clear all scanner state. More... | |
zbar_symbol_type_t | scan_rgb24 (unsigned char *rgb) |
process next sample from RGB (or BGR) triple. More... | |
zbar_symbol_type_t | scan_y (int y) |
process next sample intensity value. More... | |
Private Attributes | |
zbar_scanner_t * | _scanner |
zbar_symbol_type_t | _type |
low-level linear intensity sample stream scanner interface.
identifies "bar" edges and measures width between them. optionally passes to bar width Decoder
|
inline |
constructor.
decoder | reference to a Decoder instance which will be passed scan results automatically |
References zbar::Decoder::_decoder, _scanner, and zbar::zbar_scanner_create().
|
inline |
constructor.
decoder | pointer to a Decoder instance which will be passed scan results automatically |
References _scanner, decoder, and zbar::zbar_scanner_create().
|
inline |
|
inline |
flush scanner pipeline.
References _scanner, _type, and zbar::zbar_scanner_flush().
Referenced by scan_image().
|
inline |
retrieve C scanner
References _scanner.
|
inline |
retrieve last scanned color.
References _scanner, and zbar::zbar_scanner_get_color().
Referenced by scan_image().
|
inline |
retrieve last scan result.
References _type.
|
inline |
retrieve last scanned width.
References _scanner, and zbar::zbar_scanner_get_width().
Referenced by scan_image().
|
inline |
mark start of a new scan pass.
References _scanner, _type, and zbar::zbar_scanner_new_scan().
|
inline |
cast to C scanner
References _scanner.
|
inline |
process next sample intensity value.
see zbar_scan_y()
References _scanner, _type, and zbar::zbar_scan_y().
|
inline |
process next sample from RGB (or BGR) triple.
References _scanner, _type, and zbar::zbar_scan_rgb24().
|
inline |
clear all scanner state.
References _scanner, and zbar::zbar_scanner_reset().
Referenced by scan_image().
|
inline |
process next sample from RGB (or BGR) triple.
References _scanner, _type, and zbar::zbar_scan_rgb24().
|
inline |
process next sample intensity value.
see zbar_scan_y()
References _scanner, _type, and zbar::zbar_scan_y().
Referenced by scan_image().
|
private |
Referenced by flush(), get_c_scanner(), get_color(), get_width(), new_scan(), operator zbar_scanner_t *(), operator<<(), reset(), scan_rgb24(), scan_y(), Scanner(), and ~Scanner().
|
private |
Referenced by flush(), get_type(), new_scan(), operator<<(), scan_rgb24(), and scan_y().