mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
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:
parent
5e044b7009
commit
c97d2eddee
4 changed files with 14 additions and 19 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue