p.setRotation(90);在相机参数那里加上这句代码试试?或者在相机初始化时调用setDisplayOrientation方法.
在设置Camera参数那里加一句mCamera(你自己取的名字).setDisplayOrientation(90);