X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=scripts%2Fretracediff.py;h=71e9f06473d38f38dd2e9f8259ad1b1104b10bef;hb=d79c9a22244ebc7aba491ad50ef2edced6c00d88;hp=c0518df2fbcd67f786ebdd71ac3c664bbc26e346;hpb=127a7281d3cc0c8233e128a2c3e8601276939b9a;p=apitrace diff --git a/scripts/retracediff.py b/scripts/retracediff.py index c0518df..71e9f06 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 = ''