Public Member Functions | |
Processor (bool threaded=true, const char *video_device="", bool enable_display=true) | |
constructor. | |
operator zbar_processor_t * () | |
cast to C processor object. | |
void | init (const char *video_device="", bool enable_display=true) |
opens a video input device and/or prepares to display output. | |
void | set_handler (Image::Handler &handler) |
setup result handler callback. | |
int | set_config (zbar_symbol_type_t symbology, zbar_config_t config, int value) |
set config for indicated symbology (0 for all) to specified value. | |
int | set_config (std::string cfgstr) |
set config parsed from configuration string. | |
bool | is_visible () |
retrieve the current state of the ouput window. | |
void | set_visible (bool visible=true) |
show or hide the display window owned by the library. | |
void | set_active (bool active=true) |
control the processor in free running video mode. | |
const SymbolSet | get_results () const |
retrieve decode results for last scanned image. | |
int | user_wait (int timeout=FOREVER) |
wait for input to the display window from the user. | |
void | process_one (int timeout=FOREVER) |
process from the video stream until a result is available. | |
void | process_image (Image &image) |
process the provided image for barcodes. | |
Processor & | operator<< (Image &image) |
process the provided image for barcodes. | |
void | force_format (unsigned long input_format, unsigned long output_format) |
force specific input and output formats for debug/testing. | |
void | force_format (std::string &input_format, std::string &output_format) |
force specific input and output formats for debug/testing. | |
void | request_size (int width, int height) |
request a preferred size for the video image from the device. | |
void | request_interface (int version) |
request a preferred driver interface version for debug/testing. | |
void | request_iomode (int iomode) |
request a preferred I/O mode for debug/testing. | |
Static Public Attributes | |
static const int | FOREVER |
value to pass for no timeout. |
processes video and images for barcodes, optionally displaying images to a library owned output window
void zbar::Processor::init | ( | const char * | video_device = "" , |
|
bool | enable_display = true | |||
) | [inline] |
opens a video input device and/or prepares to display output.
void zbar::Processor::set_handler | ( | Image::Handler & | handler | ) | [inline] |
setup result handler callback.
int zbar::Processor::set_config | ( | zbar_symbol_type_t | symbology, | |
zbar_config_t | config, | |||
int | value | |||
) | [inline] |
set config for indicated symbology (0 for all) to specified value.
int zbar::Processor::set_config | ( | std::string | cfgstr | ) | [inline] |
bool zbar::Processor::is_visible | ( | ) | [inline] |
retrieve the current state of the ouput window.
void zbar::Processor::set_visible | ( | bool | visible = true |
) | [inline] |
show or hide the display window owned by the library.
void zbar::Processor::set_active | ( | bool | active = true |
) | [inline] |
control the processor in free running video mode.
const SymbolSet zbar::Processor::get_results | ( | ) | const [inline] |
int zbar::Processor::user_wait | ( | int | timeout = FOREVER |
) | [inline] |
wait for input to the display window from the user.
void zbar::Processor::process_one | ( | int | timeout = FOREVER |
) | [inline] |
process from the video stream until a result is available.
void zbar::Processor::process_image | ( | Image & | image | ) | [inline] |
process the provided image for barcodes.
process the provided image for barcodes.
void zbar::Processor::force_format | ( | unsigned long | input_format, | |
unsigned long | output_format | |||
) | [inline] |
force specific input and output formats for debug/testing.
void zbar::Processor::force_format | ( | std::string & | input_format, | |
std::string & | output_format | |||
) | [inline] |
force specific input and output formats for debug/testing.
void zbar::Processor::request_size | ( | int | width, | |
int | height | |||
) | [inline] |
request a preferred size for the video image from the device.
see zbar_processor_request_size()
void zbar::Processor::request_interface | ( | int | version | ) | [inline] |
request a preferred driver interface version for debug/testing.
see zbar_processor_request_interface()
void zbar::Processor::request_iomode | ( | int | iomode | ) | [inline] |
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.