Go to file
Nigel Tao 22f1b5f81b font/plan9font: optimize the conversion to image.Alpha.
Also remove the dependency on the image/draw package. That package will
give the right answer for arbitrary source images, including those of
type plan9Image, but doing the conversion directly avoids bouncing uint8
or color.Alpha values through the general-purpose draw.Image,
image.Image and color.Color interfaces.

It is possible to optimize this even further, but this will do for now.

benchmark                   old ns/op     new ns/op     delta
BenchmarkParseSubfont-8     2298492       492443        -78.58%

Change-Id: Iea9436bffa097a1ba0052dbabf21516bce8b61e0
Reviewed-on: https://go-review.googlesource.com/21693
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2016-04-10 01:11:56 +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: fix copyright year. 2015-09-11 03:52:25 +00:00
draw draw: have Scale and Transform recognize straight copies. 2015-08-02 10:47:07 +00:00
example/font font: fix up some old x/exp/shiny references. 2015-09-01 05:21:00 +00:00
font font/plan9font: optimize the conversion to image.Alpha. 2016-04-10 01:11:56 +00:00
math math/fixed: add rectangle types and the R function. 2015-08-24 01:31:27 +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 webp: fix tests for webp/nycbcra deprecation. 2016-04-02 01:02:22 +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.