VFile: added new formats 'jpeg' and 'jpeggrey'. Decompression is done

using module 'jpeg' by the Displayer class.  (Unfortunately it's too
slow for real time.)  Print file size in printinfo() method.

Vinfo: added -t option (terse -- one line per file) and usage message.

Vtime: use BasicV{in,out}File classes -- the minimum needed.

Vmkjpeg, Vunjpeg: new utilities for jpeg (de)compression.
This commit is contained in:
Guido van Rossum 1992-09-29 13:40:47 +00:00
parent 3165fe6a56
commit 9e3f335bea
6 changed files with 299 additions and 33 deletions

View file

@ -65,7 +65,7 @@ def main():
def process(infilename, outfilename):
try:
vin = VFile.VinFile().init(infilename)
vin = VFile.BasicVinFile().init(infilename)
except IOError, msg:
sys.stderr.write(infilename + ': I/O error: ' + `msg` + '\n')
return 1
@ -77,7 +77,7 @@ def process(infilename, outfilename):
return 1
try:
vout = VFile.VoutFile().init(outfilename)
vout = VFile.BasicVoutFile().init(outfilename)
except IOError, msg:
sys.stderr.write(outfilename + ': I/O error: ' + `msg` + '\n')
return 1