My app uses the camera, and it processes every frame, looking for some elements inside the image (such as faces).
When I find something on the image, I want to draw on the screen showing the video using drawRect:(CGRect)rect
of custom view.
I'm not drawing only rectangles, and I'm not using GPU and GLKView. When I run video frames with 1920*1080 I can draw the exact location by dividing screen width and height with video frame size.
However when I change to 480*360 video resolution, the elements are not drawn at the correct location, I believe due to aspect ratio differences. Any idea what conversion I need to do here, perhaps AffineTransfrom?