use "return DctIPPLoop(src,dst,IPPDCTFunctor(ippFunc),inv)" instead of the unnecessary if statement.