Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BarcodeReader_F103
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. | |
| Scanner & | operator<< (int y) |
| process next sample intensity value. | |
| zbar_symbol_type_t | scan_rgb24 (unsigned char *rgb) |
| process next sample from RGB (or BGR) triple. | |
| Scanner & | operator<< (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_t * | get_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
Member Function Documentation
| zbar_symbol_type_t flush | ( | ) |
| const zbar_scanner_t* get_c_scanner | ( | ) | const |
| zbar_color_t get_color | ( | ) | const |
| zbar_symbol_type_t get_type | ( | ) | const |
| unsigned get_width | ( | ) | const |
| zbar_symbol_type_t new_scan | ( | ) |
| operator zbar_scanner_t * | ( | ) | const |
| Scanner& operator<< | ( | int | y ) |
| Scanner& operator<< | ( | unsigned char * | rgb ) |
process next sample from RGB (or BGR) triple.
| void reset | ( | ) |
| zbar_symbol_type_t scan_rgb24 | ( | unsigned char * | rgb ) |
process next sample from RGB (or BGR) triple.
| zbar_symbol_type_t scan_y | ( | int | y ) |
Generated on Tue Jul 12 2022 21:31:48 by
1.7.2