Silence-GitHub / BBMetalImage

A high performance Swift library for GPU-accelerated image/video processing based on Metal.
MIT License
989 stars 126 forks source link

is there a way to make a camera with 1:1 ratio frame? #83

Closed JamesJunsungKim closed 3 years ago

JamesJunsungKim commented 3 years ago

Hello, thank you a lot for this awesome framework. I was curious if there is a way to make a camera with a 1:1 ratio frame?

thank you in advance!

Silence-GitHub commented 3 years ago

Please see https://github.com/Silence-GitHub/BBMetalImage/issues/30#issuecomment-594066056

JamesJunsungKim commented 3 years ago

It's not just about the frame size but I believe the camera ratio? is different. when the ratio is 16:9 by default, it's more slender and when it's 1:1 ratio in the default ios camera app, it contains more of the side areas.

based on your response, I assume there is no other way but cropping it to square size which means no different camera ratio.

is that correct?

thanks.

Silence-GitHub commented 3 years ago

As far as I know, there is no way to set the camera ratio 1:1. So we need to crop.