I have android studio app and I need to access the camera and do some real-time processing to the video frames. I have tried to use onCameraFrame() method, the problem is that the process I do to the frames is heavy, so I want to reduce the frame size to save some time. How can I do this inside the onCameraFrame() method? Or if anyone knows another solution that helps?