I am wondering if hardware acceleration is possible?

Asked by Vanishing

I am wondering if hardware acceleration is possible?

Question information

Language:
English Edit question
Status:
Solved
For:
Pipelight Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Müller
Solved:
Last query:
Last reply:
Revision history for this message
Michael Müller (mqchael) said :
#1

You must distinguish between two type of hardware acceleration: video decoding and the actual display of the video data. Silverlight does support GPU video decoding for h264 and acceleration of video output for all kind of graphics.

It is very unlikely that you will get hardware acceleration for h264 decoding since this is also on linux quite complicated (different libraries with their own interfaces for different drivers), but the chances that we get acceleration for the actual video output are quite good. Silverlight uses Direct3D (DirectX) for accelerated video output and the Direct3D -> OpenGL translation layer of Wine is quite in a good shape. There is currently a bug in Wine which causes a deadlock when enabling video acceleration which was also reported to Wine as you can see here: http://bugs.winehq.org/show_bug.cgi?id=34252 . I think if this bug gets fixed by some wine developer we might be able to enable hardware acceleration on the next release. This should also decrease the CPU usage as Silverlight does not need to convert the YUV video data to RGB and we should get rid of tearing since we can wait for the V Sync of the display.

But as none of us is involved in the Wine DirectX part it unlikely that we can provide a fix soon if the Wine developers don't pay attention to the bug.

Revision history for this message
Best Michael Müller (mqchael) said :
#2

Okay, i need to revise my previous answer as I just found the bug which prevented video output hardware acceleration from working. You can see a screenshot of it in my Google+ post https://plus.google.com/114570320736021059120/posts/HWxDrRS7ATu if you want. This will most likely be a feature of the next Pipelight release, so you just need to wait a bit.

Michael

Revision history for this message
Vanishing (vanishing) said :
#3

Oh wow..I really appreciate this!

Thank you for your hard work man!

Revision history for this message
Vanishing (vanishing) said :
#4

Thanks Michael Müller, that solved my question.