Writing YUV data to CGContext
How can I write YUV frame data to CGContext?
+2
ReachConnection
source
to share
1 answer
Convert it to RGB, then create a CGImage with it, then paint it in context.
Alternatively, create a CGColorSpace that maps YUV to RGB, then create a CGImage with it and then draw that in context. (I have no idea if this is possible, but you can look at it.)
+1
Peter hosey
source
to share