When capturing a photo using AVFoundation classes stains appear on certain areas of the image.
Happens on iOS 14.4, iPhone 12 Pro. I managed to reproduce it using different custom ISO and exposure time settings and using the default auto setting. Both for single photo and bracket captures. Both with maxPhotoQualityPrioritization set to quality and to balanced. Both with ultra wide angle and wide angle cameras.
It's not deterministic. Seems like it is most prominent in images with high light contrast and different light sources (where the natural light mixes with artificial light and some areas are more lit than others). Also more prominent when capturing multiple images using bracket settings with both negative and positive exposure biases. example image
Does anybody know any fix or a workaround for this?