Nice work 😁
Some random initial thoughts:
It might be useful to allow capture without saving the image at all (which I guess would happen if CHDK raw/DNG not enabled), for raw metering or other analysis on full res raw data. If the buffer gets clobbered after the shot (e.g. by live view) that could be an issue. To avoid that, the MenuOut might need to be under script control
I suspect the shoot_hook call doesn't really make sense, since shooting_shoot_frsp appears to take place entirely in kbd_task
Another potentially interesting question is what the latency is between calling frsp_shoot and the actual exposure.
edit:
g7x values
NHSTUB(DoMovieFrameCapture ,0xfc172521) // via "CapError : %ld\n" @fc4eebe0
NHSTUB(MenuIn ,0xfc284025)
NHSTUB(MenuOut ,0xfc284049)
DEF_CONST(frsp_buf ,0x4427bfa0) // @fc4f1d9c
DEF_CONST(frsp_param ,0x00000001)
DEF_CONST(frsp_argcnt ,0x00000002)
I'll look into adding this stuff to finsig_thumb2.