Totally agree on my pull request, not suited for all(most?) cameras.
My understanding is that sarxos don't support higher resolution at all, unless you define them. At least that's what i understood from quick look at sarxos examples ad faq. I may be completely wrong.
My idea is to try defining "custom" resolutions and then running auto detect. I'll try it tomorrow afternoon, as now i left camera at workshop.
But before that I'll try your auto detection solution under Linux, Ubuntu and PureOs(both debian based).
As for now i can't even check benefits of higher resolution as my laser pointer is extremely noisy and line laser will twke 7-15 days to arrive, absolutely no pressure.