Update of /cvsroot/freevo/kaa/xine/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9193/test
Modified Files:
kaaplayer.py
Log Message:
Lame optimization for yuy2 to rgb conversion.
Index: kaaplayer.py
===================================================================
RCS file: /cvsroot/freevo/kaa/xine/test/kaaplayer.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** kaaplayer.py 1 Aug 2005 04:38:20 -0000 1.8
--- kaaplayer.py 1 Aug 2005 13:57:13 -0000 1.9
***************
*** 56,66 ****
win2.show()
win.hide()
! stream.deint_post.set_parameters(method = "Linear",
framerate_mode = "half_top")
else:
win.show()
win2.hide()
- vo._port.send_gui_data(xine.GUI_SEND_DRAWABLE_CHANGED,
win._window.ptr)
vo._port.send_gui_data(xine.GUI_SEND_VIDEOWIN_VISIBLE, 1)
! stream.deint_post.set_parameters(method = "GreedyH",
framerate_mode = "full")
needs_redraw = True
--- 56,68 ----
win2.show()
win.hide()
! stream.deint_post.set_parameters(method = "Linear",
framerate_mode = "half_top", pulldown = "none")
! vo._port.send_gui_data(xine.GUI_SEND_VIDEOWIN_VISIBLE, 0)
else:
win.show()
win2.hide()
vo._port.send_gui_data(xine.GUI_SEND_VIDEOWIN_VISIBLE, 1)
! stream.deint_post.set_parameters(method = "GreedyH",
framerate_mode = "full", pulldown = "vektor")
! #vo._port.send_gui_data(xine.GUI_SEND_DRAWABLE_CHANGED,
win._window.ptr)
! print "WINDOW TOGGLE"
needs_redraw = True
***************
*** 88,91 ****
--- 90,97 ----
def handle_aspect_changed(aspect, stream, window):
# Resize window to video dimensions
+ global win2
+ if not window.get_visible() and win.get_visible():
+ return
+
video_width = stream.get_info(xine.STREAM_INFO_VIDEO_WIDTH)
height = stream.get_info(xine.STREAM_INFO_VIDEO_HEIGHT)
***************
*** 119,123 ****
if not window.get_visible():
return xine.BUFFER_VO_REQUEST_PASSTHROUGH, -1, -1
! return xine.BUFFER_VO_REQUEST_SEND, 320, 200 #-1, -1
elif command == xine.BUFFER_VO_COMMAND_QUERY_REDRAW:
tmp = needs_redraw
--- 125,129 ----
if not window.get_visible():
return xine.BUFFER_VO_REQUEST_PASSTHROUGH, -1, -1
! return xine.BUFFER_VO_REQUEST_SEND, 400, 250 #-1, -1
elif command == xine.BUFFER_VO_COMMAND_QUERY_REDRAW:
tmp = needs_redraw
***************
*** 135,141 ****
def update_evas((width, height, aspect, buffer, unlock_cb), window):
! if window.movie.size_get() != (width, height):
print "RESIZE EVAS", aspect, width, height, window.movie.size_get()
window.movie.size_set( (width, height) )
w = min(window.get_size()[0], width)
h = int(w / aspect)
--- 141,148 ----
def update_evas((width, height, aspect, buffer, unlock_cb), window):
! if window.movie.size_get() != (width, height) or aspect !=
window.movie.aspect:
print "RESIZE EVAS", aspect, width, height, window.movie.size_get()
window.movie.size_set( (width, height) )
+ window.movie.aspect = aspect
w = min(window.get_size()[0], width)
h = int(w / aspect)
***************
*** 167,170 ****
--- 174,178 ----
win2.bg.layer_set(2)
win2.movie = win2.get_evas().object_image_add()
+ win2.movie.aspect = -1
win2.movie.alpha_set(True)
win2.movie.color_set(a=75)
***************
*** 192,197 ****
eq2 = x.post_init("eq2", video_targets =
[stream.deint_post.get_default_input().get_port()])
eq2.set_parameters(gamma = 1.2, contrast = 1.1)
! stream.get_video_source().wire(stream.deint_post.get_default_input())
! x.set_config_value("video.device.xv_colorkey", 1)
x.set_config_value("video.device.xv_autopaint_colorkey", True)
#for cfg in x.get_config_entries():
--- 200,206 ----
eq2 = x.post_init("eq2", video_targets =
[stream.deint_post.get_default_input().get_port()])
eq2.set_parameters(gamma = 1.2, contrast = 1.1)
! #stream.get_video_source().wire(stream.deint_post.get_default_input())
! stream.get_video_source().wire(eq2.get_default_input())
! x.set_config_value("video.device.xv_colorkey", 2110)
x.set_config_value("video.device.xv_autopaint_colorkey", True)
#for cfg in x.get_config_entries():
-------------------------------------------------------
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