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

void zebra_image_scanner_enable_cache ( zebra_image_scanner_t scanner,
int  enable 

enable or disable the inter-image result cache (default disabled). mostly useful for scanning video frames, the cache filters duplicate results from consecutive images, while adding some consistency checking and hysteresis to the results. this interface also clears the cache

Definition at line 285 of file img_scanner.c.

References zebra_image_scanner_enable_cache().

Referenced by zebra::ImageScanner::enable_cache(), zebra_image_scanner_enable_cache(), zebra_process_image(), zebra_process_one(), and zebra_processor_set_active().

    if(iscn->cache) {
        /* recycle all cached syms */
        zebra_symbol_t *entry;
        for(entry = iscn->cache; entry->next; entry = entry->next)
        entry->next = iscn->syms;
        iscn->syms = iscn->cache;
        iscn->cache = NULL;
    iscn->enable_cache = enable;

Generated by  Doxygen 1.6.0   Back to index