added libav test and linking. Added median filter structure