I have a camera app which shows a video preview in a AVCaptureVideoPreviewLayer
instance, which includes a CGRect (for example a frame around the user). This layer has the same size as the UIView
which contains the layer (for instance 667x375).
How do I translate the CGRect
from the layer's coordinate space to the image output?