diff --git a/packages/camera/ios/Classes/CameraPlugin.m b/packages/camera/ios/Classes/CameraPlugin.m index 42cdb6d5fdf9..c615f512896f 100644 --- a/packages/camera/ios/Classes/CameraPlugin.m +++ b/packages/camera/ios/Classes/CameraPlugin.m @@ -212,6 +212,9 @@ @implementation FLTCam { } // Format used for video and image streaming. FourCharCode const videoFormat = kCVPixelFormatType_32BGRA; +// Set videoFormat to kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange to output +// pixelbuffer in 420v format, the engine compiled with this PR(https://github.com/flutter/engine/pull/20082) can render 420v +//FourCharCode const videoFormat = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange; - (instancetype)initWithCameraName:(NSString *)cameraName resolutionPreset:(NSString *)resolutionPreset