Added resizevideo() interface to LiveVideoIn and rationalized size

adjustments (somewhat).  Adapted Vsend to use it.
This commit is contained in:
Guido van Rossum 1992-09-24 16:53:51 +00:00
parent cfb6bb2a30
commit d65f45da26
2 changed files with 38 additions and 23 deletions

View file

@ -118,10 +118,8 @@ def main():
w, h = gl.getsize()
x, y = gl.getorigin()
if (w, h) <> (width, height):
lvi.close()
width, height = w, h
lvi = LiveVideoIn.LiveVideoIn() \
.init(pktmax, width, height)
lvi.resizevideo(width, height)
lvo.resizevideo(width, height)
rv = lvi.getnextpacket()