How to get a cropped sampleBuffer output from captureOutput delegate function?
I have a videoPreviewLayer that takes up the entire screen.
The AVCaptureSession() has an AVCaptureVideoDataOutput() that records video and provides access to video frames for processing and a AVCapturePhotoOutput() that gives a capture output for still image, Live Photos, and other photography workflows.