Correct greyscale PNG scaling factor. Non-interlaced greyscale PNG tests now pass.

db4
Philip Searle 2010-11-13 19:29:26 +00:00
parent 65dcd56b0b
commit 0c70f74abe
12 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,11 @@ IN: images.png.tests
! The subset of the suite that should work given the current implementation.
"vocab:images/testing/png" [
"basn0g01.png" decode-test
"basn0g02.png" decode-test
"basn0g04.png" decode-test
"basn0g08.png" decode-test
"basn0g16.png" decode-test
"basn2c08.png" decode-test
"basn6a08.png" decode-test
"f00n2c08.png" decode-test

View File

@ -240,7 +240,7 @@ ERROR: unknown-component-type n ;
: scale-factor ( n -- n' )
{
{ 1 [ 255 ] }
{ 2 [ 127 ] }
{ 2 [ 85 ] }
{ 4 [ 17 ] }
} case ;

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B