Posting a diff with r4682 for @reyalp to commit. Supports Live View.
Will rebuild distributions again and update links once committed.
Thanks, checked in. One comment regarding the vid_*_offset functions.
Since we are currently making CHDK dimensions equal to real dimensions for D6, the _proper variants should not be *2. This may mean that the vp_xo values need to be changed, but I suspect the current values are not right anyway, because Y uses the same offset array as X.
You should be able to check these in PTP live view: If you change the image aspect ratio (probably only available with canon RAW disabled) the letterboxing in the chdkptp display should match the camera screen.
viewport_yoffset is used when the letter box image is offset from the normal start of the buffer. Cameras like the G7X always put the image in the top left of the buffer, so these are 0.
viewport_display_*offset is used when the image is offset on the screen while the buffer address is unchanged.
These are all fairly cosmetic, but if they aren't implemented, they should just return 0.