Page 1 of 1

How hardware acceleration works on UWP?

Posted: 22 Feb 2021 10:21
by TommyVCT
Hi everyone,

Recently I got a Surface Pro X, and I ported OBS Studio to Windows on ARM, most of the thing works fine, except for hardware encoding. I'm trying to find some reference code to implement that feature.

To make it work, I have 2 so far so vague approaches:
1. Let Windows to work with FFmpeg handle it (maybe dxva2, have no idea where to start, UWP VLC code maybe a good start point, but still no idea where to start)
2. Use the Qualcomm Adreno SDK (They claim they support DirectX, but the video codec sample is android only, maybe possible to make use of it)

I tried the win32 VLC for Windows on ARM, the hardware decoding didn't work. Then I tried the UWP version of VLC, the hardware decoding worked just fine.

How does video hardware acceleration work on the UWP builds? And how much can I take from here to OBS Studio?

Re: How hardware acceleration works on UWP?

Posted: 24 Feb 2021 01:43
by mfkl
How does video hardware acceleration work on the UWP builds?
The same as with win32 mostly. Have a look at this https://code.videolan.org/videolan/vlc- ... ce.cs#L332