Home
last modified time | relevance | path

Searched refs:frameNumber (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/core/java/android/hardware/camera2/impl/
DFrameNumberTracker.java103 public void updateTracker(long frameNumber, boolean isError, int requestType) { in updateTracker() argument
105 mFutureErrorMap.put(frameNumber, requestType); in updateTracker()
108 updateCompletedFrameNumber(frameNumber, requestType); in updateTracker()
127 public void updateTracker(long frameNumber, CaptureResult result, boolean partial, in updateTracker() argument
131 updateTracker(frameNumber, /*isError*/false, requestType); in updateTracker()
143 List<CaptureResult> partials = mPartialResults.get(frameNumber); in updateTracker()
146 mPartialResults.put(frameNumber, partials); in updateTracker()
162 public List<CaptureResult> popPartialResults(long frameNumber) { in popPartialResults() argument
163 return mPartialResults.remove(frameNumber); in popPartialResults()
188 private void updateCompletedFrameNumber(long frameNumber, in updateCompletedFrameNumber() argument
[all …]
DRequestLastFrameNumbersHolder.java54 long frameNumber = requestInfo.getLastFrameNumber(); in RequestLastFrameNumbersHolder() local
70 lastReprocessFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
74 lastZslStillFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
78 lastRegularFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
89 frameNumber--; in RequestLastFrameNumbersHolder()
121 long frameNumber = lastFrameNumber; in RequestLastFrameNumbersHolder() local
126 lastZslStillFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
130 lastRegularFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
139 frameNumber--; in RequestLastFrameNumbersHolder()
DCaptureResultExtras.java29 private long frameNumber; field in CaptureResultExtras
55 int precaptureTriggerId, long frameNumber, in CaptureResultExtras() argument
64 this.frameNumber = frameNumber; in CaptureResultExtras()
84 dest.writeLong(frameNumber); in writeToParcel()
103 frameNumber = in.readLong(); in readFromParcel()
136 return frameNumber; in getFrameNumber()
DCaptureCallback.java66 CaptureRequest request, long timestamp, long frameNumber); in onCaptureStarted() argument
106 int sequenceId, long frameNumber); in onCaptureSequenceCompleted() argument
123 CaptureRequest request, Surface target, long frameNumber); in onCaptureBufferLost() argument
/frameworks/av/services/camera/libcameraservice/api2/
DCompositeStream.cpp85 void CompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument
89 mPendingCaptureResults.emplace(frameNumber, CameraMetadata()); in onBufferRequestForFrameNumber()
101 void CompositeStream::eraseResult(int64_t frameNumber) { in eraseResult() argument
104 auto it = mPendingCaptureResults.find(frameNumber); in eraseResult()
117 uint64_t frameNumber = result.mResultExtras.frameNumber; in onResultAvailable() local
119 auto it = mPendingCaptureResults.find(frameNumber); in onResultAvailable()
126 mCaptureResults.emplace(ts, std::make_tuple(frameNumber, it->second)); in onResultAvailable()
130 __FUNCTION__, frameNumber); in onResultAvailable()
147 void CompositeStream::flagAnErrorFrameNumber(int64_t frameNumber) { in flagAnErrorFrameNumber() argument
149 mErrorFrameNumbers.emplace(frameNumber); in flagAnErrorFrameNumber()
[all …]
DHeicCompositeStream.cpp271 void HeicCompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument
273 ATRACE_ASYNC_BEGIN("HEIC capture", frameNumber); in onBufferRequestForFrameNumber()
280 mPendingCaptureResults.emplace(frameNumber, CameraMetadata()); in onBufferRequestForFrameNumber()
296 mSettingsByFrameNumber[frameNumber] = {orientation, quality}; in onBufferRequestForFrameNumber()
560 if (mSettingsByFrameNumber.find(resultExtras.frameNumber) != mSettingsByFrameNumber.end()) { in onShutter()
562 resultExtras.frameNumber, timestamp, resultExtras.requestId); in onShutter()
563 mSettingsByFrameNumber[resultExtras.frameNumber].shutterNotified = true; in onShutter()
564 mSettingsByFrameNumber[resultExtras.frameNumber].timestamp = timestamp; in onShutter()
565 mSettingsByFrameNumber[resultExtras.frameNumber].requestId = resultExtras.requestId; in onShutter()
628 int64_t frameNumber = mAppSegmentFrameNumbers.front(); in compilePendingInputLocked() local
[all …]
DHeicCompositeStream.h66 void onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId,
184 bool getNextReadyInputLocked(int64_t *frameNumber /*out*/);
188 status_t processInputFrame(int64_t frameNumber, InputFrame &inputFrame);
190 status_t startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame);
191 status_t processAppSegment(int64_t frameNumber, InputFrame &inputFrame);
192 status_t processOneCodecOutputFrame(int64_t frameNumber, InputFrame &inputFrame);
193 status_t processCompletedInputFrame(int64_t frameNumber, InputFrame &inputFrame);
195 void releaseInputFrameLocked(int64_t frameNumber, InputFrame *inputFrame /*out*/);
280 void flagAnExifErrorFrameNumber(int64_t frameNumber);
DCompositeStream.h86 void onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId,
96 void eraseResult(int64_t frameNumber);
97 void flagAnErrorFrameNumber(int64_t frameNumber);
98 void notifyError(int64_t frameNumber, int32_t requestId);
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputUtils.cpp128 void insertResultLocked(CaptureOutputStates& states, CaptureResult *result, uint32_t frameNumber) { in insertResultLocked() argument
137 (int32_t*)&frameNumber, 1) != OK) { in insertResultLocked()
138 SET_ERR("Failed to set frame number %d in metadata", frameNumber); in insertResultLocked()
143 SET_ERR("Failed to set request ID in metadata for frame %d", frameNumber); in insertResultLocked()
161 queuedResult->mResultExtras.frameNumber, in insertResultLocked()
170 const CaptureResultExtras &resultExtras, uint32_t frameNumber) { in sendPartialCaptureResult() argument
185 insertResultLocked(states, &captureResult, frameNumber); in sendPartialCaptureResult()
193 uint32_t frameNumber, in sendCaptureResult() argument
205 if (frameNumber < states.nextReprocResultFrameNum) { in sendCaptureResult()
208 frameNumber, states.nextReprocResultFrameNum); in sendCaptureResult()
[all …]
DBufferUtils.cpp190 int32_t frameNumber = (key >> 32) & 0xFFFFFFFF; in getInflightBufferKeys() local
191 out->push_back(std::make_pair(frameNumber, streamId)); in getInflightBufferKeys()
197 int32_t frameNumber, int32_t streamId, buffer_handle_t *buffer) { in pushInflightBuffer() argument
199 uint64_t key = static_cast<uint64_t>(frameNumber) << 32 | static_cast<uint64_t>(streamId); in pushInflightBuffer()
205 int32_t frameNumber, int32_t streamId, in popInflightBuffer() argument
209 uint64_t key = static_cast<uint64_t>(frameNumber) << 32 | static_cast<uint64_t>(streamId); in popInflightBuffer()
222 int32_t frameNumber = pair.first; in popInflightBuffers() local
224 popInflightBuffer(frameNumber, streamId, nullptr); in popInflightBuffers()
/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.cpp62 void FrameTracer::traceTimestamp(int32_t layerId, uint64_t bufferID, uint64_t frameNumber, in traceTimestamp() argument
65 FrameTracerDataSource::Trace([this, layerId, bufferID, frameNumber, timestamp, type, in traceTimestamp()
76 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceTimestamp()
80 void FrameTracer::traceFence(int32_t layerId, uint64_t bufferID, uint64_t frameNumber, in traceFence() argument
83 FrameTracerDataSource::Trace([this, layerId, bufferID, frameNumber, &fence, type, in traceFence()
96 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence()
99 {.frameNumber = frameNumber, in traceFence()
125 traceSpanLocked(ctx, layerId, bufferID, pendingFence.frameNumber, pendingFence.type, in tracePendingFencesLocked()
136 uint64_t bufferID, uint64_t frameNumber, nsecs_t timestamp, in traceLocked() argument
143 if (frameNumber != UNSPECIFIED_FRAME_NUMBER) { in traceLocked()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DFrameProcessor.cpp251 int32_t frameNumber = entry.data.i32[0]; in process3aState() local
254 if (frameNumber <= mLast3AFrameNumber) { in process3aState()
256 __FUNCTION__, frameNumber); in process3aState()
259 mPending3AStates.removeItem(frameNumber); in process3aState()
265 ssize_t index = mPending3AStates.indexOfKey(frameNumber); in process3aState()
275 &pendingState.afMode, frameNumber, cameraId); in process3aState()
278 &pendingState.awbMode, frameNumber, cameraId); in process3aState()
281 &pendingState.aeState, frameNumber, cameraId); in process3aState()
284 &pendingState.afState, frameNumber, cameraId); in process3aState()
287 &pendingState.awbState, frameNumber, cameraId); in process3aState()
[all …]
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h87 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
89 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
102 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0;
103 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0;
104 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber,
108 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime) = 0;
109 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber,
114 virtual void removeTimeRecord(int32_t layerId, uint64_t frameNumber) = 0;
129 uint64_t frameNumber = 0; member
244 void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
[all …]
DTimeStats.cpp355 timeRecord->frameTime.frameNumber); in recordReadyLocked()
368 timeRecord->frameTime.frameNumber); in recordReadyLocked()
381 timeRecord->frameTime.frameNumber); in recordReadyLocked()
397 timeRecords[0].frameTime.frameNumber, timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
417 timeRecords[0].frameTime.frameNumber, postToAcquireMs); in flushAvailableRecordsToStatsLocked()
423 timeRecords[0].frameTime.frameNumber, postToPresentMs); in flushAvailableRecordsToStatsLocked()
429 timeRecords[0].frameTime.frameNumber, acquireToPresentMs); in flushAvailableRecordsToStatsLocked()
435 timeRecords[0].frameTime.frameNumber, latchToPresentMs); in flushAvailableRecordsToStatsLocked()
441 timeRecords[0].frameTime.frameNumber, desiredToPresentMs); in flushAvailableRecordsToStatsLocked()
447 timeRecords[0].frameTime.frameNumber, presentToPresentMs); in flushAvailableRecordsToStatsLocked()
[all …]
/frameworks/native/libs/gui/
DFrameTimestamps.cpp111 StringAppendF(&outString, "-- Frame %" PRIu64 "\n", frameNumber); in dump()
162 explicit FrameNumberEqual(uint64_t frameNumber) : mFrameNumber(frameNumber) {} in FrameNumberEqual()
164 return frame.valid && mFrameNumber == frame.frameNumber; in operator ()()
178 FrameEvents* FrameEventHistory::getFrame(uint64_t frameNumber) { in getFrame() argument
180 mFrames.begin(), mFrames.end(), FrameNumberEqual(frameNumber)); in getFrame()
184 FrameEvents* FrameEventHistory::getFrame(uint64_t frameNumber, size_t* iHint) { in getFrame() argument
188 hint, mFrames.end(), FrameNumberEqual(frameNumber)); in getFrame()
191 mFrames.begin(), hint, FrameNumberEqual(frameNumber)); in getFrame()
210 return lhs.frameNumber < rhs.frameNumber; in FrameNumberLessThan()
255 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire) { in updateAcquireFence() argument
[all …]
DBLASTBufferQueue.cpp50 mCurrentFrameNumber = newTimestamps->frameNumber; in addAndGetFrameTimestamps()
64 void BLASTBufferItemConsumer::updateFrameTimestamps(uint64_t frameNumber, nsecs_t refreshStartTime, in updateFrameTimestamps() argument
79 mFrameEventHistory.addLatch(frameNumber, latchTime); in updateFrameTimestamps()
80 mFrameEventHistory.addRelease(frameNumber, dequeueReadyTime, std::move(releaseFenceTime)); in updateFrameTimestamps()
81 mFrameEventHistory.addPreComposition(frameNumber, refreshStartTime); in updateFrameTimestamps()
82 mFrameEventHistory.addPostComposition(frameNumber, glDoneFenceTime, presentFenceTime, in updateFrameTimestamps()
86 void BLASTBufferItemConsumer::getConnectionEvents(uint64_t frameNumber, bool* needsDisconnect) { in getConnectionEvents() argument
89 while (!mDisconnectEvents.empty() && mDisconnectEvents.front() <= frameNumber) { in getConnectionEvents()
159 mBufferItemConsumer->updateFrameTimestamps(stats[0].frameEventStats.frameNumber, in transactionCallback()
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTracerTest.cpp136 const uint64_t frameNumber = 3; in TEST_F() local
148 mFrameTracer->traceTimestamp(layerId, bufferID, frameNumber, timestamp, type, duration); in TEST_F()
165 mFrameTracer->traceTimestamp(layerId, bufferID, frameNumber, timestamp, type, duration); in TEST_F()
188 EXPECT_EQ(buffer_event.frame_number(), frameNumber); in TEST_F()
200 const uint64_t frameNumber = 3; in TEST_F() local
212 mFrameTracer->traceFence(layerId, bufferID, frameNumber, fenceTime, type); in TEST_F()
227 mFrameTracer->traceFence(layerId, bufferID, frameNumber, fenceTime, type); in TEST_F()
252 EXPECT_EQ(buffer_event.frame_number(), frameNumber); in TEST_F()
263 const uint64_t frameNumber = 3; in TEST_F() local
278 mFrameTracer->traceFence(layerId, bufferID, frameNumber, fence1, type, startTime1); in TEST_F()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DTagMonitor.cpp117 void TagMonitor::monitorMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorMetadata() argument
130 monitorSingleMetadata(source, frameNumber, timestamp, emptyId, tag, metadata); in monitorMetadata()
133 monitorSingleMetadata(source, frameNumber, timestamp, m.first, tag, m.second); in monitorMetadata()
138 void TagMonitor::monitorSingleMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorSingleMetadata() argument
186 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
198 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
222 event.frameNumber, event.timestamp, in dumpMonitoredMetadata()
327 TagMonitor::MonitorEvent::MonitorEvent(eventSource src, uint32_t frameNumber, nsecs_t timestamp, in MonitorEvent() argument
330 frameNumber(frameNumber), in MonitorEvent()
DTagMonitor.h67 void monitorMetadata(eventSource source, int64_t frameNumber,
79 void monitorSingleMetadata(TagMonitor::eventSource source, int64_t frameNumber,
103 MonitorEvent(eventSource src, uint32_t frameNumber, nsecs_t timestamp,
108 uint32_t frameNumber; member
/frameworks/native/libs/gui/include/gui/
DFrameTimestamps.h78 uint64_t frameNumber{0};
112 FrameEvents* getFrame(uint64_t frameNumber);
113 FrameEvents* getFrame(uint64_t frameNumber, size_t* iHint);
143 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire);
172 uint64_t frameNumber{0};
216 void addLatch(uint64_t frameNumber, nsecs_t latchTime);
217 void addPreComposition(uint64_t frameNumber, nsecs_t refreshStartTime);
218 void addPostComposition(uint64_t frameNumber,
222 void addRelease(uint64_t frameNumber, nsecs_t dequeueReadyTime,
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
DCamera2CaptureCallbackForwarder.java82 final long frameNumber) { in onCaptureSequenceCompleted() argument
86 mListener.onCaptureSequenceCompleted(session, sequenceId, frameNumber); in onCaptureSequenceCompleted()
92 final long timestamp, final long frameNumber) { in onCaptureStarted() argument
96 mListener.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
DCamera2CaptureCallbackSplitter.java82 long frameNumber) { in onCaptureSequenceCompleted() argument
84 target.onCaptureSequenceCompleted(session, sequenceId, frameNumber); in onCaptureSequenceCompleted()
90 long timestamp, long frameNumber) { in onCaptureStarted() argument
92 target.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTransactionCompat.java96 SurfaceControl barrier, long frameNumber) { in deferTransactionUntil() argument
98 frameNumber); in deferTransactionUntil()
113 SurfaceControl barrier, long frameNumber) { in deferTransactionUntil() argument
114 t.deferTransactionUntil(surfaceControl, barrier, frameNumber); in deferTransactionUntil()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCaptureCallback.java126 long timestamp, long frameNumber) { in onCaptureStarted() argument
127 if (mProxy != null) mProxy.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
154 long frameNumber) { in onCaptureSequenceCompleted() argument
155 if (mProxy != null) mProxy.onCaptureSequenceCompleted(session, sequenceId, frameNumber); in onCaptureSequenceCompleted()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestHolder.java154 public RequestHolder build(long frameNumber) { in build() argument
155 return new RequestHolder(mRequestId, mSubsequenceId, mRequest, mRepeating, frameNumber, in build()
161 boolean repeating, long frameNumber, int numJpegTargets, in RequestHolder() argument
167 mFrameNumber = frameNumber; in RequestHolder()

12345