/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to ipecamera/ipecamera.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-13 17:54:51 UTC
  • Revision ID: csa@dside.dyndns.org-20111213175451-xf1h4kvsme91otd5
Do not call the normall callback in the raw-data-only mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
    ctx->buffer_pos = 0;
276
276
    ctx->parse_data = (flags&PCILIB_EVENT_FLAG_RAW_DATA_ONLY)?0:1;
277
277
    ctx->cur_size = 0;
278
 
 
 
278
    
279
279
    ctx->dim.width = IPECAMERA_WIDTH;
280
280
    GET_REG(n_lines_reg, ctx->dim.height);
281
281
    
405
405
        ctx->autostop.evid = vctx->params.autostop.max_events;
406
406
    }
407
407
    
408
 
    if (flags&PCILIB_EVENT_FLAG_PREPROCESS) {
 
408
    if ((ctx->parse_data)&&(flags&PCILIB_EVENT_FLAG_PREPROCESS)) {
409
409
        ctx->n_preproc = pcilib_get_cpu_count();
410
410
        
411
411
            // it would be greate to detect hyperthreading cores and ban them