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.
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 @@
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 @@
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: