Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa3de51

Browse files
committed
Print real width and warn for stride not a multiple of 4 bytes
1 parent 864cde2 commit fa3de51

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Demo/sgi/video/vinfo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ def main():
6161
else:
6262
size = (w/pf) * (h/pf)
6363
print name, ':', w, 'x', h, '; pf =', pf, ', size =', size,
64-
if pf == 0: print '(color)',
64+
if pf == 0:
65+
print '(color)',
66+
else:
67+
print '(' + `(w/pf)` + 'x' + `(h/pf)` + ')',
68+
if (w/pf)%4 <> 0: print '!!!',
6569
print
6670
num = 0
6771
try:

0 commit comments

Comments
 (0)