Changeset 3409 for libpipi


Ignore:
Timestamp:
Mar 24, 2009, 1:48:44 AM (12 years ago)
Author:
Sam Hocevar
Message:

histogram.c: fix a shadowing declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/analysis/histogram.c

    r3342 r3409  
    6565        if(flags&PIPI_COLOR_Y)
    6666        {
    67             uint32_t p = 0.;
    68             p += 0.299 * data[i];
    69             p += 0.587 * data[i+1];
    70             p += 0.114 * data[i+2];
     67            uint32_t val = 0.;
     68            val += 0.299 * data[i];
     69            val += 0.587 * data[i+1];
     70            val += 0.114 * data[i+2];
    7171
    72             h->y[p>255?255:p]++;
     72            h->y[val>255?255:val]++;
    7373        }
    7474    }
Note: See TracChangeset for help on using the changeset viewer.