]> git.cworth.org Git - apitrace/blobdiff - scripts/retracediff.py
image: Non-standard PNM format variant for 4-float images.
[apitrace] / scripts / retracediff.py
index c0518df2fbcd67f786ebdd71ac3c664bbc26e346..71e9f06473d38f38dd2e9f8259ad1b1104b10bef 100755 (executable)
@@ -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 = ''