home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1121452" data-attributes="member: 48495"><p>Please look at: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L39" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L39</a>.</p><p></p><p>Try this pixel format and this <a href="https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L82-L86" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L82-L86</a> to create the bitmap.</p><p></p><p>While collecting the info, it would be even easier for you to use the inbuild routines of ContentManager:</p><p></p><p>(see EvrCallback as example)</p><p>[CODE=CSHARP] _bitmapAsset2D = ContentManager.Instance.GetRenderTarget2D(_instanceKey);</p><p> ((RenderTarget2DAsset)_bitmapAsset2D).AllocateRenderTarget(cx, cy);[/CODE]</p><p>_instanceKey is a unique string (like AtmoWinCapture) and cx, cy defines width/height. Good thing here is, that you don't need to care about releasing this asset manually, it's done by MP2.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1121452, member: 48495"] Please look at: [url]https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L39[/url]. Try this pixel format and this [url]https://github.com/MediaPortal/MediaPortal-2/blob/FEAT_DX11_D2D_v2/MediaPortal/Source/UI/SkinEngine/ContentManagement/AssetCore/RenderTarget2DAssetCore.cs#L82-L86[/url] to create the bitmap. While collecting the info, it would be even easier for you to use the inbuild routines of ContentManager: (see EvrCallback as example) [CODE=CSHARP] _bitmapAsset2D = ContentManager.Instance.GetRenderTarget2D(_instanceKey); ((RenderTarget2DAsset)_bitmapAsset2D).AllocateRenderTarget(cx, cy);[/CODE] _instanceKey is a unique string (like AtmoWinCapture) and cx, cy defines width/height. Good thing here is, that you don't need to care about releasing this asset manually, it's done by MP2. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
Top
Bottom