Zoltan Hudak / zbar

Dependents:   BarcodeReader_F103

Embed: (wiki syntax)

« Back to documentation index

Scanner Class Reference

Scanner Class Reference

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

#include <Scanner.h>

Public Member Functions

 Scanner (Decoder &decoder)
 constructor.
 Scanner (Decoder *decoder=NULL)
 constructor.
void reset ()
 clear all scanner state.
zbar_symbol_type_t new_scan ()
 mark start of a new scan pass.
zbar_symbol_type_t flush ()
 flush scanner pipeline.
zbar_symbol_type_t scan_y (int y)
 process next sample intensity value.
Scanneroperator<< (int y)
 process next sample intensity value.
zbar_symbol_type_t scan_rgb24 (unsigned char *rgb)
 process next sample from RGB (or BGR) triple.
Scanneroperator<< (unsigned char *rgb)
 process next sample from RGB (or BGR) triple.
unsigned get_width () const
 retrieve last scanned width.
zbar_color_t get_color () const
 retrieve last scanned color.
zbar_symbol_type_t get_type () const
 retrieve last scan result.
 operator zbar_scanner_t * () const
 cast to C scanner
const zbar_scanner_tget_c_scanner () const
 retrieve C scanner

Detailed Description

low-level linear intensity sample stream scanner interface.

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

Definition at line 41 of file Scanner.h.


Constructor & Destructor Documentation

Scanner ( Decoder decoder )

constructor.

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

Definition at line 47 of file Scanner.h.

Scanner ( Decoder decoder = NULL )

constructor.

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

Definition at line 55 of file Scanner.h.


Member Function Documentation

zbar_symbol_type_t flush (  )

flush scanner pipeline.

see zbar_scanner_flush()

Definition at line 85 of file Scanner.h.

const zbar_scanner_t* get_c_scanner (  ) const

retrieve C scanner

Definition at line 150 of file Scanner.h.

zbar_color_t get_color (  ) const

retrieve last scanned color.

see zbar_scanner_get_color()

Definition at line 132 of file Scanner.h.

zbar_symbol_type_t get_type (  ) const

retrieve last scan result.

Definition at line 138 of file Scanner.h.

unsigned get_width (  ) const

retrieve last scanned width.

see zbar_scanner_get_width()

Definition at line 125 of file Scanner.h.

zbar_symbol_type_t new_scan (  )

mark start of a new scan pass.

see zbar_scanner_new_scan()

Definition at line 77 of file Scanner.h.

operator zbar_scanner_t * (  ) const

cast to C scanner

Definition at line 144 of file Scanner.h.

Scanner& operator<< ( int  y )

process next sample intensity value.

see zbar_scan_y()

Definition at line 101 of file Scanner.h.

Scanner& operator<< ( unsigned char *  rgb )

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

Definition at line 117 of file Scanner.h.

void reset (  )

clear all scanner state.

see zbar_scanner_reset()

Definition at line 70 of file Scanner.h.

zbar_symbol_type_t scan_rgb24 ( unsigned char *  rgb )

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

Definition at line 109 of file Scanner.h.

zbar_symbol_type_t scan_y ( int  y )

process next sample intensity value.

see zbar_scan_y()

Definition at line 93 of file Scanner.h.