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

void zbar_window_set_overlay ( zbar_window_t window,
int  level 
)

control content level of the reader overlay. the overlay displays graphical data for informational or debug purposes. higher values increase the level of annotation (possibly decreasing performance).

    0 = disable overlay
    1 = outline decoded symbols (default)
    2 = also track and display input frame rate

Definition at line 286 of file window.c.

References zbar_window_set_overlay().

Referenced by zbar::Window::set_overlay(), and zbar_window_set_overlay().

{
    if(lvl < 0)
        lvl = 0;
    if(lvl > 2)
        lvl = 2;
    if(window_lock(w))
        return;
    if(w->overlay != lvl)
        w->overlay = lvl;
    (void)window_unlock(w);
}


Generated by  Doxygen 1.6.0   Back to index