summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-09-16 14:57:30 +0100
committerJosé Fonseca <jfonseca@vmware.com>2013-09-16 14:57:30 +0100
commitd79c9a22244ebc7aba491ad50ef2edced6c00d88 (patch)
tree7092e95d6587dbb65f8c7fd02f361bca4d31811a /scripts
parent127a7281d3cc0c8233e128a2c3e8601276939b9a (diff)
image: Non-standard PNM format variant for 4-float images.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/retracediff.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/retracediff.py b/scripts/retracediff.py
index c0518df2..71e9f064 100755
--- a/scripts/retracediff.py
+++ b/scripts/retracediff.py
@@ -148,6 +148,10 @@ def read_pnm(stream):
channels = 3
bytesPerChannel = 4
mode = 'RGB'
+ elif magic == 'PX':
+ channels = 4
+ bytesPerChannel = 4
+ mode = 'RGB'
else:
raise Exception('Unsupported magic `%s`' % magic)
comment = ''