I've been fiddling with autoexec.ash commands since my last post here, but without any succes regarding resolution improvement. It was a very slow process as I couldn't get a direct shell to camera (Ambsh shell). it's maybe possible to get the direct shell with a serial console connection to ttyS0 or ttyS1 from the 192.168.1.10 system
Here is my finding till now :
- The ambarella chip is A5S and the sensor is Aptina MT9F002 (found while reading strings in PRI.bin and some debug output commands)
Sensor datasheet here :
https://www.aptina.com/assets/downloadDocument.do?id=1093 (very interesting reading)
- The A5s is not capable of 1080p@60 according to the datasheet
- The sharpness setting is indeed controlled by the t ia2 -adj tidx command, the lower the value the more sharpness you get.
- Many of the warp and lens commands didn't do anything
- Digital zoom is possible with t ia2 -adj jump command, but it is useless
There is definitly something different between the narrow and wide field in 1080p. The narrow field of view seems to get more internal resolution to work with before processing by the DSP and also the "binning" process is different. This is confirmed by looking at the debug ouput of the "dmesg dsp_debug" and "t sensor -brief" commands in autoexec. Here is some outputs :
Wide fov "t sensor -brief" :
binning_status: 1
Narrow fov "t sensor -brief" :
binning_status: 0
Wide fov "dmesg dsp_debug -50" :
....
[code:th1:8553] video_process cfg actual
VIDEO_PROCESS_WIN_GET_ACT_WIN_HEIGHT 1088 VIDEO_PROCESS_WIN_GET_ACT_WIN_WIDTH 1920
...
[code:th1:8556] capture_calc_cfa_output_for_zooming: *p_cfaOutputNumRows is 1088
[code:th1:8557] capture_calc_cfa_output_for_zooming: *p_cfaOutputNumCols is 1920
Narrow fov "dmesg dsp_debug -50" :
....
[code:th1:9651] video_process cfg actual
VIDEO_PROCESS_WIN_GET_ACT_WIN_HEIGHT 1296 VIDEO_PROCESS_WIN_GET_ACT_WIN_WIDTH 2304
....
[code:th1:9654] capture_calc_cfa_output_for_zooming: *p_cfaOutputNumRows is 1296
[code:th1:9655] capture_calc_cfa_output_for_zooming: *p_cfaOutputNumCols is 1920
So this why 1080p Wide fov looks jaggy, there is some scaling wich is not right.
The thing now is that I don't have any clue on how to change these values...I'm not an experienced programmer. Maybe there is some sort of resolution table with parameters like for the bitrate table, thant can be changed directly in the firmware or with the wirtew and writeb commands, but I don't know where to look....
Here is a link to many of the autoexec commands output :
https://drive.google.com/open?id=0B4TnoBfvvkIoa1FIaTlJd0ZrYXc
Sorry for the long post.