Browse Source

histogram.c: fix a shadowing declaration.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3409 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 16 years ago
parent
commit
9e9d93dab2
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      pipi/analysis/histogram.c

+ 5
- 5
pipi/analysis/histogram.c View File

@@ -64,12 +64,12 @@ int pipi_get_image_histogram(pipi_image_t *img, pipi_histogram_t*h, int flags)
h->b[data[i]]++;
if(flags&PIPI_COLOR_Y)
{
uint32_t p = 0.;
p += 0.299 * data[i];
p += 0.587 * data[i+1];
p += 0.114 * data[i+2];
uint32_t val = 0.;
val += 0.299 * data[i];
val += 0.587 * data[i+1];
val += 0.114 * data[i+2];

h->y[p>255?255:p]++;
h->y[val>255?255:val]++;
}
}



Loading…
Cancel
Save