digital zoom aka crop without scaling via setVideoZoomFactor

Hi there,

i need a digital zoom aka. crop at center without the post-scaling operation. Since i am running 3 different use-cases (preview, image analyzation and image capture) it is error-prone to do the cropping in those three different locations by myself and keep them in-sync. So my idea was to use existing digital zoom api with:

[_captureDevice setVideoZoomFactor:1.25];

This option seems to keep nicely the three use-cases in sync. But for my situation i can't use it that way since i need to ensure that the image is not scaled up after the crop. I was stumbling over this here: videoZoomFactorUpscaleThreshold https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1624638-videozoomfactorupscalethreshold?language=objc

No i am wondering if there is a possibility to still use setVideoZoomFactor but potentially disable the implicit scaling with something like videoZoomFactorUpscaleThreshold?

Does anyone know an easy camera api to get to just crop-without scale?

best, Christian

digital zoom aka crop without scaling via setVideoZoomFactor
 
 
Q