|
发表于 2014-12-24 17:23:42
只看该作者
沙发
楼主可以试一下这样改:
hardware/rk29/camera/CameraHal/CameraIspAdapter.cpp
@@ -1363,6 +1365,14 @@ void CameraIspAdapter::loadSensor( const int cameraId)
m_camDevice->getPreferedSensorRes(&resReq);
m_camDevice->setSensorResConfig(resReq.resolution);
+
+ mCamDrvWidth= ISI_RES_W_GET(resReq.resolution);
+ mCamDrvHeight= ISI_RES_H_GET(resReq.resolution);
+
setupPreview(mCamDrvWidth,mCamDrvHeight,DEFAULTPREVIEWWIDTH,DEFAULTPREVIEWHEIGHT,mZoomVal);
connectCamera();
mCamPreviewH = DEFAULTPREVIEWHEIGHT;
|
|