/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/dict_image.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-22 13:42:41 UTC
  • Revision ID: csa@dside.dyndns.org-20100422134241-fv5m2ufk8n2tc9h5
Implementation of image and fragment modes, support for non-cacheable grids

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
    int alloc_size = 32 + calc_alloc(w * h, 32);
271
271
    ps->image_buf = _TIFFmalloc(alloc_size * sizeof (uint32_t));
272
272
    ps->image = (unsigned char*)malloc(alloc_size * sizeof(unsigned char));
273
 
    
274
 
    ps->width = w;
275
 
    ps->height = h;
 
273
 
 
274
    dictSetDimensions(ps, w, h);    
276
275
    
277
276
    if ((!ps->image)||(!ps->image_buf)) {
278
277
        reportError("Problem allocating memory for image %ix%i", w, h);