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

void zbar_image_set_symbols ( zbar_image_t image,
const zbar_symbol_set_t symbols 
)

associate the specified symbol set with the image, replacing any existing results. use NULL to release the current results from the image.

See also:
zbar_image_scanner_recycle_image()
Since:
0.10

Definition at line 180 of file image.c.

References zbar_image_set_symbols(), and zbar_symbol_set_ref().

Referenced by zbar_image_set_symbols().

{
    if(img->syms)
        zbar_symbol_set_ref(img->syms, -1);
    img->syms = (zbar_symbol_set_t*)syms;
    if(syms)
        zbar_symbol_set_ref(img->syms, 1);
}


Generated by  Doxygen 1.6.0   Back to index