ZBar Bar Code Reader Library  version 0.10
zbar::Scanner Class Reference

low-level linear intensity sample stream scanner interface. More...

Collaboration diagram for zbar::Scanner:

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_tget_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...
 
Scanneroperator<< (int y)
 process next sample intensity value. More...
 
Scanneroperator<< (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
 

Detailed Description

low-level linear intensity sample stream scanner interface.

identifies "bar" edges and measures width between them. optionally passes to bar width Decoder

Constructor & Destructor Documentation

zbar::Scanner::Scanner ( Decoder decoder)
inline

constructor.

Parameters
decoderreference to a Decoder instance which will be passed scan results automatically

References zbar::Decoder::_decoder, _scanner, and zbar::zbar_scanner_create().

Here is the call graph for this function:

zbar::Scanner::Scanner ( Decoder decoder = NULL)
inline

constructor.

Parameters
decoderpointer to a Decoder instance which will be passed scan results automatically

References _scanner, decoder, and zbar::zbar_scanner_create().

Here is the call graph for this function:

zbar::Scanner::~Scanner ( )
inline

References _scanner, and zbar::zbar_scanner_destroy().

Here is the call graph for this function:

Member Function Documentation

zbar_symbol_type_t zbar::Scanner::flush ( )
inline

flush scanner pipeline.

see zbar_scanner_flush()

References _scanner, _type, and zbar::zbar_scanner_flush().

Referenced by scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

const zbar_scanner_t* zbar::Scanner::get_c_scanner ( ) const
inline

retrieve C scanner

References _scanner.

zbar_color_t zbar::Scanner::get_color ( ) const
inline

retrieve last scanned color.

see zbar_scanner_get_color()

References _scanner, and zbar::zbar_scanner_get_color().

Referenced by scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_symbol_type_t zbar::Scanner::get_type ( ) const
inline

retrieve last scan result.

References _type.

unsigned zbar::Scanner::get_width ( ) const
inline

retrieve last scanned width.

see zbar_scanner_get_width()

References _scanner, and zbar::zbar_scanner_get_width().

Referenced by scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_symbol_type_t zbar::Scanner::new_scan ( )
inline

mark start of a new scan pass.

see zbar_scanner_new_scan()

References _scanner, _type, and zbar::zbar_scanner_new_scan().

Here is the call graph for this function:

zbar::Scanner::operator zbar_scanner_t * ( ) const
inline

cast to C scanner

References _scanner.

Scanner& zbar::Scanner::operator<< ( int  y)
inline

process next sample intensity value.

see zbar_scan_y()

References _scanner, _type, and zbar::zbar_scan_y().

Here is the call graph for this function:

Scanner& zbar::Scanner::operator<< ( unsigned char *  rgb)
inline

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

References _scanner, _type, and zbar::zbar_scan_rgb24().

Here is the call graph for this function:

void zbar::Scanner::reset ( )
inline

clear all scanner state.

see zbar_scanner_reset()

References _scanner, and zbar::zbar_scanner_reset().

Referenced by scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_symbol_type_t zbar::Scanner::scan_rgb24 ( unsigned char *  rgb)
inline

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

References _scanner, _type, and zbar::zbar_scan_rgb24().

Here is the call graph for this function:

zbar_symbol_type_t zbar::Scanner::scan_y ( int  y)
inline

process next sample intensity value.

see zbar_scan_y()

References _scanner, _type, and zbar::zbar_scan_y().

Referenced by scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

zbar_symbol_type_t zbar::Scanner::_type
private

The documentation for this class was generated from the following file: