Home
last modified time | relevance | path

Searched refs:timestampUs (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp236 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { in skipFrameAndModifyTimeStamp() argument
243 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
255 *timestampUs = in skipFrameAndModifyTimeStamp()
259 if (*timestampUs < mStartTimeUs) { in skipFrameAndModifyTimeStamp()
261 *timestampUs = mStartTimeUs; in skipFrameAndModifyTimeStamp()
270 if (mNumFramesEncoded >= 1 && *timestampUs < in skipFrameAndModifyTimeStamp()
284 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
285 *timestampUs = mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs; in skipFrameAndModifyTimeStamp()
293 int64_t timestampUs = buffer.mTimestamp / 1000; in processBufferQueueFrame() local
294 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(&timestampUs); in processBufferQueueFrame()
[all …]
DAMRWriter.cpp217 int64_t timestampUs; in threadFunc() local
218 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs)); in threadFunc()
219 if (timestampUs > mEstimatedDurationUs) { in threadFunc()
220 mEstimatedDurationUs = timestampUs; in threadFunc()
223 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000); in threadFunc()
226 timestampUs -= previousPausedDurationUs; in threadFunc()
228 timestampUs, previousPausedDurationUs); in threadFunc()
229 if (timestampUs > maxTimestampUs) { in threadFunc()
230 maxTimestampUs = timestampUs; in threadFunc()
DAACWriter.cpp326 int64_t timestampUs; in threadFunc() local
327 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs)); in threadFunc()
328 if (timestampUs > mEstimatedDurationUs) { in threadFunc()
329 mEstimatedDurationUs = timestampUs; in threadFunc()
332 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs); in threadFunc()
335 timestampUs -= previousPausedDurationUs; in threadFunc()
337 timestampUs, previousPausedDurationUs); in threadFunc()
338 if (timestampUs > maxTimestampUs) { in threadFunc()
339 maxTimestampUs = timestampUs; in threadFunc()
DOggWriter.cpp350 int64_t timestampUs; in threadFunc() local
351 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs)); in threadFunc()
352 if (timestampUs > mEstimatedDurationUs) { in threadFunc()
353 mEstimatedDurationUs = timestampUs; in threadFunc()
356 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000); in threadFunc()
360 timestampUs -= previousPausedDurationUs; in threadFunc()
362 ALOGV("time stamp: %" PRId64 ", previous paused duration: %" PRId64, timestampUs, in threadFunc()
364 if (timestampUs > maxTimestampUs) { in threadFunc()
365 maxTimestampUs = timestampUs; in threadFunc()
DCameraSource.cpp942 bool CameraSource::shouldSkipFrameLocked(int64_t timestampUs) { in shouldSkipFrameLocked() argument
943 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { in shouldSkipFrameLocked()
944 ALOGV("Drop frame at %lld/%lld us", (long long)timestampUs, (long long)mStartTimeUs); in shouldSkipFrameLocked()
948 if (mStopSystemTimeUs != -1 && timestampUs >= mStopSystemTimeUs) { in shouldSkipFrameLocked()
950 (long long)timestampUs, (long long)mStopSystemTimeUs); in shouldSkipFrameLocked()
958 if (skipCurrentFrame(timestampUs)) { in shouldSkipFrameLocked()
963 if (timestampUs <= mLastFrameTimestampUs) { in shouldSkipFrameLocked()
965 (long long)timestampUs, (long long)mLastFrameTimestampUs); in shouldSkipFrameLocked()
968 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { in shouldSkipFrameLocked()
973 mLastFrameTimestampUs = timestampUs; in shouldSkipFrameLocked()
[all …]
DMPEG4Writer.cpp154 void bufferChunk(int64_t timestampUs);
3509 int64_t timestampUs = 0; in threadEntry() local
3754 CHECK(meta_data->findInt64(kKeyTime, &timestampUs)); in threadEntry()
3755 timestampUs += mFirstSampleStartOffsetUs; in threadEntry()
3770 if (timestampUs < 0 && mFirstSampleStartOffsetUs == 0) { in threadEntry()
3771 mFirstSampleStartOffsetUs = -timestampUs; in threadEntry()
3772 timestampUs = 0; in threadEntry()
3774 mOwner->setStartTimestampUs(timestampUs); in threadEntry()
3775 mStartTimestampUs = timestampUs; in threadEntry()
3780 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in threadEntry()
[all …]
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp339 int64_t timestampUs = 0xdeadbeef; in run() local
368 CHECK(md.findInt64(kKeyTime, &timestampUs)); in run()
370 mStartTimeUs = timestampUs; in run()
374 lastDurationUs = timestampUs - lastTimestampUs; in run()
375 lastTimestampUs = timestampUs; in run()
383 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in run()
390 timestampUs -= previousPausedDurationUs; in run()
391 CHECK_GE(timestampUs, 0LL); in run()
398 timestampUs * 1000 / mTimeCodeScale, in run()
406 timestampUs * 1000 / mTimeCodeScale, in run()
[all …]
/frameworks/av/media/module/bufferpool/1.0/
DBufferPoolClient.cpp67 int64_t timestampUs,
74 TransactionId *transactionId, int64_t *timestampUs);
79 int64_t timestampUs);
347 TransactionId transactionId, BufferId bufferId, int64_t timestampUs, in receive() argument
353 if (timestampUs != 0) { in receive()
354 timestampUs += kReceiveTimeoutUs; in receive()
356 if (!postReceive(bufferId, transactionId, timestampUs)) { in receive()
453 TransactionId *transactionId, int64_t *timestampUs) { in postSend() argument
458 *timestampUs = getTimestampNow(); in postSend()
476 BufferId bufferId, TransactionId transactionId, int64_t timestampUs) { in postReceive() argument
[all …]
DClientManager.cpp117 int64_t timestampUs,
124 int64_t *timestampUs);
332 BufferId bufferId, int64_t timestampUs, in receive() argument
343 return client->receive(transactionId, bufferId, timestampUs, handle, buffer); in receive()
348 TransactionId *transactionId, int64_t *timestampUs) { in postSend() argument
359 return client->postSend(receiverId, buffer, transactionId, timestampUs); in postSend()
475 BufferId bufferId, int64_t timestampUs, in receive() argument
479 timestampUs, handle, buffer); in receive()
486 TransactionId *transactionId, int64_t* timestampUs) { in postSend() argument
488 return mImpl->postSend(receiverId, buffer, transactionId, timestampUs); in postSend()
DBufferPoolClient.h80 int64_t timestampUs,
87 int64_t *timestampUs);
/frameworks/av/media/module/bufferpool/2.0/
DBufferPoolClient.cpp73 int64_t timestampUs,
80 TransactionId *transactionId, int64_t *timestampUs);
85 int64_t timestampUs);
402 TransactionId transactionId, BufferId bufferId, int64_t timestampUs, in receive() argument
408 if (timestampUs != 0) { in receive()
409 timestampUs += kReceiveTimeoutUs; in receive()
411 if (!postReceive(bufferId, transactionId, timestampUs)) { in receive()
508 TransactionId *transactionId, int64_t *timestampUs) { in postSend() argument
518 *timestampUs = getTimestampNow(); in postSend()
536 BufferId bufferId, TransactionId transactionId, int64_t timestampUs) { in postReceive() argument
[all …]
DClientManager.cpp121 int64_t timestampUs,
128 int64_t *timestampUs);
373 BufferId bufferId, int64_t timestampUs, in receive() argument
387 transactionId, bufferId, timestampUs, &origHandle, buffer); in receive()
398 return client->receive(transactionId, bufferId, timestampUs, handle, buffer); in receive()
404 TransactionId *transactionId, int64_t *timestampUs) { in postSend() argument
415 return client->postSend(receiverId, buffer, transactionId, timestampUs); in postSend()
540 BufferId bufferId, int64_t timestampUs, in receive() argument
544 timestampUs, handle, buffer); in receive()
551 TransactionId *transactionId, int64_t* timestampUs) { in postSend() argument
[all …]
DBufferPoolClient.h88 int64_t timestampUs,
95 int64_t *timestampUs);
/frameworks/base/media/java/android/media/
DTimedMetaData.java58 public TimedMetaData(long timestampUs, @NonNull byte[] metaData) { in TimedMetaData() argument
62 mTimestampUs = timestampUs; in TimedMetaData()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCameraSourceTimeLapse.h136 virtual bool skipCurrentFrame(int64_t timestampUs);
156 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
/frameworks/av/media/module/bufferpool/2.0/tests/
DBufferpoolUnitTest.cpp64 int64_t timestampUs; member
194 message.data.bufferId, message.data.timestampUs, in doReceiver()
319 std::vector<int64_t> timestampUs{}; in TEST_F() local
336 timestampUs.push_back(postUs); in TEST_F()
353 status = mManager->receive(mReceiverId, tid[i], senderBuffer[i]->mId, timestampUs[i], in TEST_F()
384 timestampUs.clear(); in TEST_F()
429 message.data.timestampUs = postUs; in TEST_F()
513 message.data.timestampUs = postUs; in TEST_F()
Dmulti.cpp65 int64_t timestampUs; member
161 message.data.bufferId, message.data.timestampUs, &rhandle, &rbuffer); in doReceiver()
220 message.data.timestampUs = postUs; in TEST_F()
Dcond.cpp66 int64_t timestampUs; member
167 message.data.bufferId, message.data.timestampUs, &rhandle, &rbuffer); in doReceiver()
240 message.data.timestampUs = postUs; in TEST_F()
/frameworks/av/media/codec2/hal/aidl/
DBufferTypes.cpp126 bpMessage.timestampUs, in objcpy()
317 int64_t timestampUs; in send() local
319 receiverConnectionId, bpData, &transactionId, &timestampUs); in send()
335 bpMessage->timestampUs = timestampUs; in send()
/frameworks/av/media/module/bufferpool/2.0/include/bufferpool/
DClientManager.h148 int64_t timestampUs,
169 int64_t *timestampUs);
/frameworks/av/media/module/bufferpool/1.0/include/bufferpool/
DClientManager.h132 int64_t timestampUs,
153 int64_t *timestampUs);
/frameworks/av/media/module/bufferpool/1.0/vts/
Dmulti.cpp67 int64_t timestampUs; member
163 message.data.bufferId, message.data.timestampUs, &rhandle, &rbuffer); in doReceiver()
212 message.data.timestampUs = postUs; in TEST_F()
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
Dtypes.cpp166 bpMessage.timestampUs, in objcpy()
397 int64_t timestampUs; in send() local
399 receiverConnectionId, bpData, &transactionId, &timestampUs); in send()
415 bpMessage->timestampUs = timestampUs; in send()
/frameworks/av/media/module/aidlpersistentsurface/aidl/android/media/
DIAidlNode.aidl49 long timestampUs, in submitBuffer() argument
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp303 const int64_t timestampUs = in onMoreData() local
306 RawBuffer emptyBuffer{timeUs, timestampUs, static_cast<int32_t>(bufferSize)}; in onMoreData()
317 const int64_t timestampUs = in onMoreData() local
320 RawBuffer audioBuffer{timeUs, timestampUs, static_cast<int32_t>(bufferSize)}; in onMoreData()
511 const int64_t timestampUs = in obtainBuffer() local
514 RawBuffer buff{-1, timestampUs, static_cast<int32_t>(recordBuffer.size())}; in obtainBuffer()

12