MT6575 平台 android 4.0版本 改成1024x600的平板模式
进camera预览图像横向拉伸
解决方案:
1. 若 camera旋转了90°,修改 mediatek/custom/xxxx/hal/camera/camera/Cfg_tuning_mt6575.h 文件里
getSensorOrentation()
{
static SensorOrientation_T inst ={
u4Degree_0 : 90,
u4Degree_1: 0,
}
}
.............
2. packages/apps/Camera/src/com/android/camera/camera.java
在方法private void updateCameraParametersPreference() 中
if (mMeteringAreaSupported) {
// Use the same area for focus and metering.
mParameters.setMeteringAreas(mFocusManager.getMeteringAreas());
}
int camOri = CameraHolder.instance().getCameraInfo()[mCameraId].orientation;
// Vincent.Yu modify for p507 20121213
if(camOri == 0 || camOri