go/src/image
Nigel Tao c20323d2bb image/draw: add a fast path for Gray src images.
Grayscale PNG and JPEG images are not uncommon. We should have a fast path.

Also add a benchmark for the recently added CMYK fast path.

benchmark                    old ns/op     new ns/op     delta
BenchmarkGray                13960348      324152        -97.68%

Change-Id: I72b5838c8c3d1f2d0a4536a848e020e80b10c0f7
Reviewed-on: https://go-review.googlesource.com/6237
Reviewed-by: Rob Pike <r@golang.org>
2015-02-28 21:43:39 +00:00
..
color image: add image.CMYK and color.CMYK types. 2015-02-16 00:08:49 +00:00
draw image/draw: add a fast path for Gray src images. 2015-02-28 21:43:39 +00:00
gif image/gif: don't let the per-frame transparent index modify the global 2014-09-22 14:29:45 +10:00
jpeg image/jpeg: support 4:1:1 and 4:1:0 chroma subsampling. 2015-02-26 02:08:45 +00:00
png build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
testdata image/jpeg: support 4:1:1 and 4:1:0 chroma subsampling. 2015-02-26 02:08:45 +00:00
decode_example_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
decode_test.go image/jpeg: support decoding CMYK and YCbCrK images. 2015-02-16 00:25:47 +00:00
format.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
geom.go image: change Rectangle.Eq to return true for all empty rectangles, even 2015-02-18 23:50:09 +00:00
geom_test.go image: change Rectangle.Eq to return true for all empty rectangles, even 2015-02-18 23:50:09 +00:00
image.go image: add image.CMYK and color.CMYK types. 2015-02-16 00:08:49 +00:00
image_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
names.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ycbcr.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00
ycbcr_test.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00