1208 commit

fix camera bug.

modify getmaxdowncode algorithm