a470 - clean up lib.c code: move non-firmware dependent functions out of sub, remove obsolete functions, correct comment on vid_get_viewport_live_fb