Now I am trying to convert pixelBuffer to CIImage, but fails.
When pixelBuffer type is kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, the following code can be executed without errors.
let sourceImage = CIImage.init(cvPixelBuffer: imageBuffer, options: nil)
However when pixelBuffer type is kCVPixelFormatType_420YpCbCr8Planar, it fails.
The log is as follows.
[api] -[CIImage initWithCVPixelBuffer:options:] failed because its pixel format y420 is not supported.
Therefore, I want to know how to convert pixelBuffer type or to convert pixelBuffer(kCVPixelFormatType_420YpCbCr8Planar) to CIImage.
Please teach me.