]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: fix quantization tables to be in zig-zag order, not natural
authorNigel Tao <nigeltao@golang.org>
Thu, 6 Sep 2012 01:10:47 +0000 (11:10 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 6 Sep 2012 01:10:47 +0000 (11:10 +1000)
commit4bd8a3864180e88b51939f9880ac52b575bf21fa
tree5c51be3e374bc90a9a56dc9f5ab47203f8bc61b3
parent481e5c6ad05fa6e43f4df10a372a775486ec14c2
image/jpeg: fix quantization tables to be in zig-zag order, not natural
order.

JPEG images generated prior to this CL are still valid JPEGs, as the
quantization tables used are encoded in the wire format. Such JPEGs just
don't use the recommended quantization tables.

R=r, dsymonds, raph, adg
CC=golang-dev, tuom.larsen
https://golang.org/cl/6497083
src/pkg/image/jpeg/reader.go
src/pkg/image/jpeg/writer.go
src/pkg/image/jpeg/writer_test.go