代码如下 //有用的API函数 size_t width = CVPixelBufferGetWidth(pixelBuffer); size_t height = CVPixelBufferGetHeight(pixelBuffer); OSType pixeltype = CVPixelBufferGetPixelFormatType(pixelBuffer); bool isPlanar = CVPixelBufferIsPla