ZBar Bar Code Reader Library  version 0.10
zbar/image.c File Reference
Include dependency graph for zbar/image.c:

Classes

struct  zimg_hdr_s
 

Typedefs

typedef struct zimg_hdr_s zimg_hdr_t
 

Functions

void _zbar_image_free (zbar_image_t *img)
 
zbar_image_t * zbar_image_copy (const zbar_image_t *src)
 
zbar_image_t * zbar_image_create ()
 new image constructor. More...
 
void zbar_image_destroy (zbar_image_t *img)
 
const zbar_symbol_t * zbar_image_first_symbol (const zbar_image_t *img)
 
void zbar_image_free_data (zbar_image_t *img)
 
const voidzbar_image_get_data (const zbar_image_t *img)
 
unsigned long zbar_image_get_data_length (const zbar_image_t *img)
 
unsigned long zbar_image_get_format (const zbar_image_t *img)
 
unsigned zbar_image_get_height (const zbar_image_t *img)
 
unsigned zbar_image_get_sequence (const zbar_image_t *img)
 
const zbar_symbol_set_t * zbar_image_get_symbols (const zbar_image_t *img)
 
voidzbar_image_get_userdata (const zbar_image_t *img)
 
unsigned zbar_image_get_width (const zbar_image_t *img)
 
void zbar_image_ref (zbar_image_t *img, int refs)
 
void zbar_image_set_data (zbar_image_t *img, const void *data, unsigned long len, zbar_image_cleanup_handler_t *cleanup)
 
void zbar_image_set_format (zbar_image_t *img, unsigned long fmt)
 
void zbar_image_set_sequence (zbar_image_t *img, unsigned seq)
 
void zbar_image_set_size (zbar_image_t *img, unsigned w, unsigned h)
 
void zbar_image_set_symbols (zbar_image_t *img, const zbar_symbol_set_t *syms)
 
void zbar_image_set_userdata (zbar_image_t *img, void *userdata)
 
int zbar_image_write (const zbar_image_t *img, const char *filebase)
 

Typedef Documentation

typedef struct zimg_hdr_s zimg_hdr_t

Function Documentation

void _zbar_image_free ( zbar_image_t *  img)

References zbar_symbol_set_ref().

Referenced by _zbar_image_refcnt().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_image_t* zbar_image_copy ( const zbar_image_t *  src)

References zbar_image_create(), and zbar_image_free_data().

Here is the call graph for this function:

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

References _zbar_image_refcnt(), and _zbar_refcnt_init().

Referenced by _zbar_format_lookup(), image_new(), main(), scan_image(), zbar_gtk_processing_thread(), zbar_image_convert_resize(), zbar_image_copy(), zbar_image_free_data(), zbar_video_create(), zbar_video_init(), and zbar_video_next_image().

Here is the call graph for this function:

const zbar_symbol_t* zbar_image_first_symbol ( const zbar_image_t *  img)

Referenced by _zbar_process_image(), data_handler(), main(), scan_image(), and zbar_gtk_process_image().

Here is the caller graph for this function:

void zbar_image_free_data ( zbar_image_t *  img)
inline
const void* zbar_image_get_data ( const zbar_image_t *  img)

Referenced by _zbar_process_image(), image_get_data(), main(), test_cleanup_handler(), and zbarImage_validate().

Here is the caller graph for this function:

unsigned long zbar_image_get_data_length ( const zbar_image_t *  img)

Referenced by image_get_data(), main(), and zbarImage_validate().

Here is the caller graph for this function:

unsigned long zbar_image_get_format ( const zbar_image_t *  img)

Referenced by _zbar_process_image(), image_get_format(), main(), and test_image_bars().

Here is the caller graph for this function:

unsigned zbar_image_get_height ( const zbar_image_t *  img)
unsigned zbar_image_get_sequence ( const zbar_image_t *  img)

Referenced by data_handler(), and image_get_int().

Here is the caller graph for this function:

const zbar_symbol_set_t* zbar_image_get_symbols ( const zbar_image_t *  img)

Referenced by image_get_symbols(), and zbar_gtk_process_image().

Here is the caller graph for this function:

void* zbar_image_get_userdata ( const zbar_image_t *  img)

Referenced by image_cleanup(), image_clear(), image_get_data(), process_handler(), and zbar_gtk_release_pixbuf().

Here is the caller graph for this function:

unsigned zbar_image_get_width ( const zbar_image_t *  img)
void zbar_image_ref ( zbar_image_t *  img,
int  refs 
)

References _zbar_image_refcnt().

Referenced by zbarImage_FromImage().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_image_set_data ( zbar_image_t *  img,
const void data,
unsigned long  len,
zbar_image_cleanup_handler_t *  cleanup 
)

References test_zbar::data, len, and zbar_image_free_data().

Referenced by image_set_data(), main(), scan_image(), test_image_bars(), and zbar_gtk_image_from_pixbuf().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_image_set_format ( zbar_image_t *  img,
unsigned long  fmt 
)

Referenced by image_set_format(), main(), scan_image(), and zbar_gtk_image_from_pixbuf().

Here is the caller graph for this function:

void zbar_image_set_sequence ( zbar_image_t *  img,
unsigned  seq 
)

Referenced by image_set_int().

Here is the caller graph for this function:

void zbar_image_set_size ( zbar_image_t *  img,
unsigned  w,
unsigned  h 
)
void zbar_image_set_symbols ( zbar_image_t *  img,
const zbar_symbol_set_t *  syms 
)

References zbar_symbol_set_ref().

Referenced by image_set_symbols(), and zbar_gtk_process_image().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_image_set_userdata ( zbar_image_t *  img,
void userdata 
)
int zbar_image_write ( const zbar_image_t *  img,
const char *  filebase 
)

References fclose(), zimg_hdr_s::format, zimg_hdr_s::height, test_pygtk::info, len, zimg_hdr_s::magic, zimg_hdr_s::size, zimg_hdr_s::width, y, zbar_image_write_png, and zprintf.

Referenced by _zbar_process_image(), and main().

Here is the call graph for this function:

Here is the caller graph for this function: