QCamera2: HAL: Changes to fix batch mode recording issue.
Batch mode video processing was broken on latest builds. Batch mode enabled and verified with media extension now. CRs-Fixed: 1013704 Change-Id: Ifb34a9c201f39591ab5d6a8aa70125ca7cad3f4f
This commit is contained in:
parent
6fb4d87d52
commit
665ea6feed
2 changed files with 7 additions and 6 deletions
|
@ -779,9 +779,8 @@ void QCamera2HardwareInterface::release_recording_frame(
|
|||
LOGD("E camera id %d", hw->getCameraId());
|
||||
|
||||
//Close and delete duplicated native handle and FD's.
|
||||
if (hw->mVideoMem != NULL) {
|
||||
ret = hw->mVideoMem->closeNativeHandle(opaque,
|
||||
hw->mStoreMetaDataInFrame > 0);
|
||||
if ((hw->mVideoMem != NULL) && (hw->mStoreMetaDataInFrame)) {
|
||||
ret = hw->mVideoMem->closeNativeHandle(opaque, TRUE);
|
||||
if (ret != NO_ERROR) {
|
||||
LOGE("Invalid video metadata");
|
||||
return;
|
||||
|
@ -2823,7 +2822,10 @@ QCameraMemory *QCamera2HardwareInterface::allocateStreamBuf(
|
|||
}
|
||||
videoMemory->setVideoInfo(usage, fmt);
|
||||
mem = videoMemory;
|
||||
mVideoMem = videoMemory;
|
||||
if (!mParameters.getBufBatchCount()) {
|
||||
//For batch mode this will be part of user buffer.
|
||||
mVideoMem = videoMemory;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CAM_STREAM_TYPE_CALLBACK:
|
||||
|
|
|
@ -1628,8 +1628,7 @@ int QCameraVideoMemory::closeNativeHandle(const void *data, bool metadata)
|
|||
return BAD_VALUE;
|
||||
}
|
||||
} else {
|
||||
LOGE("Not of type video meta buffer. Failed");
|
||||
return BAD_VALUE;
|
||||
LOGW("Warning: Not of type video meta buffer");
|
||||
}
|
||||
#endif
|
||||
return rc;
|
||||
|
|
Loading…
Reference in a new issue