You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 invoking IDirect3DDevice9::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.
The question is: How do you use Slint with Angle? The answer is to build angle and place libEGL.dll and libGLESv2.dll` are in the library search path.
I've tried some of our examples with Angle on Windows and that was positive, but I've never tried the combination of angle with d3d11 backend, ffmpeg with d3d11 backend, and sharing textures. I'd be very interested in this if you manage to get it working :)
I used to decode video by ffmpeg, with the hardware acceleration platform D3D11/DVXA2. Both of the two can give raw texture ID3D11Texture2D/LPDIRECT3DSURFACE9.
As metioned above, I could use IDirect3DDevice9::Present() to render to a native window for the DXVA2 situation.
D3D11, however, I failed to use it to render the texture, with any way I tried.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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