add encode test. add recursion test, you can test h264,vp8,jpg decode and h264 encode one time.