Go to file
Nigel Tao f72412cfe3 vector: fix overflow when rasterizing a 30 degree line.
There are some obvious TODOs, but they will be follow-up commits.

This is about correctness, not performance, but for the record:

name                              old time/op  new time/op   delta
GlyphAlpha16Over-8                3.16µs ± 0%   3.38µs ± 0%   +6.96%         (p=0.000 n=9+10)
GlyphAlpha16Src-8                 3.06µs ± 0%   3.28µs ± 0%   +7.21%        (p=0.000 n=10+10)
GlyphAlpha32Over-8                4.92µs ± 1%   5.23µs ± 1%   +6.24%        (p=0.000 n=10+10)
GlyphAlpha32Src-8                 4.53µs ± 1%   4.83µs ± 0%   +6.69%        (p=0.000 n=10+10)
GlyphAlpha64Over-8                9.60µs ± 1%  10.21µs ± 0%   +6.36%        (p=0.000 n=10+10)
GlyphAlpha64Src-8                 8.04µs ± 0%   8.68µs ± 1%   +7.99%         (p=0.000 n=9+10)
GlyphAlpha128Over-8               23.1µs ± 0%   24.2µs ± 1%   +5.08%         (p=0.000 n=9+10)
GlyphAlpha128Src-8                16.8µs ± 0%   18.0µs ± 1%   +6.76%        (p=0.000 n=10+10)
GlyphAlpha256Over-8               68.6µs ± 1%   70.3µs ± 0%   +2.50%        (p=0.000 n=10+10)
GlyphAlpha256Src-8                43.6µs ± 0%   45.4µs ± 0%   +4.08%         (p=0.000 n=10+8)
GlyphRGBA16Over-8                 4.92µs ± 0%   5.14µs ± 0%   +4.48%          (p=0.000 n=9+9)
GlyphRGBA16Src-8                  4.39µs ± 0%   4.59µs ± 0%   +4.60%          (p=0.000 n=8+9)
GlyphRGBA32Over-8                 11.8µs ± 0%   12.2µs ± 1%   +2.89%         (p=0.000 n=9+10)
GlyphRGBA32Src-8                  9.79µs ± 1%  10.03µs ± 0%   +2.49%         (p=0.000 n=10+7)
GlyphRGBA64Over-8                 36.7µs ± 1%   37.5µs ± 1%   +2.23%        (p=0.000 n=10+10)
GlyphRGBA64Src-8                  28.5µs ± 0%   29.1µs ± 0%   +2.09%        (p=0.000 n=10+10)
GlyphRGBA128Over-8                 133µs ± 0%    135µs ± 0%   +1.51%         (p=0.000 n=10+9)
GlyphRGBA128Src-8                 99.1µs ± 0%  100.5µs ± 1%   +1.47%         (p=0.000 n=9+10)
GlyphRGBA256Over-8                 505µs ± 0%    511µs ± 0%   +1.18%         (p=0.000 n=9+10)
GlyphRGBA256Src-8                  372µs ± 0%    374µs ± 0%   +0.69%         (p=0.000 n=9+10)

Change-Id: Ice1d77de5bc2649f8cd88366bcae3c00e78d65c2
Reviewed-on: https://go-review.googlesource.com/31113
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-10-14 22:25:13 +00:00
bmp bmp: optimize decoding and encoding 0xH sized images. 2015-05-11 00:10:33 +00:00
cmd/webp-manual-test webp: fix tests for webp/nycbcra deprecation. 2016-04-02 01:02:22 +00:00
colornames colornames: export variables such as Darkred. 2016-05-27 00:36:51 +00:00
draw draw: have Scale and Transform recognize straight copies. 2015-08-02 10:47:07 +00:00
example/font example/font: use an "example" build tag instead of "ignore". 2016-04-12 11:14:18 +00:00
font font/plan9font: look for subfont ".0" suffixes. 2016-08-07 01:57:26 +00:00
math math/fixed: add Mul methods. 2016-08-25 00:04:48 +00:00
riff riff: fix some short chunk data bugs. 2016-07-07 05:37:58 +00:00
testdata draw: tweak the YCbCr to RGBA conversion formula. 2015-07-15 05:30:06 +00:00
tiff tiff: reject TIFF images with unsorted IFD tags. 2016-10-04 16:59:28 +00:00
vector vector: fix overflow when rasterizing a 30 degree line. 2016-10-14 22:25:13 +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 webp: make a placeholder package for Go 1.5 and earlier. 2016-07-16 05:04:44 +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
codereview.cfg image: add codereview.cfg 2015-03-18 17:04:05 +00: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

This repository holds supplementary Go image libraries.

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