Plasma::Wallpaper does software scaling/copying when it isn't necessary
velociraptor Genjix
aphidia at hotmail.com
Sun Jul 11 18:44:50 CEST 2010
See the conversation http://kde-look.org/content/show.php?content=112105&forumpage=4 titled "Phonon video backend?"
I do the scaling using hardware acceleration but Plasma::Wallpaper requires me to still copy this array with slow software acceleration. If the format is correct then just give me the target X surface. KDE insists on drawing it's own wallpaper on top though.
So this is a problem with plasma- is there a workaround or a hack?
void VideoWallpaper::paint(QPainter *painter, const QRectF&){ // ... const QImage imag(frame->data[0], codec_ctx->width, codec_ctx->height, frame->linesize[0], QImage::Format_RGB32); painter->drawImage(boundingRect(), imag); // ...}
It would run ALOT faster if there was a way to disable KDE4 rendering a wallpaper or be allowed to render directly to that wallpaper. A video wallpaper should be as natural as an image or colour in today's world.
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100711/afa5a317/attachment.htm
More information about the Plasma-devel
mailing list