mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat). Adapted Vsend to use it.
This commit is contained in:
parent
cfb6bb2a30
commit
d65f45da26
2 changed files with 38 additions and 23 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue