Logo Search packages:      
Sourcecode: zbar version File versions  Download package

void zbar_image_set_data ( zbar_image_t image,
const void *  data,
unsigned long  data_byte_length,
zbar_image_cleanup_handler_t cleanup_hndlr 

specify image sample data. when image data is no longer needed by the library the specific data cleanup handler will be called (unless NULL)

application image data will not be modified by the library

Definition at line 139 of file image.c.

References zbar_image_free_data(), and zbar_image_set_data().

Referenced by zbar::Image::set_data(), and zbar_image_set_data().

    img->data = data;
    img->datalen = len;
    img->cleanup = cleanup;

Generated by  Doxygen 1.6.0   Back to index