urhosharp

How to convert BGRA to RGBA in Xamarin.iOS?

 ̄綄美尐妖づ 提交于 2019-12-24 07:29:55
问题 I am using AVFoundation to get real-time frames from camera and display to the UrhoSharp. However, seems the Texture2D in UrhoSharp is not support the BGRA from AVVideoOutput. So I want to convert the "CVPixelBuffer" to RGB format. I found there is an API in vImage "vImagePermuteChannels_ARGB8888", which can convert the BGRA to ARGB but this is not provided by Xamarin. So how to solve this problem? 回答1: The Accelerate.framework consists of C functions, so: vImage_Error vImagePermuteChannels

UrhoSharp.Forms on UWP - unable to load dll 'mono-urho'

五迷三道 提交于 2019-12-12 20:35:14
问题 I'm trying to use Xamarin.Forms to embed a Urho-application with some generic UI, defined in a portable project. It's working on Android, so that's nice! The Xamarin UrhoSharp Feature samples work for UWP, but the UI isn't cross-platform there, so I'd like to avoid that if possible. On UWP x86/32-bit, which seems to be the only supported config (?), I get this exception: "Unable to load DLL 'mono-urho': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" at Urho.Sdl