문제

How can I write a YUV frame data into a CGContext?

도움이 되었습니까?

해결책

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.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top