Merge "Workaround for preview frame rate setting and encoder profile and level settings on passion 1. QCOM camera HAL does not honor the preview frame rate set request. see bug - 2701282 2. QCOM video encoder has lots of 0-length output buffers if the default level setting is changed. see bug - 2660974" into kraken

This commit is contained in:
James Dong
2010-05-20 12:18:39 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 4 deletions

View File

@ -584,8 +584,8 @@ status_t StagefrightRecorder::startMPEG4Recording() {
// Check on video frame rate
int frameRate = newCameraParams.getPreviewFrameRate();
if (frameRate < 0 || (frameRate - mFrameRate) != 0) {
LOGE("Failed to set frame rate to %d", mFrameRate);
return UNKNOWN_ERROR;
LOGE("Failed to set frame rate to %d fps. The actual "
"frame rate is %d", mFrameRate, frameRate);
}
CHECK_EQ(OK, mCamera->setPreviewDisplay(mPreviewSurface));

View File

@ -932,8 +932,6 @@ status_t OMXCodec::setupAVCEncoderParameters() {
h264type.bEnableFMO = OMX_FALSE;
h264type.bEnableASO = OMX_FALSE;
h264type.bEnableRS = OMX_FALSE;
h264type.eProfile = OMX_VIDEO_AVCProfileBaseline;
h264type.eLevel = OMX_VIDEO_AVCLevel1b;
h264type.bFrameMBsOnly = OMX_TRUE;
h264type.bMBAFF = OMX_FALSE;
h264type.bEntropyCodingCABAC = OMX_FALSE;