Image Processing – Is it possible on Android to achieve very high resolution and very low resolution video capture using the Camera2 API?

I am currently trying to find ways to materialize an idea of ​​application. I have basic coding experience and have only had a brief history of Android in the past. I may not be able to do it myself at the moment, but I want to know what is possible.

I have to collect information using the smartphone camera. The sensor is of course a CMOS using an electronic shutter, which "opens" then "closes" the "shutter window" that goes from one side to the other, sweeping the pixels line by line.

My first idea, which could be the most effective if possible to program, was to use the time shift between the first and the last pixel of the photo caused by the scrolling shutter effect. The problem is that the default shutter is probably programmed to run as fast as possible to reduce artifacts and delays, and I need this shutter to roll for a significant part of the second, while ensuring that there is no line of pixels is scanned simultaneously. I do not know if it is possible, thanks to the programming using the camera's API, to set the "scrolling speed" (I'm not sure of the correct term) of the trigger; it is obviously not necessary [i]more[/i] sensor hardware to work slower, but if this parameter is incorporated by the hardware, welp …

The second idea would require the ability to record video information at very high speeds, from several thousand to perhaps 10,000 images per second; now, I do not need significant resolution for this, so I thought I would do something like save and process only a few hundred pixels (about 20 x 20) at the center of the sensor. I have read information on the use of a lower part of a CMOS sensor to get a higher SPF, but I do not know if such a system is available. Nowadays, any average smartphone can record in 1080p at 30 frames per second, and 400 pixels at 10,000 frames per second corresponds to about / 5,000 times the amount of pixels at a resolution of 3333 frames per second .

It may be a programming subject too obscure, but if anyone here is aware of these things, help me please.

Thank you in advance.