Now I take advantage of AVFoundation framework to get the photograph output, however the picture side ratio is 4:3. However in keeping with the Digicam app within the iPhone 13 Professional, it has server picture side ratio: 4:3, 16:9 and 1:1 when take the proraw picture. So how can I get the 1:1, 16:9 side ratio proraw picture?
After I perform a little research, I discover that irrespective of you employ which sorts of digicam within the iPhone 11, 12, 13, 14, 15 or Professional, the consequence picture is at all times 4:3, 1:1 and 16:9 come from the 4:3 cropping. Whether it is true, how can I crop the proraw file with none information lossing?
My developer setting:
iPhone 13 Professional
iOS 16.7
xcode 14.3.1
That is the session configuration and gadget output code for the digicam.
https://gist.github.com/qihuijia/5fc78cdd6cece965929e5995713f0ac9
After I attempted it, the consequence picture side ratio continues to be 4:3