[Pkg-sugar-commit] [sugar-jukebox-activity] 04/10: Remove "capsfilter" filter because of performance
Jonas Smedegaard
dr at jones.dk
Sat Jun 27 01:57:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v26.1
in repository sugar-jukebox-activity.
commit 91c207c189bbd346c3ed6192b7f1e67225354fad
Author: Manuel Kaufmann <humitos at gmail.com>
Date: Mon Aug 27 10:25:59 2012 -0300
Remove "capsfilter" filter because of performance
Without this filter the performance to reproduce videos is great and
in audio files the visualization performance is improved as well. The
only consequense is the text (artist, track, etc) is rendered without
antialiasing.
Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
---
jukeboxactivity.py | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index c310f9d..bfbdb1a 100644
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -770,22 +770,6 @@ class GstPlayer(gobject.GObject):
self.bin.add_pad(ghostpad)
videoscale.set_property("method", 0)
- caps_string = "video/x-raw-yuv, "
- r = self.videowidget.get_allocation()
- if r.width > 500 and r.height > 500:
- # Sigh... xvimagesink on the XOs will scale the video to fit
- # but ximagesink in Xephyr does not. So we live with unscaled
- # video in Xephyr so that the XO can work right.
- w = 480
- h = float(w) / float(float(r.width) / float(r.height))
- caps_string += "width=%d, height=%d" % (w, h)
- else:
- caps_string += "width=480, height=360"
- caps = gst.Caps(caps_string)
- self.filter = gst.element_factory_make("capsfilter", "filter")
- self.bin.add(self.filter)
- self.filter.set_property("caps", caps)
-
textoverlay = gst.element_factory_make('textoverlay')
self.overlay = textoverlay
self.bin.add(textoverlay)
@@ -793,7 +777,7 @@ class GstPlayer(gobject.GObject):
self.bin.add(conv)
videosink = gst.element_factory_make('autovideosink')
self.bin.add(videosink)
- gst.element_link_many(videoscale, self.filter, textoverlay, conv,
+ gst.element_link_many(videoscale, textoverlay, conv,
videosink)
self.player.set_property("video-sink", self.bin)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-jukebox-activity.git
More information about the pkg-sugar-commit
mailing list