resize on gpu
buffer outside gstreamer
don't repeat yourself