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

int zbar_processor_request_iomode ( zbar_processor_t video,
int  iomode 
)

request a preferred video I/O mode for debug/testing. You will get errors if the driver does not support the specified mode.

    0 = auto-detect
    1 = force I/O using read()
    2 = force memory mapped I/O using mmap()
    3 = force USERPTR I/O (v4l2 only)
Note:
must be called before zbar_processor_init()
Since:
0.7

Definition at line 496 of file processor.c.

References zbar_processor_request_iomode().

Referenced by zbar::Processor::request_iomode(), and zbar_processor_request_iomode().

{
    proc_enter(proc);
    proc->req_iomode = iomode;
    proc_leave(proc);
    return(0);
}


Generated by  Doxygen 1.6.0   Back to index