Code looks good. I just have a couple of questions about the test data. http://codereview.appspot.com/4174053/diff/7002/src/pkg/image/png/testdata/pngsuite/README ...
13 years, 8 months ago
(2011-02-18 00:25:09 UTC)
#3
Code looks good. I just have a couple of questions about the test data.
http://codereview.appspot.com/4174053/diff/7002/src/pkg/image/png/testdata/pn...
File src/pkg/image/png/testdata/pngsuite/README (right):
http://codereview.appspot.com/4174053/diff/7002/src/pkg/image/png/testdata/pn...
src/pkg/image/png/testdata/pngsuite/README:2: libpng.org, specifically
contrib/pngsuite/* in libpng-1.2.40.tar.gz.
The added .png files (such as basn0g01-30.png) are not in the tarball from
libpng.org. Nor are they in the original set from http:/www.schaik.com/pngsuite/
Is basn0g01-30.png dramatically different than basn0g01.png? If not, I wouldn't
bother adding them.
If you're keeping them, can you clarify where your new .png files come from, and
confirm that they are licensed appropriately?
http://codereview.appspot.com/4174053/diff/7002/src/pkg/image/png/testdata/pn...
src/pkg/image/png/testdata/pngsuite/README:10: generated from PNGs with a
bitdepth of 8.
Can you add the command line that you used to generate the .sng files in this
case?
Also, you seem to have modified other .sng files (such as basn4a08.sng) but
that's not part of basn0g0{1,2,4}.sng.
I have added some more explanation about where the testfiles come from in the README. ...
13 years, 8 months ago
(2011-02-18 19:35:46 UTC)
#5
I have added some more explanation about where the testfiles come
from in the README. Basically they are all simple conversions of
the orignal testfiles from libpng.
The -29, -30 and -31 files have said width (and height) which is
useful for testing that rounding upwards from bits to whole bytes
work correctly. (Width 32 seem like a really bad choice!)
Since we loose information about the orignal depth and color model
in some cases when reading the *.png files we cannot generate *.sng
files identical to the *.png:s. In these cases I have changed the
*.sng files to a larger depth or to rgba instead of gray + alpha.
Issue 4174053: code review 4174053: image/png: support for more formats
Created 13 years, 8 months ago by mti
Modified 13 years, 8 months ago
Reviewers:
Base URL:
Comments: 5