New tool Vfix: truncate the right edge of 'grey' type images to make
the scanline width a multiple of 4.
VFile: use gl.gversion() to distinguish 4.0.1 and 4.0.5 Indigos;
truncate width and height to multiples of packfactor.
Vinfo: add -t to descriptive comment; print '!' after packfactor for
files that should be fixed with Vfix.
diff --git a/Demo/sgi/video/Vinfo.py b/Demo/sgi/video/Vinfo.py
index 22eab23..77ae3a3 100755
--- a/Demo/sgi/video/Vinfo.py
+++ b/Demo/sgi/video/Vinfo.py
@@ -5,7 +5,7 @@
# Usage:
#
-# Vinfo [-d] [-q] [-s] [file] ...
+# Vinfo [-d] [-q] [-s] [-t] [file] ...
# Options:
@@ -13,6 +13,7 @@
# -d : print deltas between frames instead of frame times
# -q : quick: don't read the frames
# -s : don't print times (but do count frames and print the total)
+# -t : terse (one line/file, implies -s)
# file ... : file(s) to inspect; default film.video
@@ -86,6 +87,13 @@
print string.ljust(vin.format, 8),
print string.rjust(`vin.width`, 4),
print string.rjust(`vin.height`, 4),
+ s = string.rjust(`vin.packfactor`, 2)
+ if vin.packfactor and vin.format not in ('rgb', 'jpeg') and \
+ (vin.width/vin.packfactor) % 4 <> 0:
+ s = s + '!'
+ else:
+ s = s + ' '
+ print s,
sys.stdout.flush()
else:
vin.printinfo()