fix a typo

thank you mayoung

see https://github.com/jcupitt/libvips/issues/382
This commit is contained in:
John Cupitt 2016-02-11 18:56:55 +00:00
parent bd985731eb
commit e69da1952d
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ vips_premultiply_init( VipsPremultiply *premultiply )
* alpha = clip( 0, in[in.bands - 1], @max_alpha );
* norm = alpha / @max_alpha;
* out = [in[0] * norm, ..., in[in.bands - 1] * norm, alpha];
* |]
* ]|
*
* So for an N-band image, the first N - 1 bands are multiplied by the clipped
* and normalised final band, the final band is clipped.

View File

@ -296,7 +296,7 @@ vips_unpremultiply_init( VipsUnpremultiply *unpremultiply )
* out = [0, ..., 0, alpha];
* else
* out = [in[0] / norm, ..., in[in.bands - 1] / norm, alpha];
* |]
* ]|
*
* So for an N-band image, the first N - 1 bands are divided by the clipped
* and normalised final band, the final band is clipped.