summaryrefslogtreecommitdiff
path: root/Demo/sgi/video/Vrec.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-03-02 12:07:34 +0000
committerGuido van Rossum <guido@python.org>1993-03-02 12:07:34 +0000
commit0caf46b6ccb7a9e377e10debaae614c9ffa88d20 (patch)
tree7e5b51632fa467d209752da4ea33a031dd4081a1 /Demo/sgi/video/Vrec.py
parentc9e340db8d01ff26e9f4d90480bd1ef0ca97459c (diff)
downloadcpython-git-0caf46b6ccb7a9e377e10debaae614c9ffa88d20.tar.gz
VFile: fix c0bits etc. after setformat; Vrec.py: use setformat; rm Makefile.
Diffstat (limited to 'Demo/sgi/video/Vrec.py')
-rwxr-xr-xDemo/sgi/video/Vrec.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Demo/sgi/video/Vrec.py b/Demo/sgi/video/Vrec.py
index 7b95aee11d..a78490f626 100755
--- a/Demo/sgi/video/Vrec.py
+++ b/Demo/sgi/video/Vrec.py
@@ -255,17 +255,17 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \
if filename:
vout = VFile.VoutFile().init(filename)
if mono:
- vout.format = 'mono'
+ format = 'mono'
elif grey and greybits == 8:
- vout.format = 'grey'
+ format = 'grey'
elif grey:
- vout.format = 'grey'+`abs(greybits)`
+ format = 'grey'+`abs(greybits)`
else:
- vout.format = 'rgb8'
- vout.width = x
- vout.height = y
+ format = 'rgb8'
+ vout.setformat(format)
+ vout.setsize(x, y)
if fields:
- vout.packfactor = (1,-2)
+ vout.setpf(1, -2))
vout.writeheader()
if preallocspace:
print 'Preallocating space...'