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.
我正在使用 NSOpenGLContext、OpenGL 和 Shader 渲染 YUV 帧,以在 GPU 上执行 YUV 到 RGB 的转换。
输出不是预期的。从下图看可能是什么问题?
在我看来,您上传的 YUV 纹理数据格式错误……至少偏移了大约 16 个字节(您是否不小心在原始 YUV 数据之前上传了标头?)。
看起来亮度本身的格式可能没问题,但是色度被解码错误。
希望这会有所帮助!