Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the pnm reader read maxval for ppm/pgm files and then ignored it,
it's now validated (0 < maxval < 65536) and used to scale samples. Note that binary ppm/pgm files (P6/P5) with maxval > 255 result in an error, since I didn't want to add new features just yet, just get the code that's there working correctly. Thanks to Elthek on rhizo for reporting this and help in tracking it down. - added a bunch of tests for reading pnm files.
- Loading branch information
Tony Cook
committed
Aug 26, 2004
1 parent
ea9e6c3
commit 8b69555
Showing
12 changed files
with
160 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
P3 | ||
3 1 | ||
4095 | ||
4095 4095 4095 2048 2048 2048 2047 2047 0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
P3 | ||
3 1 | ||
63 | ||
63 63 63 32 32 32 31 31 0 |