Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 YUV 帧数据写入 CGContext?
将其转换为 RGB,然后用它创建一个 CGImage,然后将其绘制到上下文中。
或者,创建一个将 YUV 映射到 RGB 的 CGColorSpace,然后用它创建一个 CGImage,然后将其绘制到上下文中。(我不知道这是否可能,但你可能想调查一下。)