Writing YUV data into a CGContext
-
21-09-2019 - |
Question
How can I write a YUV frame data into a CGContext?
Solution
Convert it to RGB, then create a CGImage with it, then draw that into the context.
Alternatively, create a CGColorSpace that maps YUV into RGB, then create a CGImage with it, then draw that into the context. (I have no idea whether this is possible, but you may want to look into it.)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow