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:
@@ -584,8 +584,8 @@ status_t StagefrightRecorder::startMPEG4Recording() {
|
|||||||
// Check on video frame rate
|
// Check on video frame rate
|
||||||
int frameRate = newCameraParams.getPreviewFrameRate();
|
int frameRate = newCameraParams.getPreviewFrameRate();
|
||||||
if (frameRate < 0 || (frameRate - mFrameRate) != 0) {
|
if (frameRate < 0 || (frameRate - mFrameRate) != 0) {
|
||||||
LOGE("Failed to set frame rate to %d", mFrameRate);
|
LOGE("Failed to set frame rate to %d fps. The actual "
|
||||||
return UNKNOWN_ERROR;
|
"frame rate is %d", mFrameRate, frameRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK_EQ(OK, mCamera->setPreviewDisplay(mPreviewSurface));
|
CHECK_EQ(OK, mCamera->setPreviewDisplay(mPreviewSurface));
|
||||||
|
|||||||
@@ -932,8 +932,6 @@ status_t OMXCodec::setupAVCEncoderParameters() {
|
|||||||
h264type.bEnableFMO = OMX_FALSE;
|
h264type.bEnableFMO = OMX_FALSE;
|
||||||
h264type.bEnableASO = OMX_FALSE;
|
h264type.bEnableASO = OMX_FALSE;
|
||||||
h264type.bEnableRS = OMX_FALSE;
|
h264type.bEnableRS = OMX_FALSE;
|
||||||
h264type.eProfile = OMX_VIDEO_AVCProfileBaseline;
|
|
||||||
h264type.eLevel = OMX_VIDEO_AVCLevel1b;
|
|
||||||
h264type.bFrameMBsOnly = OMX_TRUE;
|
h264type.bFrameMBsOnly = OMX_TRUE;
|
||||||
h264type.bMBAFF = OMX_FALSE;
|
h264type.bMBAFF = OMX_FALSE;
|
||||||
h264type.bEntropyCodingCABAC = OMX_FALSE;
|
h264type.bEntropyCodingCABAC = OMX_FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user