From f749f856f4867b59cadc66c8eed30e0f9de1bcb3 Mon Sep 17 00:00:00 2001 From: Alberto Donizetti Date: Thu, 8 Jun 2017 10:59:31 +0200 Subject: [PATCH] doc: list image changes in 1.9 release notes Updates #20587 Change-Id: I551a21c0226bc66fd7bca737c30cba679b958c37 Reviewed-on: https://go-review.googlesource.com/45091 Reviewed-by: Brad Fitzpatrick --- doc/go1.9.html | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/go1.9.html b/doc/go1.9.html index 60d5760314..164715c65b 100644 --- a/doc/go1.9.html +++ b/doc/go1.9.html @@ -364,7 +364,11 @@ type T1 = T2
image

- TODO: https://golang.org/cl/36734: fix the overlap check in Rectangle.Intersect. + The Rectangle.Intersect + method now returns a zero Rectangle when called on + adjacent but non-overlapping rectangles, as documented. In + earlier releases it would incorrectly return an empty but + non-zero Rectangle.

@@ -372,7 +376,9 @@ type T1 = T2
image/color

- TODO: https://golang.org/cl/36732: tweak the YCbCr to RGBA conversion formula again. + The YCbCr to RGBA conversion formula has been tweaked to ensure + that rounding adjustments span the complete [0, 0xffff] RGBA + range.

@@ -380,11 +386,18 @@ type T1 = T2
image/png

- TODO: https://golang.org/cl/34150: reduce memory allocs encoding images by reusing buffers + The new Encoder.BufferPool + field allows specifying an EncoderBufferPool, + that will be used by the encoder to get temporary EncoderBuffer + buffers when encoding a PNG image. + + The use of a BufferPool reduces the number of + memory allocations performed while encoding multiple images.

- TODO: https://golang.org/cl/38271: decode Gray8 transparent images. + The package now supports the decoding of transparent 8-bit + grayscale ("Gray8") images.

-- 2.50.0