Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp325 int64_t timestampUs = 0xdeadbeef; in run() local
343 CHECK(md->findInt64(kKeyTime, &timestampUs)); in run()
345 mStartTimeUs = timestampUs; in run()
347 timestampUs -= mStartTimeUs; in run()
350 lastDurationUs = timestampUs - lastTimestampUs; in run()
351 lastTimestampUs = timestampUs; in run()
360 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in run()
367 timestampUs -= previousPausedDurationUs; in run()
368 CHECK_GE(timestampUs, 0ll); in run()
375 timestampUs * 1000 / mTimeCodeScale, in run()
[all …]
/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp247 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { in skipFrameAndModifyTimeStamp() argument
254 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
266 *timestampUs = in skipFrameAndModifyTimeStamp()
270 if (*timestampUs < mStartTimeUs) { in skipFrameAndModifyTimeStamp()
272 *timestampUs = mStartTimeUs; in skipFrameAndModifyTimeStamp()
281 if (mNumFramesEncoded >= 1 && *timestampUs < in skipFrameAndModifyTimeStamp()
295 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp()
296 *timestampUs = mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs; in skipFrameAndModifyTimeStamp()
302 void CameraSourceTimeLapse::dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, in dataCallbackTimestamp() argument
305 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(&timestampUs); in dataCallbackTimestamp()
[all …]
DAMRWriter.cpp230 int64_t timestampUs; in threadFunc() local
231 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs)); in threadFunc()
232 if (timestampUs > mEstimatedDurationUs) { in threadFunc()
233 mEstimatedDurationUs = timestampUs; in threadFunc()
236 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000); in threadFunc()
239 timestampUs -= previousPausedDurationUs; in threadFunc()
241 timestampUs, previousPausedDurationUs); in threadFunc()
242 if (timestampUs > maxTimestampUs) { in threadFunc()
243 maxTimestampUs = timestampUs; in threadFunc()
DAACWriter.cpp344 int64_t timestampUs; in threadFunc() local
345 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs)); in threadFunc()
346 if (timestampUs > mEstimatedDurationUs) { in threadFunc()
347 mEstimatedDurationUs = timestampUs; in threadFunc()
350 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs); in threadFunc()
353 timestampUs -= previousPausedDurationUs; in threadFunc()
355 timestampUs, previousPausedDurationUs); in threadFunc()
356 if (timestampUs > maxTimestampUs) { in threadFunc()
357 maxTimestampUs = timestampUs; in threadFunc()
DCameraSource.cpp853 void CameraSource::dataCallbackTimestamp(int64_t timestampUs, in dataCallbackTimestamp() argument
855 ALOGV("dataCallbackTimestamp: timestamp %" PRId64 " us", timestampUs); in dataCallbackTimestamp()
857 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { in dataCallbackTimestamp()
858 ALOGV("Drop frame at %" PRId64 "/%" PRId64 " us", timestampUs, mStartTimeUs); in dataCallbackTimestamp()
864 CHECK(timestampUs > mLastFrameTimestampUs); in dataCallbackTimestamp()
865 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { in dataCallbackTimestamp()
872 if (skipCurrentFrame(timestampUs)) { in dataCallbackTimestamp()
877 mLastFrameTimestampUs = timestampUs; in dataCallbackTimestamp()
879 mFirstFrameTimeUs = timestampUs; in dataCallbackTimestamp()
882 if (timestampUs < mStartTimeUs) { in dataCallbackTimestamp()
[all …]
DMPEG4Writer.cpp79 void bufferChunk(int64_t timestampUs);
2091 int64_t timestampUs = 0; in threadEntry() local
2196 CHECK(meta_data->findInt64(kKeyTime, &timestampUs)); in threadEntry()
2201 mStartTimestampUs = timestampUs; in threadEntry()
2207 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in threadEntry()
2223 timestampUs -= previousPausedDurationUs; in threadEntry()
2224 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) { in threadEntry()
2239 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs; in threadEntry()
2245 timestampUs = decodingTimeUs; in threadEntry()
2247 timestampUs, cttsOffsetTimeUs); in threadEntry()
[all …]
DAudioSource.cpp349 const int64_t timestampUs = in queueInputBuffer_l() local
360 mPrevSampleTimeUs = timestampUs; in queueInputBuffer_l()
DOMXCodec.cpp3120 int64_t timestampUs = 0; in drainInputBuffer() local
3225 timestampUs = lastBufferTimeUs; in drainInputBuffer()
3258 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs; in drainInputBuffer()
3291 timestampUs, timestampUs / 1E6); in drainInputBuffer()
3295 flags, timestampUs); in drainInputBuffer()
/frameworks/av/include/media/stagefright/
DCameraSourceTimeLapse.h133 virtual bool skipCurrentFrame(int64_t timestampUs);
138 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
155 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
DCameraSource.h128 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
180 virtual bool skipCurrentFrame(int64_t timestampUs) {return false;} in skipCurrentFrame() argument
185 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
/frameworks/av/cmds/stagefright/
Dstagefright.cpp243 int64_t timestampUs; in playSource() local
244 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs)); in playSource()
249 int64_t diff = timestampUs - seekTimeUs; in playSource()
256 || (gReproduceBug == 5 && timestampUs < 0)) { in playSource()
258 seekTimeUs / 1E6, timestampUs / 1E6); in playSource()
266 timestampUs, timestampUs / 1E6); in playSource()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp961 jlong timestampUs, in android_media_MediaCodec_queueInputBuffer() argument
975 index, offset, size, timestampUs, flags, &errorDetailMsg); in android_media_MediaCodec_queueInputBuffer()
987 jlong timestampUs, in android_media_MediaCodec_queueSecureInputBuffer() argument
1101 timestampUs, in android_media_MediaCodec_queueSecureInputBuffer()