zbar::Scanner Class Reference

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

List of all members.

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


Constructor & Destructor Documentation

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

constructor.

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

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

constructor.

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


Member Function Documentation

void zbar::Scanner::reset (  )  [inline]

clear all scanner state.

see zbar_scanner_reset()

zbar_symbol_type_t zbar::Scanner::new_scan (  )  [inline]

mark start of a new scan pass.

see zbar_scanner_new_scan()

zbar_symbol_type_t zbar::Scanner::flush (  )  [inline]

flush scanner pipeline.

see zbar_scanner_flush()

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

process next sample intensity value.

see zbar_scan_y()

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

process next sample intensity value.

see zbar_scan_y()

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

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

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

process next sample from RGB (or BGR) triple.

see zbar_scan_rgb24()

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

retrieve last scanned width.

see zbar_scanner_get_width()

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

retrieve last scanned color.

see zbar_scanner_get_color()


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

SourceForge.net Logo
spadix@users.sourceforge.net

Copyright 2008-2010 (c) Jeff Brown

This documentation is part of the ZBar Barcode Reader; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.