- the pnm reader read maxval for ppm/pgm files and then ignored it,
authorTony Cook <tony@develop=help.com>
Thu, 26 Aug 2004 04:31:42 +0000 (04:31 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 26 Aug 2004 04:31:42 +0000 (04:31 +0000)
commit8b69555413e5954690fee06e2e498e5b8f9ecdbd
treea3bfe705ed6aef1b536a96b71fe3f20522210339
parentea9e6c3f3c5a1474664d5407701cf736fcb39a09
    - 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.
12 files changed:
Changes
MANIFEST
TODO
pnm.c
quant.c
t/t104ppm.t
testimg/maxval.ppm [new file with mode: 0644]
testimg/maxval_0.ppm [new file with mode: 0644]
testimg/maxval_256.ppm [new file with mode: 0644]
testimg/maxval_4095_asc.ppm [new file with mode: 0644]
testimg/maxval_65536.ppm [new file with mode: 0644]
testimg/maxval_asc.ppm [new file with mode: 0644]