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

zbar_image_t* zbar_image_create ( void   ) 

new image constructor.

Returns:
a new image object with uninitialized data and format. this image should be destroyed (using zbar_image_destroy()) as soon as the application is finished with it

Definition at line 28 of file image.c.

References zbar_image_create().

Referenced by zbar::Image::Image(), zbar_image_convert_resize(), zbar_image_create(), zbar_image_free_data(), zbar_video_create(), zbar_video_init(), and zbar_video_next_image().

{
    zbar_image_t *img = calloc(1, sizeof(zbar_image_t));
    _zbar_refcnt_init();
    _zbar_image_refcnt(img, 1);
    img->srcidx = -1;
    return(img);
}


Generated by  Doxygen 1.6.0   Back to index