Hello Niklas
I been wrestling a while with this as I have no sensor where I could test it with I always put it off. May I ask what sensor and platform was used to test this?
We have used this with ov2311 (LI-OV2311-UB953, LI-OV2311-MAX9295) on: H3ULCB+KF+FPDLINK3/GMSL2 camera boards V3HSK+Cogent VideoBoxes (FPDLINK3, GMSL2). Also this code was included into Renesas BSP for a long time.
The code looks good and I truest that it's tested and produce a good image, one small nit below.
Will submit v2 in a moment. Nikita