static __inline int proc_open (zbar_processor_t *proc) { /* arbitrary default */ int width = 640, height = 480; return(_zbar_processor_open(proc, "zbar barcode reader", width, height)); }
static inline int proc_open (zbar_processor_t *proc) { /* arbitrary default */ int width = 640, height = 480; if(proc->video) { width = zbar_video_get_width(proc->video); height = zbar_video_get_height(proc->video); } return(_zbar_processor_open(proc, "zbar barcode reader", width, height)); }