Guest User

Untitled

a guest
Jul 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. var buffer = vImage_Buffer(data: data, height: UInt(height), width: UInt(width), rowBytes: bytesPerRow)
  2.  
  3. let map: [UInt8] = [2, 1, 0, 3]
  4. vImagePermuteChannels_ARGB8888(&buffer, &buffer, map, 0)
Add Comment
Please, Sign In to add comment