Searched defs:timestampUs (Results 1 - 11 of 11) sorted by relevance

/frameworks/av/media/libstagefright/
H A DAMRWriter.cpp230 int64_t timestampUs; local
231 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
232 if (timestampUs > mEstimatedDurationUs) {
233 mEstimatedDurationUs = timestampUs;
236 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000);
239 timestampUs -= previousPausedDurationUs;
241 timestampUs, previousPausedDurationUs);
242 if (timestampUs > maxTimestampUs) {
243 maxTimestampUs = timestampUs;
H A DAACWriter.cpp344 int64_t timestampUs; local
345 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
346 if (timestampUs > mEstimatedDurationUs) {
347 mEstimatedDurationUs = timestampUs;
350 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs);
353 timestampUs -= previousPausedDurationUs;
355 timestampUs, previousPausedDurationUs);
356 if (timestampUs > maxTimestampUs) {
357 maxTimestampUs = timestampUs;
H A DAudioSource.cpp349 const int64_t timestampUs = local
360 mPrevSampleTimeUs = timestampUs;
H A DCameraSourceTimeLapse.cpp237 bool CameraSourceTimeLapse::skipCurrentFrame(int64_t /* timestampUs */) {
247 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { argument
251 // to current time (timestampUs) and save frame data.
254 mLastTimeLapseFrameRealTimestampUs = *timestampUs;
266 *timestampUs =
270 if (*timestampUs < mStartTimeUs) {
271 ALOGI("set timestampUs to start time stamp %" PRId64 " us", mStartTimeUs);
272 *timestampUs = mStartTimeUs;
281 if (mNumFramesEncoded >= 1 && *timestampUs <
291 // - Artificially modify timestampUs t
302 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, const sp<IMemory> &data) argument
[all...]
H A DCameraSource.cpp853 void CameraSource::dataCallbackTimestamp(int64_t timestampUs, argument
855 ALOGV("dataCallbackTimestamp: timestamp %" PRId64 " us", timestampUs);
857 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) {
858 ALOGV("Drop frame at %" PRId64 "/%" PRId64 " us", timestampUs, mStartTimeUs);
864 CHECK(timestampUs > mLastFrameTimestampUs);
865 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) {
872 if (skipCurrentFrame(timestampUs)) {
877 mLastFrameTimestampUs = timestampUs;
879 mFirstFrameTimeUs = timestampUs;
882 if (timestampUs < mStartTimeU
[all...]
H A DOMXCodec.cpp3120 int64_t timestampUs = 0; local
3225 timestampUs = lastBufferTimeUs;
3258 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs;
3291 timestampUs, timestampUs / 1E6);
3295 flags, timestampUs);
H A DMPEG4Writer.cpp79 void bufferChunk(int64_t timestampUs);
2091 int64_t timestampUs = 0; local
2196 CHECK(meta_data->findInt64(kKeyTime, &timestampUs));
2201 mStartTimestampUs = timestampUs;
2207 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
2223 timestampUs -= previousPausedDurationUs;
2224 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) {
2231 * Composition time: timestampUs
2239 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs;
2245 timestampUs
2603 bufferChunk(int64_t timestampUs) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DCameraSource.h128 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
180 virtual bool skipCurrentFrame(int64_t timestampUs) {return false;} argument
185 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.cpp325 int64_t timestampUs = 0xdeadbeef; local
343 CHECK(md->findInt64(kKeyTime, &timestampUs));
345 mStartTimeUs = timestampUs;
347 timestampUs -= mStartTimeUs;
350 lastDurationUs = timestampUs - lastTimestampUs;
351 lastTimestampUs = timestampUs;
360 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
367 timestampUs -= previousPausedDurationUs;
368 CHECK_GE(timestampUs, 0ll);
375 timestampUs * 100
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp243 int64_t timestampUs; local
244 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
249 int64_t diff = timestampUs - seekTimeUs;
256 || (gReproduceBug == 5 && timestampUs < 0)) {
258 seekTimeUs / 1E6, timestampUs / 1E6);
266 timestampUs, timestampUs / 1E6);
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp961 jlong timestampUs,
975 index, offset, size, timestampUs, flags, &errorDetailMsg);
987 jlong timestampUs,
1101 timestampUs,
955 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
981 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument

Completed in 5013 milliseconds