YUV420p的数据想要在IOS中显示,转CIImage总是返回nil 问题未解决,这里记录下

H264编码的数据,想显示,应该都要转为CVPixelBufferRef(使用CVPixelBufferCreateWithPlanarBytes),这一个是成功的,但是有由CVPixelBufferRef转CIImage总是返回nil,查相关帖子http://stackoverflow.com/questions/15316534/cvpixelbuffer-to-ciimage-always-returning-nil  http://stackoverflow.com/questions/10168746/initwithcvpixelbuffer-failed-because-the-cvpixelbufferref-is-not-non-iosurface-b   http://stackoverflow.com/questions/15258290/how-to-convert-an-ffmpeg-avframe-in-yuvj420p-to-avfoundation-cvpixelbufferref/15262718#15262718 后没有解决,这里记录下吧,下周继续

下班回家

你可能感兴趣的:(YUV420p的数据想要在IOS中显示,转CIImage总是返回nil 问题未解决,这里记录下)