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

/frameworks/av/media/libstagefright/
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 DAACWriter.cpp338 int64_t timestampUs; local
339 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
340 if (timestampUs > mEstimatedDurationUs) {
341 mEstimatedDurationUs = timestampUs;
344 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs);
347 timestampUs -= previousPausedDurationUs;
349 timestampUs, previousPausedDurationUs);
350 if (timestampUs > maxTimestampUs) {
351 maxTimestampUs = timestampUs;
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 DCameraSource.cpp776 void CameraSource::dataCallbackTimestamp(int64_t timestampUs, argument
778 ALOGV("dataCallbackTimestamp: timestamp %lld us", timestampUs);
780 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) {
781 ALOGV("Drop frame at %lld/%lld us", timestampUs, mStartTimeUs);
787 CHECK(timestampUs > mLastFrameTimestampUs);
788 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) {
795 if (skipCurrentFrame(timestampUs)) {
800 mLastFrameTimestampUs = timestampUs;
802 mFirstFrameTimeUs = timestampUs;
805 if (timestampUs < mStartTimeU
[all...]
H A DMPEG4Writer.cpp64 void bufferChunk(int64_t timestampUs);
1857 int64_t timestampUs = 0; local
1958 CHECK(meta_data->findInt64(kKeyTime, &timestampUs));
1963 mStartTimestampUs = timestampUs;
1969 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
1977 timestampUs -= previousPausedDurationUs;
1978 CHECK_GE(timestampUs, 0ll);
1981 * Composition time: timestampUs
1989 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs;
1991 timestampUs
2318 bufferChunk(int64_t timestampUs) argument
[all...]
H A DAudioSource.cpp352 const int64_t timestampUs = local
363 mPrevSampleTimeUs = timestampUs;
H A DOMXCodec.cpp2991 int64_t timestampUs = 0; local
3111 timestampUs = lastBufferTimeUs;
3144 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs;
3177 timestampUs, timestampUs / 1E6);
3181 flags, timestampUs);
/frameworks/av/include/media/stagefright/
H A DCameraSourceTimeLapse.h126 virtual bool skipCurrentFrame(int64_t timestampUs);
131 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
148 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
H A DCameraSource.h119 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
170 virtual bool skipCurrentFrame(int64_t timestampUs) {return false;} argument
175 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
/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);
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp443 jlong timestampUs,
457 index, offset, size, timestampUs, flags, &errorDetailMsg);
469 jlong timestampUs,
579 timestampUs,
437 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
463 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument

Completed in 231 milliseconds