Lines Matching refs:captureRequest

3517         nextRequest.captureRequest->mSettingsList.begin()->metadata.unlock(  in updateNextRequest()
3521 cleanupPhysicalSettings(nextRequest.captureRequest, &halRequest); in updateNextRequest()
3603 captureRequest->mSettingsList.begin()->metadata.find(ANDROID_REQUEST_ID); in threadLoop()
3613 sp<CaptureRequest> captureRequest = nextRequest.captureRequest; in threadLoop() local
3614 captureRequest->mTestPatternChanged = overrideTestPattern(captureRequest); in threadLoop()
3619 captureRequest->mRotateAndCropChanged = in threadLoop()
3621 false : overrideAutoRotateAndCrop(captureRequest); in threadLoop()
3622 captureRequest->mAutoframingChanged = overrideAutoframing(captureRequest); in threadLoop()
3624 injectSessionParams(captureRequest, mInjectedSessionParams); in threadLoop()
3632 if (updateSessionParameters(mNextRequests[0].captureRequest->mSettingsList.begin()->metadata)) { in threadLoop()
3637 if (mNextRequests[0].captureRequest->mInputStream != nullptr) { in threadLoop()
3638 res = mNextRequests[0].captureRequest->mInputStream->forceToIdle(); in threadLoop()
3655 if (mNextRequests[0].captureRequest->mInputStream != nullptr) { in threadLoop()
3656 mNextRequests[0].captureRequest->mInputStream->restoreConfiguredState(); in threadLoop()
3751 bool batchedRequest = mNextRequests[0].captureRequest->mBatchSize > 1; in prepareHalRequests()
3754 sp<CaptureRequest> captureRequest = nextRequest.captureRequest; in prepareHalRequests() local
3759 halRequest->frame_number = captureRequest->mResultExtras.frameNumber; in prepareHalRequests()
3762 status_t res = insertTriggers(captureRequest); in prepareHalRequests()
3774 bool settingsOverrideChanged = overrideSettingsOverride(captureRequest); in prepareHalRequests()
3779 (mPrevRequest != captureRequest || triggersMixedIn || in prepareHalRequests()
3780 captureRequest->mRotateAndCropChanged || in prepareHalRequests()
3781 captureRequest->mAutoframingChanged || in prepareHalRequests()
3782 captureRequest->mTestPatternChanged || settingsOverrideChanged || in prepareHalRequests()
3800 res = addFakeTriggerIds(captureRequest); in prepareHalRequests()
3812 for (it = captureRequest->mSettingsList.begin(); in prepareHalRequests()
3813 it != captureRequest->mSettingsList.end(); it++) { in prepareHalRequests()
3825 if (!captureRequest->mUHRCropAndMeteringRegionsUpdated) { in prepareHalRequests()
3835 captureRequest->mUHRCropAndMeteringRegionsUpdated = true; in prepareHalRequests()
3846 for (it = captureRequest->mSettingsList.begin(); in prepareHalRequests()
3847 it != captureRequest->mSettingsList.end(); it++) { in prepareHalRequests()
3853 if (!captureRequest->mDistortionCorrectionUpdated) { in prepareHalRequests()
3862 captureRequest->mDistortionCorrectionUpdated = true; in prepareHalRequests()
3866 for (it = captureRequest->mSettingsList.begin(); in prepareHalRequests()
3867 it != captureRequest->mSettingsList.end(); it++) { in prepareHalRequests()
3873 if (!captureRequest->mZoomRatioIs1x) { in prepareHalRequests()
3877 if (!captureRequest->mZoomRatioUpdated) { in prepareHalRequests()
3886 captureRequest->mZoomRatioUpdated = true; in prepareHalRequests()
3889 if (captureRequest->mRotateAndCropAuto && in prepareHalRequests()
3890 !captureRequest->mRotationAndCropUpdated) { in prepareHalRequests()
3891 for (it = captureRequest->mSettingsList.begin(); in prepareHalRequests()
3892 it != captureRequest->mSettingsList.end(); it++) { in prepareHalRequests()
3904 captureRequest->mRotationAndCropUpdated = true; in prepareHalRequests()
3907 for (it = captureRequest->mSettingsList.begin(); in prepareHalRequests()
3908 it != captureRequest->mSettingsList.end(); it++) { in prepareHalRequests()
3933 captureRequest->mSettingsList.begin()->metadata.sort(); in prepareHalRequests()
3934 halRequest->settings = captureRequest->mSettingsList.begin()->metadata.getAndLock(); in prepareHalRequests()
3935 mPrevRequest = captureRequest; in prepareHalRequests()
3959 if (captureRequest->mSettingsList.size() > 1) { in prepareHalRequests()
3960 halRequest->num_physcam_settings = captureRequest->mSettingsList.size() - 1; in prepareHalRequests()
3968 auto it = ++captureRequest->mSettingsList.begin(); in prepareHalRequests()
3970 for (; it != captureRequest->mSettingsList.end(); it++, i++) { in prepareHalRequests()
3982 if (captureRequest->mInputStream != NULL) { in prepareHalRequests()
3983 halRequest->input_buffer = &captureRequest->mInputBuffer; in prepareHalRequests()
3985 halRequest->input_width = captureRequest->mInputBufferSize.width; in prepareHalRequests()
3986 halRequest->input_height = captureRequest->mInputBufferSize.height; in prepareHalRequests()
3993 captureRequest->mOutputStreams.size()); in prepareHalRequests()
4007 for (size_t j = 0; j < captureRequest->mOutputStreams.size(); j++) { in prepareHalRequests()
4009 captureRequest->mOutputStreams.editItemAt(j); in prepareHalRequests()
4034 captureRequest->mOutputSurfaces[streamId], in prepareHalRequests()
4065 captureRequest->mOutputSurfaces[streamId]); in prepareHalRequests()
4083 bool singleRequest = captureRequest->mSettingsList.size() == 1; in prepareHalRequests()
4084 for (const auto& settings : captureRequest->mSettingsList) { in prepareHalRequests()
4089 captureRequest->mResultExtras.frameNumber, in prepareHalRequests()
4121 settings = captureRequest->mSettingsList.begin()->metadata.getAndLock(); in prepareHalRequests()
4123 if (!mNextRequests[0].captureRequest->mSettingsList.begin()->metadata.isEmpty()) { in prepareHalRequests()
4142 totalNumBuffers, captureRequest->mResultExtras, in prepareHalRequests()
4149 captureRequest->mRotateAndCropAuto, captureRequest->mAutoframingAuto, in prepareHalRequests()
4152 SurfaceMap{}, captureRequest->mRequestTimeNs); in prepareHalRequests()
4156 captureRequest->mResultExtras.requestId, captureRequest->mResultExtras.frameNumber, in prepareHalRequests()
4157 captureRequest->mResultExtras.burstId); in prepareHalRequests()
4160 captureRequest->mSettingsList.begin()->metadata.unlock(settings); in prepareHalRequests()
4189 for (const auto& s : nextRequest.captureRequest->mOutputStreams) { in isStreamPending()
4192 if (stream == nextRequest.captureRequest->mInputStream) return true; in isStreamPending()
4218 for (const auto& s : nextRequest.captureRequest->mOutputSurfaces) { in isOutputSurfacePending()
4392 sp<CaptureRequest> captureRequest = nextRequest.captureRequest; in cleanUpFailedRequests() local
4397 captureRequest->mSettingsList.begin()->metadata.unlock(halRequest->settings); in cleanUpFailedRequests()
4400 cleanupPhysicalSettings(captureRequest, halRequest); in cleanUpFailedRequests()
4402 if (captureRequest->mInputStream != NULL) { in cleanUpFailedRequests()
4403 captureRequest->mInputBuffer.status = CAMERA_BUFFER_STATUS_ERROR; in cleanUpFailedRequests()
4404 captureRequest->mInputStream->returnInputBuffer(captureRequest->mInputBuffer); in cleanUpFailedRequests()
4425 captureRequest->mOutputStreams.editItemAt(i)->returnBuffer((*outputBuffers)[i], in cleanUpFailedRequests()
4428 captureRequest->mResultExtras.frameNumber); in cleanUpFailedRequests()
4437 captureRequest->mResultExtras); in cleanUpFailedRequests()
4439 wakeupLatestRequest(/*failedRequestId*/true, captureRequest->mResultExtras.requestId); in cleanUpFailedRequests()
4447 … ssize_t idx = parent->mInFlightMap.indexOfKey(captureRequest->mResultExtras.frameNumber); in cleanUpFailedRequests()
4450 __FUNCTION__, captureRequest->mResultExtras.frameNumber); in cleanUpFailedRequests()
4470 nextRequest.captureRequest = waitForNextRequestLocked(); in waitForNextRequestBatch()
4471 if (nextRequest.captureRequest == nullptr) { in waitForNextRequestBatch()
4480 const size_t batchSize = nextRequest.captureRequest->mBatchSize; in waitForNextRequestBatch()
4484 additionalRequest.captureRequest = waitForNextRequestLocked(); in waitForNextRequestBatch()
4485 if (additionalRequest.captureRequest == nullptr) { in waitForNextRequestBatch()