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

zebra_image_data_handler_t* zebra_processor_set_data_handler ( zebra_processor_t processor,
zebra_image_data_handler_t handler,
const void *  userdata 
)

setup result handler callback. the specified function will be called by the processor whenever new results are available from the video stream or a static image. pass a NULL value to disable callbacks.

Returns:
the previously registered handler

Definition at line 585 of file processor.c.

References zebra_processor_set_data_handler().

Referenced by zebra::Processor::set_handler(), and zebra_processor_set_data_handler().

{
    if(proc_lock(proc) < 0)
        return(NULL);
    zebra_image_data_handler_t *result = proc->handler;
    proc->handler = handler;
    proc->userdata = userdata;
    proc_unlock(proc);
    return(result);
}


Generated by  Doxygen 1.6.0   Back to index