]> Cypherpunks repositories - gostls13.git/commit
png: make the encoder configurable
authorJeff R. Allen <jra@nella.org>
Thu, 28 Aug 2014 05:50:13 +0000 (15:50 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 28 Aug 2014 05:50:13 +0000 (15:50 +1000)
commit98e5a44a88990b4ed8130056c1d1dec4abc4ecaf
treeef9f1de7ca2a5ea2d71d342fcdbad651c96fd206
parentadd7b220105ab2734244400aa0585fc80f40001c
png: make the encoder configurable

In order to support different compression levels, make the
encoder type public, and add an Encoder method to it.

Fixes #8499.

LGTM=nigeltao
R=nigeltao, ruiu
CC=golang-codereviews
https://golang.org/cl/129190043
src/pkg/image/png/writer.go
src/pkg/image/png/writer_test.go