refator for API test--prepareEncDecParam and EncodeOneFrame

test result: https://travis-ci.org/shihuade/openh264