Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var buffer = vImage_Buffer(data: data, height: UInt(height), width: UInt(width), rowBytes: bytesPerRow)
- let map: [UInt8] = [2, 1, 0, 3]
- vImagePermuteChannels_ARGB8888(&buffer, &buffer, map, 0)
Add Comment
Please, Sign In to add comment