Lines Matching refs:frameNumber
296 void HeicCompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument
298 ATRACE_ASYNC_BEGIN("HEIC capture", frameNumber); in onBufferRequestForFrameNumber()
305 mPendingCaptureResults.emplace(frameNumber, CameraMetadata()); in onBufferRequestForFrameNumber()
321 mSettingsByFrameNumber[frameNumber] = {orientation, quality}; in onBufferRequestForFrameNumber()
600 if (mSettingsByFrameNumber.find(resultExtras.frameNumber) != mSettingsByFrameNumber.end()) { in onShutter()
602 resultExtras.frameNumber, timestamp, resultExtras.requestId); in onShutter()
603 mSettingsByFrameNumber[resultExtras.frameNumber].shutterNotified = true; in onShutter()
604 mSettingsByFrameNumber[resultExtras.frameNumber].timestamp = timestamp; in onShutter()
605 mSettingsByFrameNumber[resultExtras.frameNumber].requestId = resultExtras.requestId; in onShutter()
668 int64_t frameNumber = mAppSegmentFrameNumbers.front(); in compilePendingInputLocked() local
672 if ((mPendingInputFrames.find(frameNumber) == mPendingInputFrames.end()) || in compilePendingInputLocked()
673 (mPendingInputFrames[frameNumber].error)) { in compilePendingInputLocked()
676 mPendingInputFrames[frameNumber].appSegmentBuffer = imgBuffer; in compilePendingInputLocked()
711 int64_t frameNumber = mMainImageFrameNumbers.front(); in compilePendingInputLocked() local
715 if ((mPendingInputFrames.find(frameNumber) == mPendingInputFrames.end()) || in compilePendingInputLocked()
716 (mPendingInputFrames[frameNumber].error)) { in compilePendingInputLocked()
719 mPendingInputFrames[frameNumber].yuvBuffer = imgBuffer; in compilePendingInputLocked()
754 int64_t frameNumber = std::get<0>(it->second); in compilePendingInputLocked() local
756 mPendingInputFrames.find(frameNumber) != mPendingInputFrames.end()) { in compilePendingInputLocked()
757 if (mPendingInputFrames[frameNumber].timestamp == it->first) { in compilePendingInputLocked()
758 mPendingInputFrames[frameNumber].result = in compilePendingInputLocked()
763 __FUNCTION__, mPendingInputFrames[frameNumber].timestamp, in compilePendingInputLocked()
815 bool HeicCompositeStream::getNextReadyInputLocked(int64_t *frameNumber /*out*/) { in getNextReadyInputLocked() argument
816 if (frameNumber == nullptr) { in getNextReadyInputLocked()
840 *frameNumber = it.first; in getNextReadyInputLocked()
865 status_t HeicCompositeStream::processInputFrame(int64_t frameNumber, in processInputFrame() argument
881 " dequeuedOutputBuffer %d, timestamp %" PRId64, __FUNCTION__, frameNumber, in processInputFrame()
903 res = startMuxerForInputFrame(frameNumber, inputFrame); in processInputFrame()
913 res = processAppSegment(frameNumber, inputFrame); in processInputFrame()
923 res = processOneCodecOutputFrame(frameNumber, inputFrame); in processInputFrame()
933 res = processCompletedInputFrame(frameNumber, inputFrame); in processInputFrame()
945 status_t HeicCompositeStream::startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame) { in startMuxerForInputFrame() argument
959 << getStreamId() << "-" << frameNumber; in startMuxerForInputFrame()
997 frameNumber); in startMuxerForInputFrame()
1001 status_t HeicCompositeStream::processAppSegment(int64_t frameNumber, InputFrame &inputFrame) { in processAppSegment() argument
1068 __FUNCTION__, frameNumber, appSegmentSize, inputFrame.appSegmentBuffer.width, in processAppSegment()
1123 status_t HeicCompositeStream::processOneCodecOutputFrame(int64_t frameNumber, in processOneCodecOutputFrame() argument
1158 __FUNCTION__, frameNumber, it->index); in processOneCodecOutputFrame()
1162 status_t HeicCompositeStream::processCompletedInputFrame(int64_t frameNumber, in processCompletedInputFrame() argument
1220 ALOGV("%s: [%" PRId64 "]", __FUNCTION__, frameNumber); in processCompletedInputFrame()
1221 ATRACE_ASYNC_END("HEIC capture", frameNumber); in processCompletedInputFrame()
1226 void HeicCompositeStream::releaseInputFrameLocked(int64_t frameNumber, in releaseInputFrameLocked() argument
1256 ALOGV("%s: notifyError called for frameNumber %" PRId64, __FUNCTION__, frameNumber); in releaseInputFrameLocked()
1257 notifyError(frameNumber, inputFrame->requestId); in releaseInputFrameLocked()
1693 int64_t frameNumber = -1; in threadLoop() local
1709 newInputAvailable = getNextReadyInputLocked(&frameNumber); in threadLoop()
1742 auto res = processInputFrame(frameNumber, mPendingInputFrames[frameNumber]); in threadLoop()
1746 PRId64 ": %s (%d)", __FUNCTION__, mPendingInputFrames[frameNumber].timestamp, in threadLoop()
1747 frameNumber, strerror(-res), res); in threadLoop()
1748 mPendingInputFrames[frameNumber].error = true; in threadLoop()
1756 void HeicCompositeStream::flagAnExifErrorFrameNumber(int64_t frameNumber) { in flagAnExifErrorFrameNumber() argument
1758 mExifErrorFrameNumbers.emplace(frameNumber); in flagAnExifErrorFrameNumber()
1764 int64_t frameNumber = resultExtras.frameNumber; in onStreamBufferError() local
1770 ALOGV("%s: APP_SEGMENT frameNumber: %" PRId64, __FUNCTION__, frameNumber); in onStreamBufferError()
1771 flagAnExifErrorFrameNumber(frameNumber); in onStreamBufferError()
1774 ALOGV("%s: YUV frameNumber: %" PRId64, __FUNCTION__, frameNumber); in onStreamBufferError()
1775 flagAnErrorFrameNumber(frameNumber); in onStreamBufferError()
1789 if (fn.first == resultExtras.frameNumber) { in onResultError()
1796 if (inputFrame.first == resultExtras.frameNumber) { in onResultError()
1808 mCaptureResults.emplace(timestamp, std::make_tuple(resultExtras.frameNumber, CameraMetadata())); in onResultError()
1810 timestamp, resultExtras.frameNumber); in onResultError()
1815 auto frameNumber = resultExtras.frameNumber; in onRequestError() local
1816 ALOGV("%s: frameNumber: %" PRId64, __FUNCTION__, frameNumber); in onRequestError()
1818 auto numRequests = mSettingsByFrameNumber.erase(frameNumber); in onRequestError()
1821 mErrorFrameNumbers.emplace(frameNumber); in onRequestError()