Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp249 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { in skipFrameAndModifyTimeStamp() argument
256 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
268 *timestampUs = in skipFrameAndModifyTimeStamp()
272 if (*timestampUs < mStartTimeUs) { in skipFrameAndModifyTimeStamp()
274 *timestampUs = mStartTimeUs; in skipFrameAndModifyTimeStamp()
283 if (mNumFramesEncoded >= 1 && *timestampUs < in skipFrameAndModifyTimeStamp()
297 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
298 *timestampUs = mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs; in skipFrameAndModifyTimeStamp()
304 void CameraSourceTimeLapse::dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, in dataCallbackTimestamp() argument
307 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(&timestampUs); in dataCallbackTimestamp()
[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()
DCameraSource.cpp1123 bool CameraSource::shouldSkipFrameLocked(int64_t timestampUs) { in shouldSkipFrameLocked() argument
1124 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { in shouldSkipFrameLocked()
1125 ALOGV("Drop frame at %lld/%lld us", (long long)timestampUs, (long long)mStartTimeUs); in shouldSkipFrameLocked()
1129 if (mStopSystemTimeUs != -1 && timestampUs >= mStopSystemTimeUs) { in shouldSkipFrameLocked()
1131 (long long)timestampUs, (long long)mStopSystemTimeUs); in shouldSkipFrameLocked()
1137 if (skipCurrentFrame(timestampUs)) { in shouldSkipFrameLocked()
1142 if (timestampUs <= mLastFrameTimestampUs) { in shouldSkipFrameLocked()
1144 (long long)timestampUs, (long long)mLastFrameTimestampUs); in shouldSkipFrameLocked()
1147 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { in shouldSkipFrameLocked()
1152 mLastFrameTimestampUs = timestampUs; in shouldSkipFrameLocked()
[all …]
DMPEG4Writer.cpp121 void bufferChunk(int64_t timestampUs);
2877 int64_t timestampUs = 0; in threadEntry() local
3047 CHECK(meta_data->findInt64(kKeyTime, &timestampUs)); in threadEntry()
3063 mStartTimestampUs = timestampUs; in threadEntry()
3069 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in threadEntry()
3089 timestampUs -= previousPausedDurationUs; in threadEntry()
3090 timestampDebugEntry.pts = timestampUs; in threadEntry()
3091 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) { in threadEntry()
3129 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs; in threadEntry()
3137 timestampUs = decodingTimeUs; in threadEntry()
[all …]
DSimpleDecodingSource.cpp311 int64_t timestampUs = 0; in doRead() local
312 CHECK(in_buf->meta_data().findInt64(kKeyTime, &timestampUs)); in doRead()
332 timestampUs, 0 /* flags */); in doRead()
DAudioSource.cpp430 const int64_t timestampUs = in queueInputBuffer_l() local
441 mPrevSampleTimeUs = timestampUs; in queueInputBuffer_l()
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp331 int64_t timestampUs = 0xdeadbeef; in run() local
349 CHECK(md.findInt64(kKeyTime, &timestampUs)); in run()
351 mStartTimeUs = timestampUs; in run()
353 timestampUs -= mStartTimeUs; in run()
356 lastDurationUs = timestampUs - lastTimestampUs; in run()
357 lastTimestampUs = timestampUs; in run()
366 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in run()
373 timestampUs -= previousPausedDurationUs; in run()
374 CHECK_GE(timestampUs, 0ll); in run()
381 timestampUs * 1000 / mTimeCodeScale, in run()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DCameraSourceTimeLapse.h138 virtual bool skipCurrentFrame(int64_t timestampUs);
145 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
154 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs,
185 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
DCameraSource.h142 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
144 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs,
231 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
234 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs,
330 bool shouldSkipFrameLocked(int64_t timestampUs);
/frameworks/av/cmds/stagefright/
Dstagefright.cpp255 int64_t timestampUs; in playSource() local
256 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs)); in playSource()
261 int64_t diff = timestampUs - seekTimeUs; in playSource()
268 || (gReproduceBug == 5 && timestampUs < 0)) { in playSource()
270 seekTimeUs / 1E6, timestampUs / 1E6); in playSource()
278 timestampUs, timestampUs / 1E6); in playSource()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h271 t->data.extendedBufferData.timestampUs = in wrapAs()
276 t->data.renderData.timestampUs = l.u.render_data.timestamp; in wrapAs()
318 t.data.extendedBufferData.timestampUs; in wrapAs()
322 l->u.render_data.timestamp = t.data.renderData.timestampUs; in wrapAs()
DWOmxNode.h148 uint32_t flags, uint64_t timestampUs,
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h350 t->data.extendedBufferData.timestampUs = in wrapAs()
355 t->data.renderData.timestampUs = l.u.render_data.timestamp; in wrapAs()
397 t.data.extendedBufferData.timestampUs; in wrapAs()
401 l->u.render_data.timestamp = t.data.renderData.timestampUs; in wrapAs()
DWOmxNode.h147 uint32_t flags, uint64_t timestampUs,
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp393 uint64_t timestampUs, const hidl_handle& fence) { in emptyBuffer() argument
402 toOMXTicks(timestampUs), in emptyBuffer()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp396 uint64_t timestampUs, const hidl_handle& fence) { in emptyBuffer() argument
405 toOMXTicks(timestampUs), in emptyBuffer()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp1376 jlong timestampUs, in android_media_MediaCodec_queueInputBuffer() argument
1390 index, offset, size, timestampUs, flags, &errorDetailMsg); in android_media_MediaCodec_queueInputBuffer()
1402 jlong timestampUs, in android_media_MediaCodec_queueSecureInputBuffer() argument
1539 timestampUs, in android_media_MediaCodec_queueSecureInputBuffer()