Browse Source

* median.c: fix the RGBA median filter.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2745 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 years ago
parent
commit
114afed869
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      pipi/filter/median.c

+ 4
- 4
pipi/filter/median.c View File

@@ -134,10 +134,10 @@ pipi_image_t *pipi_median_ext(pipi_image_t *src, int rx, int ry)
}
else
{
dstdata[4 * (y * w + x)] = list[size / 8 * 4];
dstdata[4 * (y * w + x) + 1] = list[size / 8 * 4 + 1];
dstdata[4 * (y * w + x) + 2] = list[size / 8 * 4 + 2];
dstdata[4 * (y * w + x) + 3] = list[size / 8 * 4 + 3];
dstdata[4 * (y * w + x)] = list[size / 2 * 4];
dstdata[4 * (y * w + x) + 1] = list[size / 2 * 4 + 1];
dstdata[4 * (y * w + x) + 2] = list[size / 2 * 4 + 2];
dstdata[4 * (y * w + x) + 3] = list[size / 2 * 4 + 3];
}
}
}


Loading…
Cancel
Save