Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

ios camera takes advantage of NV12 pixelbuffer #2905

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/camera/ios/Classes/CameraPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down