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

void zebra_window_set_overlay ( zebra_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 130 of file window.c.

References zebra_window_set_overlay().

Referenced by zebra::Window::set_overlay(), and zebra_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