Go to file
Nigel Tao 8e3389fa81 draw: have Scale and Transform recognize straight copies.
This is only for the NearestNeighbor and ApproxBiLinear Interpolators. A
Kernel interpolator will add blur even when the dst and src rectangles
are the same size.

We do not bother recognizing Transforms that are Scales. The performance
difference is minimal, as you still need to do a per-dst-pixel inverse
mapping either way.

benchmark                           old ns/op     new ns/op     delta
BenchmarkSimpleScaleCopy-8          4866297       29586         -99.39%
BenchmarkSimpleTransformCopy-8      4875991       29531         -99.39%
BenchmarkSimpleTransformScale-8     1208147       1223206       +1.25%

Change-Id: If649ad27a4e81bcbb24b18315745c02c9186a5b7
Reviewed-on: https://go-review.googlesource.com/13004
Reviewed-by: Rob Pike <r@golang.org>
2015-08-02 10:47:07 +00:00
bmp bmp: optimize decoding and encoding 0xH sized images. 2015-05-11 00:10:33 +00:00
cmd/webp-manual-test cmd/webp-manual-test: add a "build ignore" tag, so that "go install 2015-04-27 00:40:42 +00:00
draw draw: have Scale and Transform recognize straight copies. 2015-08-02 10:47:07 +00:00
math math/fixed: new package. 2015-07-30 06:07:28 +00:00
riff webp: fix panic in case of invalid chunkID 2015-05-11 04:53:49 +00:00
testdata draw: tweak the YCbCr to RGBA conversion formula. 2015-07-15 05:30:06 +00:00
tiff tiff/lzw: sync (yet again) to the upstream lzw in the stdlib. 2015-07-02 03:36:51 +00:00
vp8 vp8: split expression to placate 386 compiler 2015-07-29 22:52:57 +00:00
vp8l vp8l: don't ignore I/O errors when reading LZ77 parameters. 2015-05-11 04:53:56 +00:00
webp vp8: limit all other partitions to 1<<24 bytes in size, not just N-1 of 2015-05-15 01:02:58 +00:00
.gitattributes image: copying .gitattributes to all subrepositories 2014-12-23 11:05:35 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 10:42:30 +11:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
CONTRIBUTING.md doc: add CONTRIBUTING.md 2015-02-20 05:00:47 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:31 +11:00
PATENTS go.image: add PATENTS file to the subrepo. 2012-04-16 11:25:02 +10:00
README go.image: initial code. 2012-01-31 11:32:50 +11:00
codereview.cfg image: add codereview.cfg 2015-03-18 17:04:05 +00:00

README

This repository holds supplementary Go image libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.