Update of /cvsroot/freevo/kaa/xine/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11138/test
Modified Files:
test.py
Log Message:
Move x11 driver initialization code into drivers/x11.c. Add callbacks for
frame_output_callback and dest_size_callback so that they can be
implemented in Python. Add BEGIN_ALLOW_THREADS and END_ALLOW_THREADS in
various places so the global interpreter lock can be acquired in the above
callbacks.
Index: test.py
===================================================================
RCS file: /cvsroot/freevo/kaa/xine/test/test.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test.py 18 Jul 2005 03:40:22 -0000 1.3
--- test.py 19 Jul 2005 02:07:25 -0000 1.4
***************
*** 8,29 ****
raise SystemExit
! #win = display.X11Window(size=(640, 480), title="Movie")
! #win.show()
x = xine.Xine()
vo_none = x.open_video_driver("none")
! #vo = x.open_video_driver("xv", window = win)
ao = x.open_audio_driver()
! post = x.post_init("buffer", video_targets = [vo_none])
a = post.get_video_inputs()
! #stream = x.stream_new(ao, a[0])
! #stream.open(sys.argv[1])
! #stream.play()
print x.list_post_plugins()
! print post.get_parameters_desc()
! print post.get_parameters()
! print post.set_parameter("ptr", 42)
! print post.get_parameters()
kaa.signals["keypress"].connect(key_press)
kaa.main()
--- 8,45 ----
raise SystemExit
! win = display.X11Window(size=(640, 480), title="Movie")
! win.set_cursor_hide_timeout(0)
! win.show()
x = xine.Xine()
vo_none = x.open_video_driver("none")
! vo = x.open_video_driver("xv", window = win)
ao = x.open_audio_driver()
! post = x.post_init("buffer", video_targets = [vo])
! print post.list_inputs()
! print post.list_outputs()
a = post.get_video_inputs()
!
! print post.get_input("video")
!
! #apost = x.post_init("stretch", audio_targets = [ao])
! #apost.set_parameter("factor", 0.3)
! #print apost.get_parameters()
!
! stream = x.stream_new(ao, vo)
! source = stream.get_video_source()
! #stream = x.stream_new(apost.get_audio_inputs()[0], a[0])
! stream.open(sys.argv[1])
! print "Start playing"
! stream.play(time = 60*10)
! print "Playing"
print x.list_post_plugins()
! #print post.get_parameters()
! print post.set_parameters(ptr = 42)
! #print post.set_parameters(gamma = 1.5, contrast = 10.5)
! #print post.get_parameters()
+ print "connect"
kaa.signals["keypress"].connect(key_press)
+ print "START MAIN"
kaa.main()
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog