[rbp] Initial hacking aimed at getting hw accelerated resampling working

Not complete!
Starting to work...
Tidy up