Author: dmeyer
Date: Fri Dec 22 17:48:56 2006
New Revision: 2280
Modified:
trunk/popcorn/src/backends/gstreamer/child.py
Log:
some aspect test code
Modified: trunk/popcorn/src/backends/gstreamer/child.py
==============================================================================
--- trunk/popcorn/src/backends/gstreamer/child.py (original)
+++ trunk/popcorn/src/backends/gstreamer/child.py Fri Dec 22 17:48:56 2006
@@ -130,6 +130,22 @@
vo = gst.element_factory_make("xvimagesink", "vo")
vo.set_xwindow_id(long(kwargs.get('window')))
vo.set_property('force-aspect-ratio', True)
+
+ # Aspect test code. We can't deal with float here,
+ # it has to be integer values. As input we need the
+ # screen resolution (window doesn't count) and the
+ # aspect of the monitor/tv this fullscreen is visible.
+ # fullscreen = 800, 600
+ # display_aspect = 16, 9
+ #
+ # # calculations
+ # xaspect = display_aspect[0] * fullscreen[1]
+ # yaspect = display_aspect[1] * fullscreen[0]
+ # vo.set_property('pixel-aspect-ratio', '%s/%s' % (xaspect,
yaspect))
+ #
+ # For popcorn we should either get both values to the player
+ # (xaspect, yaspect) or both variables. The later is much easier
+ # for the user to configure.
goom = gst.element_factory_make("goom", "goom0")
self._gst.set_property('vis-plugin', goom)
elif driver == 'none':
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog