Open zhihanhe opened 8 years ago
Look: https://developer.apple.com/library/content/qa/qa1781/_index.html (Technical Q&A QA1781). It may help (for example, important note contains text: "You cannot use CVPixelBufferCreateWithBytes() or CVPixelBufferCreateWithPlanarBytes() with kCVPixelBufferIOSurfacePropertiesKey.").
Hi everybody,
I want to send filtered CVPixelBufferRef to Server.GPUImageVideoCamera just filter in local. So I add GPUImageRawDataOutput to send to Server.The sample code in swift is:
this code run in iOS9 is very good.But run in iOS8 is a green pictures and output error:
"initWithCVPixelBuffer failed because the CVPixelBufferRef is not IOSurface backed."
I have add "kCVPixelBufferIOSurfacePropertiesKey" but It's still not work in iOS8. Any ideas?
Thanks!