How to convert BGRA to RGBA in Xamarin.iOS?
问题 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