Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, I want to creat a native window by slint and keep it in the slint ui.
I used to decode video by ffmpeg, which support DXVA2 hardwave acceleration. The output format is a
LPDIRECT3DSURFACE9
, which is a pointer to a surface. I could render it to a window or control directly by invokingIDirect3DDevice9::Present()
The para
hDestWindowOverride
is a native window handle in Windows, With this solution, the data is always kept in GPU memory.I'm not familiar with Linux, but it seems that Linux has similar window handle. Maybe the video could be rendered like the same approach.
I have read #977 . Slint could use OpenGL texture, but could all the list hardware decode ouput format could be convert to a OpenGL texture?
So, I suggest to add the ability to creat a native window by slint and keep it in the slint ui, so users could use the API of each decode platform the render their texture to the window.
Beta Was this translation helpful? Give feedback.
All reactions