75前摄像头录像时上下拉伸
估计是尺寸没有设置成4:3
这个是怎么设置的?
getinfo的函数里可以设置的,你看看。
这个改上层改好了,Camera\src\com\android\camera\VideoCamera.java 里 readVideoPreferences 加上或打开以下段
mVideoSizeManager.getVideoSize(mProfile, mParameters.getSupportedPreviewSizes(), mOrientationCompensation);
//Mediatek compensate install orientation of sensor.
int camOri = CameraHolder.instance().getCameraInfo()[mCameraId].orientation;
if (camOri == 180 || camOri == 0) {
int temp = mProfile.videoFrameWidth;
mProfile.videoFrameWidth = mProfile.videoFrameHeight;
mProfile.videoFrameHeight = temp;
Log.d(TAG, "mProfile.videoFrameWidth: " + mProfile.videoFrameWidth + " mProfile.videoFrameHeight: " + mProfile.videoFrameHeight);
}
getDesiredPreviewSize();
//Mediatek modify to meet lower frame sensor
List<Integer> supportedFrameRates = mParameters.getSupportedPreviewFrameRates();
if (!isSupported(mProfile.videoFrameRate, supportedFrameRates)) {
int maxFrame = getMaxSupportedPreviewFrameRate(supportedFrameRates);
mProfile.videoBitRate = (mProfile.videoBitRate * maxFrame) / mProfile.videoFrameRate;
mProfile.videoFrameRate = maxFrame;
bitrateChanged = true;
}