Change Vinfo and Vaddcache to usr /ufs/guido/bin/sgi/python.

Don't force packfactor to 1 in header when writing rgb data.
Small bugfixes in Vcopy.
This commit is contained in:
Guido van Rossum 1993-02-25 14:50:27 +00:00
parent 5e044b7009
commit c97d2eddee
4 changed files with 14 additions and 19 deletions

View file

@ -255,11 +255,6 @@ class VideoParams:
def setpf(self, pf):
if self.frozen: raise CallError
## if type(pf) is type(0):
## if pf == 0:
## pf = (1, 1)
## else:
## pf = (pf, pf)
if type(pf) is not type(()) or len(pf) <> 2: raise CallError
self.packfactor = pf
self.setderived()
@ -707,10 +702,6 @@ def writefileheader(fp, values):
#
# Write frame geometry info
#
if format in ('rgb', 'jpeg'):
packfactor = 0
elif packfactor == 0:
packfactor = 1
data = (width, height, packfactor)
fp.write(`data`+'\n')