[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Phonon::VideoWidget embedded inside a QGraphicsProxyWidget
From: Reza Shah <rshah0385 () kireihana ! com>
Date: 2010-03-27 0:18:50
Message-ID: 962cb4a51003261718q477de53dobc67a2d433b49fc2 () mail ! gmail ! com
[Download RAW message or body]
On Sat, Mar 27, 2010 at 3:03 AM, Alessandro Diaferia
<alediaferia@gmail.com> wrote:
> As you currently may be aware of, embedding a Phonon::VideoWidget inside a
> QGraphicsProxyWidget causes the video appealing awfully while playing.
Does this because of high CPU usage?
I played sometime ago with videowidget(gstreamer backend).
I tried image scaling inside VideoWidget::setNextFrame(), instead of
doing it inside paint method ( i mean inside QPainter->drawImage).
Something like this:
m_frame = QImage((uchar *)array.constData(), w, h, QImage::Format_RGB32);
m_frame = m_frame.scaled(640,480);//target size
This helped me to reduce CPU usage, but not sure if it has bad
implication or not (tested using webcam)
--
Reza
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic