The documentation states that the first element in the AVCaptureVideoDataOutput.availableVideoCVPixelFormatTypes
array is the most efficient pixel format to use (i. e. it means no further conversion work).
I'm planning to use Metal
in order to manipulate CMSampleBuffer
video output.
Bottom line,
Would it make more sense to setup the capture session to deliver sample buffers as BGRA(kCVPixelFormatType_32BGRA
) or does the YCbCr(kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
) to RGB conversion deliver better performance when using metal?