From: anthony Date: Sun, 26 Sep 2010 01:30:14 +0000 (+0000) Subject: minor comment changes X-Git-Tag: 7.0.1-0~8808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c331decccab4857bbc29a1b5ae0b0fb12a262491;p=imagemagick minor comment changes --- diff --git a/magick/resize.c b/magick/resize.c index 357e375b4..c5bd2b8ef 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -181,8 +181,9 @@ static MagickRealType Box(const MagickRealType magick_unused(x), const ResizeFilter *magick_unused(resize_filter)) { /* - Return a Box filter up to its support size. - DO NOT LIMIT results by support or resize point sampling will fil + A Box filter is a equal weighting function (all weights tha same). + DO NOT LIMIT results by support or resize point sampling will work + as it requests points beyond its normal 0.0 support size. */ return(1.0); } @@ -514,7 +515,8 @@ static MagickRealType Welsh(const MagickRealType x, % % FIR filters are used as is, and are limited by that filters support % window (unless over-ridden). 'Gaussian' while classed as an IIR -% filter, is also simply clipped by its support size (1.5). +% filter, is also simply clipped by its support size (currently 1.5 +% but probably should be 2.0 for better use from EWA resampling) % % The users "-filter" selection ise used to lookup the default % 'expert' settings for that filter from a internal table. However @@ -668,8 +670,8 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image, window; } const mapping[SentinelFilter] = { - { UndefinedFilter, BoxFilter }, /* Undefined */ - { PointFilter, BoxFilter }, /* SPECIAL: nearest neighbour filter */ + { UndefinedFilter, BoxFilter }, /* Undefined (default to Box) */ + { PointFilter, BoxFilter }, /* SPECIAL: Nearest neighbour */ { BoxFilter, BoxFilter }, /* Box averaging filter */ { TriangleFilter, BoxFilter }, /* Linear interpolation filter */ { HermiteFilter, BoxFilter }, /* Hermite interpolation filter */ @@ -714,8 +716,8 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image, B,C; /* Cubic Filter factors for a CubicBC function, else ignored */ } const filters[SentinelFilter] = { - { Box, 0.0, 0.5, 0.0, 0.0 }, /* Undefined */ - { Box, 0.0, 0.5, 0.0, 0.0 }, /* Point */ + { Box, 0.5, 0.5, 0.0, 0.0 }, /* Undefined (default to Box) */ + { Box, 0.0, 0.5, 0.0, 0.0 }, /* Point (special handling) */ { Box, 0.5, 0.5, 0.0, 0.0 }, /* Box */ { Triangle, 1.0, 1.0, 0.0, 0.0 }, /* Triangle */ { CubicBC, 1.0, 1.0, 0.0, 0.0 }, /* Hermite (cubic B=C=0) */