Affine Transformation and Sobel Filter using multithreaded C code for OpenCV on an MPEG2 video