stores image data samples along with associated format and size metadata More...
Classes | |
class | Handler |
general Image result handler. More... | |
class | SymbolIterator |
Public Member Functions | |
Image (unsigned width=0, unsigned height=0, const std::string &format="", const void *data=NULL, unsigned long length=0) | |
constructor. More... | |
~Image () | |
Image | convert (unsigned long format) const |
image format conversion. More... | |
Image | convert (unsigned long format, unsigned width, unsigned height) const |
image format conversion with crop/pad. More... | |
const void * | get_data () const |
return the image sample data. More... | |
unsigned long | get_data_length () const |
return the size of the image sample data. More... | |
unsigned long | get_format () const |
retrieve the image format. More... | |
unsigned | get_height () const |
retrieve the height of the image. More... | |
unsigned | get_sequence () const |
retrieve a "sequence" (page/frame) number associated with this image. More... | |
const SymbolSet | get_symbols () const |
unsigned | get_width () const |
retrieve the width of the image. More... | |
operator const zbar_image_t * () const | |
cast to C image object More... | |
operator zbar_image_t * () | |
cast to C image object More... | |
void | set_data (const void *data, unsigned long length) |
specify image sample data. More... | |
void | set_format (unsigned long format) |
specify the fourcc image format code for image sample data. More... | |
void | set_format (const std::string &format) |
specify the fourcc image format code for image sample data. More... | |
void | set_sequence (unsigned sequence_num) |
associate a "sequence" (page/frame) number with this image. More... | |
void | set_size (unsigned width, unsigned height) |
specify the pixel size of the image. More... | |
void | set_symbols (const SymbolSet &syms) |
SymbolIterator | symbol_begin () const |
create a new SymbolIterator over decoded results. More... | |
SymbolIterator | symbol_end () const |
return a SymbolIterator suitable for ending iteration. More... | |
Protected Member Functions | |
Image (zbar_image_t *src, int refs=0) | |
constructor. More... | |
Static Protected Member Functions | |
static void | _cleanup (zbar_image_t *img) |
default data cleanup (noop) More... | |
Private Attributes | |
zbar_image_t * | _img |
Friends | |
class | Video |
stores image data samples along with associated format and size metadata
|
inline |
constructor.
create a new Image with the specified parameters
References _img, test_zbar::data, format, scan_image::height, set_data(), set_format(), set_size(), scan_image::width, and zbar::zbar_image_set_userdata().
Referenced by convert().
|
inline |
|
inlineprotected |
constructor.
create a new Image from a zbar_image_t C object
References _img, zbar::zbar_image_ref(), and zbar::zbar_image_set_userdata().
|
inlinestaticprotected |
default data cleanup (noop)
References zbar::zbar_image_get_userdata().
Referenced by set_data().
|
inline |
image format conversion.
References _img, Image(), and zbar::zbar_image_convert().
Referenced by zbar::QZBarThread::processImage().
|
inline |
image format conversion with crop/pad.
see zbar_image_convert_resize()
References _img, Image(), and zbar::zbar_image_convert_resize().
|
inline |
return the image sample data.
References _img, and zbar::zbar_image_get_data().
|
inline |
return the size of the image sample data.
see zbar_image_get_data_length()
References _img, and zbar::zbar_image_get_data_length().
|
inline |
retrieve the image format.
References _img, and zbar::zbar_image_get_format().
|
inline |
retrieve the height of the image.
References _img, and zbar::zbar_image_get_height().
|
inline |
retrieve a "sequence" (page/frame) number associated with this image.
References _img, and zbar::zbar_image_get_sequence().
|
inline |
References _img, and zbar::zbar_image_get_symbols().
Referenced by zbar::QZBarThread::processImage(), and symbol_begin().
|
inline |
retrieve the width of the image.
References _img, and zbar::zbar_image_get_width().
|
inline |
cast to C image object
References _img.
|
inline |
cast to C image object
References _img.
specify image sample data.
References _cleanup(), _img, and zbar::zbar_image_set_data().
Referenced by Image(), main(), and zbar::QZBarImage::QZBarImage().
|
inline |
specify the fourcc image format code for image sample data.
References _img, and zbar::zbar_image_set_format().
Referenced by Image(), and zbar::QZBarImage::QZBarImage().
|
inline |
specify the fourcc image format code for image sample data.
References _img, fourcc, and zbar::zbar_image_set_format().
|
inline |
associate a "sequence" (page/frame) number with this image.
References _img, and zbar::zbar_image_set_sequence().
|
inline |
specify the pixel size of the image.
References _img, and zbar::zbar_image_set_size().
Referenced by Image(), and zbar::QZBarImage::QZBarImage().
References _img, and zbar::zbar_image_set_symbols().
Referenced by zbar::QZBarThread::processImage().
|
inline |
create a new SymbolIterator over decoded results.
References get_symbols().
Referenced by zbar::QZBarThread::image_callback(), and main().
|
inline |
return a SymbolIterator suitable for ending iteration.
Referenced by zbar::QZBarThread::image_callback(), and main().
|
friend |
|
private |