Need help scaling AVFoundation

I read the AVFoundation docs and I just couldn't find any API for the camera zoom function.

Can someone give me any directions on where to look for information?

Thanks!

+4
source share
1 answer

There is no hardware scaling for any current (and previous) versions of iPhone / iPad / iPod. You can achieve software by increasing the pair differently. Probably the easiest way would be to use the transform property of the view layer and set it as something like CGAffineTransformMakeScale (2.0f, 2.0f). Then you can copy to the appropriate region.

+1
source

Source: https://habr.com/ru/post/1347143/


All Articles