summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/Vsend.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-24 16:03:56 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-24 16:03:56 (GMT)
commitcfb6bb2a3036b366aff6add44dce23a6db5b8f50 (patch)
tree4efa72f7ca2cb588f0f06514530bfad014528007 /Demo/sgi/video/Vsend.py
parent691e59bcb7919218bb797ed318580d719eaeef92 (diff)
downloadcpython-cfb6bb2a3036b366aff6add44dce23a6db5b8f50.zip
cpython-cfb6bb2a3036b366aff6add44dce23a6db5b8f50.tar.gz
cpython-cfb6bb2a3036b366aff6add44dce23a6db5b8f50.tar.bz2
Changed the init() interface of LiveVideoOut to read out the window
size automatically -- the video is always centered. Added resizevideo() and reshapewindow() interfaces. Documented all methods. Changed Vsend/Vreceive to use the new interface. Allow window resizing by the user in Vreceive.
Diffstat (limited to 'Demo/sgi/video/Vsend.py')
-rwxr-xr-xDemo/sgi/video/Vsend.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Demo/sgi/video/Vsend.py b/Demo/sgi/video/Vsend.py
index e5154c0..543cd86 100755
--- a/Demo/sgi/video/Vsend.py
+++ b/Demo/sgi/video/Vsend.py
@@ -92,9 +92,7 @@ def main():
gl.qdevice(DEVICE.WINTHAW)
width, height = gl.getsize()
- x, y = gl.getorigin()
- lvo = LiveVideoOut.LiveVideoOut().init(wid, (x, y, width, height), \
- width, height)
+ lvo = LiveVideoOut.LiveVideoOut().init(wid, width, height)
lvi = LiveVideoIn.LiveVideoIn().init(pktmax, width, height)
@@ -124,11 +122,7 @@ def main():
width, height = w, h
lvi = LiveVideoIn.LiveVideoIn() \
.init(pktmax, width, height)
- lvo.close()
- lvo = LiveVideoOut.LiveVideoOut() \
- .init(wid, \
- (x, y, width, height), \
- width, height)
+ lvo.resizevideo(width, height)
rv = lvi.getnextpacket()
if not rv: