- iOS 6.0+
- macOS 10.15+
- Mac Catalyst 13.0+
AVMetadataoriginating from the same
AVCaptureas the receiver.
The receiver's connection whose
AVCapturematches that of the metadata object to be converted.
AVMetadata whose properties are in output coordinates, or
metadata originates from an input source other than the preview layer.
This method converts the visual properties in the coordinate space of the supplied
AVMetadata to the coordinate space of the output. The conversion takes orientation, mirroring, and scaling into consideration and alters the visual properties of the provided metadata object to match the physical rotation and mirroring of the sample buffers provided by the receiver through the indicated connection.
This means that for video data output (
AVCapture), adjusted metadata object coordinates are rotated and mirrored. For still image (
AVCapture) and movie file (
AVCapture) output, they are not. Instead, the rotation and mirroring of the metadata object coordinates for these two types of output are determined on playback.