public ViewController(IntPtr handle) : base(handle) { var config = new FrameCapturerConfig() { LayerGravity = AVLayerVideoGravity.ResizeAspect, Device = AVCaptureDevice.GetDefaultDevice(AVMediaTypes.Video), PixelFormat = CVPixelFormatType.CV422YpCbCr8, FrameQualityPreset = AVCaptureSession.PresetHigh, }; capturer = FrameCapturer.WithConfiguration(config); }
public static FrameCapturer WithConfiguration(FrameCapturerConfig config) => new FrameCapturer(config);
private FrameCapturer(FrameCapturerConfig config) { this.config = config; PrepareCaptureSession(); }