@dos I have feeling that you'll post few more advancements and then you'll disappear, with that code being gone forever. Probably abducted by aliens as that's clearly alien code :-).
Please publish it somewhere.... we don't want another "Fermat's last theorem" situation.
Also, yes, at 512x.. resolution, things are likely easier. I had a lot of fun trying to get gtk/gstreamer working, and while I got it to work _somehow_, I was not really able to understand/debug performance issues.