Updated CVPixelBuffer to support pixel format type of 32RGBA
This commit is contained in:
parent
e47bb16544
commit
1136d4d515
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user