Example #1
0
        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);
        }
Example #2
0
 public static FrameCapturer WithConfiguration(FrameCapturerConfig config) => new FrameCapturer(config);
Example #3
0
 private FrameCapturer(FrameCapturerConfig config)
 {
     this.config = config;
     PrepareCaptureSession();
 }