]> Cypherpunks repositories - gostls13.git/commit
image: add RGBA64Image interface
authorNigel Tao <nigeltao@golang.org>
Sun, 18 Apr 2021 03:38:34 +0000 (13:38 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 18 Jun 2021 23:57:09 +0000 (23:57 +0000)
commit86743e7d8652c316b5f77a84ffc83244ee10a41b
tree95eb6875dcced583cc0bf98bfb036e363e126df3
parent9401172166ee6ac64a5a74b4a8f2aa6d3f936ea1
image: add RGBA64Image interface

The new RGBA64At method is equivalent to the existing At method (and the
new SetRGBA64 method is equivalent to the existing Set method in the
image/draw package), but they can avoid allocations from converting
concrete color types to the color.Color interface type.

Also update api/go1.17.txt and doc/go1.17.html

Fixes #44808

Change-Id: I8671f3144512b1200fa373840ed6729a5d61bc35
Reviewed-on: https://go-review.googlesource.com/c/go/+/311129
Trust: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
api/go1.17.txt
doc/go1.17.html
src/image/draw/draw.go
src/image/image.go
src/image/image_test.go
src/image/ycbcr.go