Keep decode and encode on GPU
When using hardware NVIDIA encoding and decoding, keep the outputs / inputs on the GPU to reduce host to/from device transfers. Currently the video encoding goes to/from host memory but the data is sent back to the GPU.