Functions | |
static void | _zbar_video_recycle_image (zbar_image_t *img) |
static void | _zbar_video_recycle_shadow (zbar_image_t *img) |
static int | video_init_images (zbar_video_t *vdo) |
zbar_video_t * | zbar_video_create () |
constructor. More... | |
void | zbar_video_destroy (zbar_video_t *vdo) |
int | zbar_video_enable (zbar_video_t *vdo, int enable) |
int | zbar_video_get_fd (const zbar_video_t *vdo) |
uint32_t | zbar_video_get_format (const zbar_video_t *vdo) |
int | zbar_video_get_height (const zbar_video_t *vdo) |
int | zbar_video_get_width (const zbar_video_t *vdo) |
int | zbar_video_init (zbar_video_t *vdo, unsigned long fmt) |
zbar_image_t * | zbar_video_next_image (zbar_video_t *vdo) |
int | zbar_video_open (zbar_video_t *vdo, const char *dev) |
int | zbar_video_request_interface (zbar_video_t *vdo, int ver) |
int | zbar_video_request_iomode (zbar_video_t *vdo, int iomode) |
int | zbar_video_request_size (zbar_video_t *vdo, unsigned width, unsigned height) |
|
static |
References video_lock(), and video_unlock().
Referenced by zbar_video_create(), and zbar_video_next_image().
|
static |
References video_lock(), and video_unlock().
Referenced by zbar_video_next_image().
|
inlinestatic |
References __func__, err_capture(), zbar_image_s::format, SEV_FATAL, VIDEO_MMAP, VIDEO_READWRITE, zbar::ZBAR_ERR_NOMEM, and zprintf.
Referenced by zbar_video_init().
zbar_video_t* zbar_video_create | ( | void | ) |
constructor.
References _zbar_mutex_init, _zbar_video_recycle_image(), err_init(), void, zbar_image_create(), ZBAR_MOD_VIDEO, zbar_video_destroy(), and ZBAR_VIDEO_IMAGES_MAX.
Referenced by main(), zbar::Video::Video(), zbar_gtk_video_open(), and zbar_processor_init().
void zbar_video_destroy | ( | zbar_video_t * | vdo | ) |
References _zbar_jpeg_decomp_destroy(), _zbar_mutex_destroy, err_cleanup(), zbar_image_s::next, VIDEO_INVALID, zbar_image_destroy(), ZBAR_VIDEO_IMAGES_MAX, and zbar_video_open().
Referenced by main(), zbar_gtk_private_finalize(), zbar_gtk_video_open(), zbar_processor_init(), and zbar_video_create().
int zbar_video_enable | ( | zbar_video_t * | vdo, |
int | enable | ||
) |
References __func__, err_capture(), SEV_ERROR, VIDEO_INVALID, video_lock(), video_unlock(), zbar::ZBAR_ERR_INVALID, and zbar_negotiate_format().
Referenced by main(), zbar_gtk_processing_thread(), zbar_processor_set_active(), and zbar_video_open().
int zbar_video_get_fd | ( | const zbar_video_t * | vdo | ) |
References __func__, err_capture(), SEV_ERROR, SEV_WARNING, VIDEO_INVALID, VIDEO_V4L2, zbar::ZBAR_ERR_INVALID, and zbar::ZBAR_ERR_UNSUPPORTED.
Referenced by _zbar_processor_enable(), main(), proc_wait_unthreaded(), and zbar_processor_init().
uint32_t zbar_video_get_format | ( | const zbar_video_t * | vdo | ) |
int zbar_video_get_height | ( | const zbar_video_t * | vdo | ) |
Referenced by proc_open(), zbar_gtk_video_open(), and zbar_processor_set_visible().
int zbar_video_get_width | ( | const zbar_video_t * | vdo | ) |
Referenced by proc_open(), zbar_gtk_video_open(), and zbar_processor_set_visible().
int zbar_video_init | ( | zbar_video_t * | vdo, |
unsigned long | fmt | ||
) |
References __func__, _zbar_format_lookup(), _zbar_jpeg_decomp_create(), err_capture(), fourcc, zbar_format_def_s::group, SEV_ERROR, video_init_images(), zbar::ZBAR_ERR_INVALID, ZBAR_FMT_JPEG, zbar_image_create(), and zbar_image_destroy().
Referenced by main(), zbar_negotiate_format(), and zbar_processor_init().
zbar_image_t* zbar_video_next_image | ( | zbar_video_t * | vdo | ) |
References _zbar_image_refcnt(), _zbar_video_recycle_image(), _zbar_video_recycle_shadow(), zbar_image_s::seq, video_lock(), video_unlock(), and zbar_image_create().
Referenced by _zbar_processor_handle_input(), main(), proc_video_handler(), proc_wait_unthreaded(), and zbar_gtk_processing_thread().
int zbar_video_open | ( | zbar_video_t * | vdo, |
const char * | dev | ||
) |
References _zbar_video_open(), VIDEO_INVALID, video_lock(), video_unlock(), zbar_video_enable(), and zprintf.
Referenced by main(), zbar_gtk_video_open(), zbar_processor_init(), and zbar_video_destroy().
int zbar_video_request_interface | ( | zbar_video_t * | vdo, |
int | ver | ||
) |
References __func__, err_capture(), SEV_ERROR, VIDEO_INVALID, zbar::ZBAR_ERR_INVALID, and zprintf.
Referenced by zbar_processor_init().
int zbar_video_request_iomode | ( | zbar_video_t * | vdo, |
int | iomode | ||
) |
References __func__, err_capture(), SEV_ERROR, VIDEO_INVALID, VIDEO_USERPTR, and zbar::ZBAR_ERR_INVALID.
Referenced by zbar_processor_init().
int zbar_video_request_size | ( | zbar_video_t * | vdo, |
unsigned | width, | ||
unsigned | height | ||
) |
References __func__, err_capture(), scan_image::height, SEV_ERROR, scan_image::width, zbar::ZBAR_ERR_INVALID, and zprintf.
Referenced by main(), and zbar_processor_init().