]> Cypherpunks repositories - gostls13.git/commit
image/png: interlacing support for png.
authorDustin Long <dustmop@gmail.com>
Fri, 11 Jul 2014 01:02:02 +0000 (11:02 +1000)
committerDavid Symonds <dsymonds@golang.org>
Fri, 11 Jul 2014 01:02:02 +0000 (11:02 +1000)
commit5c2f01f3923cae85f50260778b8ad0f9d857fd1d
tree771492e1c821a36362e0dddca36b73960129c43c
parent0e694298e9e5d6565b285f48860f73626d6705ff
image/png: interlacing support for png.

Fixes #6293.

Image "testdata/benchRGB-interlace.png" was generated by opening "testdata/benchRGB.png" in the editor Gimp and saving it with interlacing enabled.

Benchmark:
BenchmarkDecodeRGB              500    7014194 ns/op   37.37 MB/s
ok   pkg/image/png 4.657s

BenchmarkDecodeInterlacing      100   10623241 ns/op   24.68 MB/s
ok   pkg/image/png 1.339s

LGTM=nigeltao
R=nigeltao, andybons, matrixik
CC=golang-codereviews
https://golang.org/cl/102130044
src/pkg/image/png/reader.go
src/pkg/image/png/reader_test.go
src/pkg/image/png/testdata/benchRGB-interlace.png [new file with mode: 0644]
src/pkg/image/png/testdata/pngsuite/basn3p04-31i.png [new file with mode: 0644]
src/pkg/image/png/testdata/pngsuite/basn3p04-31i.sng [new file with mode: 0644]