mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
3165fe6a56
commit
9e3f335bea
6 changed files with 299 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue