Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Issue 129190043: code review 129190043: png: make the encoder configurable

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by jeff.allen
Modified:
9 years, 8 months ago
Reviewers:
nigeltao, gobot, bradfitz
CC:
nigeltao, ruiu, golang-codereviews
Visibility:
Public.

Description

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 issue 8499.

Patch Set 1 #

Patch Set 2 : diff -r 2cc71cd8fe3e466a2338b1fdf8053931d47a9e31 https://code.google.com/p/go #

Patch Set 3 : diff -r 2cc71cd8fe3e466a2338b1fdf8053931d47a9e31 https://code.google.com/p/go #

Patch Set 4 : diff -r 2cc71cd8fe3e466a2338b1fdf8053931d47a9e31 https://code.google.com/p/go #

Total comments: 19

Patch Set 5 : diff -r 59b1bb4bf0458d3e31aaff083c5381c9906f875c https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r 07a722aece2db54bb4cccc58350b8657afbcdc35 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -10 lines) Patch
M src/pkg/image/png/writer.go View 1 2 3 4 5 chunks +47 lines, -5 lines 0 comments Download
M src/pkg/image/png/writer_test.go View 1 2 3 4 5 2 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 16
jeff.allen
Hello Nigel, Please take a look at this API change and see if it would ...
9 years, 8 months ago (2014-08-14 09:22:26 UTC) #1
jeff.allen
Hi Nigel, Please take a look at this API change and see if it would ...
9 years, 8 months ago (2014-08-14 09:23:13 UTC) #2
nigeltao
FYI, the usual process is to run "hg mail", which I believe automatically CC's the ...
9 years, 8 months ago (2014-08-20 08:36:58 UTC) #3
ruiu
https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go File src/pkg/image/png/writer.go (right): https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go#newcode40 src/pkg/image/png/writer.go:40: ) I'd probably make these constants to be of ...
9 years, 8 months ago (2014-08-22 21:25:27 UTC) #4
ruiu
A broader question is whether or not the "config" value approach is better than just ...
9 years, 8 months ago (2014-08-22 21:39:24 UTC) #5
nigeltao
On 2014/08/22 21:39:24, ruiu wrote: > A broader question is whether or not the "config" ...
9 years, 8 months ago (2014-08-25 01:25:25 UTC) #6
nigeltao
https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go File src/pkg/image/png/writer.go (right): https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go#newcode40 src/pkg/image/png/writer.go:40: ) On 2014/08/22 21:25:27, ruiu wrote: > I'd probably ...
9 years, 8 months ago (2014-08-25 01:25:32 UTC) #7
ruiu
> Having DefaultCompression be zero has the nice property that, if the Encoder > struct ...
9 years, 8 months ago (2014-08-25 02:21:33 UTC) #8
jeff.allen
PTAL https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go File src/pkg/image/png/writer.go (right): https://codereview.appspot.com/129190043/diff/60001/src/pkg/image/png/writer.go#newcode17 src/pkg/image/png/writer.go:17: // An Encoder holds the configuration of an ...
9 years, 8 months ago (2014-08-26 22:09:37 UTC) #9
nigeltao
https://codereview.appspot.com/129190043/diff/80001/src/pkg/image/png/writer_test.go File src/pkg/image/png/writer_test.go (right): https://codereview.appspot.com/129190043/diff/80001/src/pkg/image/png/writer_test.go#newcode37 src/pkg/image/png/writer_test.go:37: func encodeDecode(m image.Image) (out image.Image, err error) { I ...
9 years, 8 months ago (2014-08-27 07:23:19 UTC) #10
jeff.allen
Hello nigeltao@golang.org, ruiu@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
9 years, 8 months ago (2014-08-27 18:39:52 UTC) #11
nigeltao
LGTM.
9 years, 8 months ago (2014-08-28 05:48:06 UTC) #12
nigeltao
*** Submitted as https://code.google.com/p/go/source/detail?r=1b4900565b48 *** png: make the encoder configurable In order to support different ...
9 years, 8 months ago (2014-08-28 05:50:23 UTC) #13
gobot
This CL appears to have broken the windows-386 builder. See http://build.golang.org/log/3460428afab9902de33162dd875326783892dfcf
9 years, 8 months ago (2014-08-28 06:10:18 UTC) #14
bradfitz
Maybe the constants should be negative (except Default still being zero), reserving positive number for ...
9 years, 8 months ago (2014-08-28 14:52:33 UTC) #15
nigeltao
9 years, 8 months ago (2014-08-29 07:22:18 UTC) #16
On Fri, Aug 29, 2014 at 12:52 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> Maybe the constants should be negative (except Default still being zero),
> reserving positive number for literals in the future specifying a numeric
> level.

https://codereview.appspot.com/138860043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b