We are calling function vImageScale_Planar8
to downsample an image. On iOS 16, this function is crashing when camera orientation changes (something is changing underlying memory representation of CVPixelBuffer
object).
On orientation change, we are setting output AVCaptureConnection
objects' orientation property.
On iOS 15, the same code works perfectly.