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

/frameworks/av/media/libstagefright/
H A DAMRWriter.cpp228 int64_t timestampUs; local
229 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
230 if (timestampUs > mEstimatedDurationUs) {
231 mEstimatedDurationUs = timestampUs;
234 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000);
237 timestampUs -= previousPausedDurationUs;
239 timestampUs, previousPausedDurationUs);
240 if (timestampUs > maxTimestampUs) {
241 maxTimestampUs = timestampUs;
H A DAACWriter.cpp341 int64_t timestampUs; local
342 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
343 if (timestampUs > mEstimatedDurationUs) {
344 mEstimatedDurationUs = timestampUs;
347 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs);
350 timestampUs -= previousPausedDurationUs;
352 timestampUs, previousPausedDurationUs);
353 if (timestampUs > maxTimestampUs) {
354 maxTimestampUs = timestampUs;
H A DAudioSource.cpp350 const int64_t timestampUs = local
361 mPrevSampleTimeUs = timestampUs;
H A DCameraSourceTimeLapse.cpp224 bool CameraSourceTimeLapse::skipCurrentFrame(int64_t timestampUs) { argument
234 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { argument
238 // to current time (timestampUs) and save frame data.
241 mLastTimeLapseFrameRealTimestampUs = *timestampUs;
253 *timestampUs =
257 if (*timestampUs < mStartTimeUs) {
258 ALOGI("set timestampUs to start time stamp %lld us", mStartTimeUs);
259 *timestampUs = mStartTimeUs;
268 if (mNumFramesEncoded >= 1 && *timestampUs <
278 // - Artificially modify timestampUs t
289 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, const sp<IMemory> &data) argument
[all...]
H A DCameraSource.cpp802 void CameraSource::dataCallbackTimestamp(int64_t timestampUs, argument
804 ALOGV("dataCallbackTimestamp: timestamp %lld us", timestampUs);
806 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) {
807 ALOGV("Drop frame at %lld/%lld us", timestampUs, mStartTimeUs);
813 CHECK(timestampUs > mLastFrameTimestampUs);
814 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) {
821 if (skipCurrentFrame(timestampUs)) {
826 mLastFrameTimestampUs = timestampUs;
828 mFirstFrameTimeUs = timestampUs;
831 if (timestampUs < mStartTimeU
[all...]
H A DOMXCodec.cpp3012 int64_t timestampUs = 0; local
3117 timestampUs = lastBufferTimeUs;
3150 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs;
3183 timestampUs, timestampUs / 1E6);
3187 flags, timestampUs);
H A DMPEG4Writer.cpp65 void bufferChunk(int64_t timestampUs);
1980 int64_t timestampUs = 0; local
2081 CHECK(meta_data->findInt64(kKeyTime, &timestampUs));
2086 mStartTimestampUs = timestampUs;
2092 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
2100 timestampUs -= previousPausedDurationUs;
2101 CHECK_GE(timestampUs, 0ll);
2104 * Composition time: timestampUs
2112 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs;
2114 timestampUs
2443 bufferChunk(int64_t timestampUs) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DCameraSource.h119 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
171 virtual bool skipCurrentFrame(int64_t timestampUs) {return false;} argument
176 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp446 jlong timestampUs,
460 index, offset, size, timestampUs, flags, &errorDetailMsg);
472 jlong timestampUs,
582 timestampUs,
440 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
466 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp244 int64_t timestampUs; local
245 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
250 int64_t diff = timestampUs - seekTimeUs;
257 || (gReproduceBug == 5 && timestampUs < 0)) {
259 seekTimeUs / 1E6, timestampUs / 1E6);
267 timestampUs, timestampUs / 1E6);

Completed in 101 milliseconds