Hi,
Are there any examples of how to use the new gui buffer that has full color with alpha? It occurs to me that (for Digic6) edgeoverlay could be replaced by a function that overlays a previous image (shifted) into the gui at (say)50%alpha with the current record output.
On g7x, the GUI buffer is in exactly the same format as as the viewport. The alpha buffer is just a separate 8 bit opacity (0=transparent, 255 = fully opaque). So in principle, you could just dump the viewport to a file and load it later.
Both are defined in lib.c, and you can see examples of accessing them in gui_draw.c.
However, it would need to be updated every time the display updates, and you would want both the canon and CHDK ui to appear on top of it. Keeping a full copy of your overlay loaded would take up a lot of RAM too.
Having a full color UI opens up a lot of possibilities, but making it play nice with the existing code and not break the portability of CHDK is going to take some thought and effort.
Another question: How do people typically track down recreview_hold? Are there special tools?
My usual approach for most of these things is to look for references in known ports and find equivalent code.