Implementing OpenCV GPU functions to manipulate video