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
(I reposted this question in the WindowsUIDevLabs repo, which might be a more appropriate place for it.)
I'm using MediaCapture in a UWP app to get a video stream from a camera with the intent to simultaneously record it and live stream it. For sports, I'd like to overlay scoreboard information that I've laid out using XAML controls.
I plan to use either the D3D11 video APIs or a custom video effect (and Win2D if applicable) to do the overlay in real-time. However, both of those techniques require the overlay to be in a DXGI surface and I can't figure out how to efficiently render the XAML tree into one. The best approach I've seen is to use RenderTargetBitmap and then copy the bits to the CPU before pushing them back into DXGI. That seems horribly inefficient.
XamlUIPresenter is not intended for general Microsoft DirectX and Windows Runtime interoperation scenarios. You cannot use this API in a UWP app that you submit to the Microsoft Store, it will not pass certification.
Is there a way to do this with supported APIs entirely in video memory without the round trip to the CPU?
Thanks.
The text was updated successfully, but these errors were encountered:
This is not specifically a Win2D question, and it looks like you got some answers over in the WindowsUIDevLaps repo, so I'm going to close the issue here.
(I reposted this question in the WindowsUIDevLabs repo, which might be a more appropriate place for it.)
I'm using
MediaCapture
in a UWP app to get a video stream from a camera with the intent to simultaneously record it and live stream it. For sports, I'd like to overlay scoreboard information that I've laid out using XAML controls.I plan to use either the D3D11 video APIs or a custom video effect (and Win2D if applicable) to do the overlay in real-time. However, both of those techniques require the overlay to be in a DXGI surface and I can't figure out how to efficiently render the XAML tree into one. The best approach I've seen is to use
RenderTargetBitmap
and then copy the bits to the CPU before pushing them back into DXGI. That seems horribly inefficient.XamlUIPresenter
looks like it would be perfect butIs there a way to do this with supported APIs entirely in video memory without the round trip to the CPU?
Thanks.
The text was updated successfully, but these errors were encountered: