Updated CVPixelBuffer to support pixel format type of 32RGBA

This commit is contained in:
Prianka Liz Kariat 2023-05-04 18:58:49 +05:30
parent e47bb16544
commit 1136d4d515

View File

@ -162,6 +162,7 @@ using ::mediapipe::ImageFrame;
OSType pixelBufferFormat = CVPixelBufferGetPixelFormatType(pixelBuffer);
switch (pixelBufferFormat) {
case kCVPixelFormatType_32RGBA:
case kCVPixelFormatType_32BGRA: {
return [MPPCVPixelBufferUtils rgbImageFrameFromCVPixelBuffer:pixelBuffer error:error];
}