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

/frameworks/av/media/libstagefright/
H A DAMRWriter.cpp217 int64_t timestampUs; local
218 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
219 if (timestampUs > mEstimatedDurationUs) {
220 mEstimatedDurationUs = timestampUs;
223 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000);
226 timestampUs -= previousPausedDurationUs;
228 timestampUs, previousPausedDurationUs);
229 if (timestampUs > maxTimestampUs) {
230 maxTimestampUs = timestampUs;
H A DAACWriter.cpp326 int64_t timestampUs; local
327 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
328 if (timestampUs > mEstimatedDurationUs) {
329 mEstimatedDurationUs = timestampUs;
332 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs);
335 timestampUs -= previousPausedDurationUs;
337 timestampUs, previousPausedDurationUs);
338 if (timestampUs > maxTimestampUs) {
339 maxTimestampUs = timestampUs;
H A DCameraSourceTimeLapse.cpp239 bool CameraSourceTimeLapse::skipCurrentFrame(int64_t /* timestampUs */) {
249 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { argument
253 // to current time (timestampUs) and save frame data.
256 mLastTimeLapseFrameRealTimestampUs = *timestampUs;
268 *timestampUs =
272 if (*timestampUs < mStartTimeUs) {
273 ALOGI("set timestampUs to start time stamp %" PRId64 " us", mStartTimeUs);
274 *timestampUs = mStartTimeUs;
283 if (mNumFramesEncoded >= 1 && *timestampUs <
293 // - Artificially modify timestampUs t
304 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, const sp<IMemory> &data) argument
311 recordingFrameHandleCallbackTimestamp(int64_t timestampUs, native_handle_t* handle) argument
331 int64_t timestampUs = buffer.mTimestamp / 1000; local
[all...]
H A DSimpleDecodingSource.cpp286 int64_t timestampUs = 0; local
287 CHECK(in_buf->meta_data()->findInt64(kKeyTime, &timestampUs));
307 timestampUs, 0 /* flags */);
H A DAudioSource.cpp396 const int64_t timestampUs = local
407 mPrevSampleTimeUs = timestampUs;
H A DCameraSource.cpp1098 bool CameraSource::shouldSkipFrameLocked(int64_t timestampUs) { argument
1099 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) {
1100 ALOGV("Drop frame at %lld/%lld us", (long long)timestampUs, (long long)mStartTimeUs);
1106 if (skipCurrentFrame(timestampUs)) {
1111 if (timestampUs <= mLastFrameTimestampUs) {
1113 (long long)timestampUs, (long long)mLastFrameTimestampUs);
1116 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) {
1121 mLastFrameTimestampUs = timestampUs;
1123 mFirstFrameTimeUs = timestampUs;
1126 if (timestampUs < mStartTimeU
1138 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType __unused, const sp<IMemory> &data) argument
1187 recordingFrameHandleCallbackTimestamp(int64_t timestampUs, native_handle_t* handle) argument
1236 int64_t timestampUs = timestampsUs[i]; local
1324 int64_t timestampUs = buffer.mTimestamp / 1000; local
[all...]
H A DMPEG4Writer.cpp115 void bufferChunk(int64_t timestampUs);
2547 int64_t timestampUs = 0; local
2698 CHECK(meta_data->findInt64(kKeyTime, &timestampUs));
2712 mStartTimestampUs = timestampUs;
2718 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
2738 timestampUs -= previousPausedDurationUs;
2739 timestampPair.first = timestampUs;
2740 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) {
2749 * Composition time: timestampUs
2770 timestampUs
3152 bufferChunk(int64_t timestampUs) argument
[all...]
/frameworks/av/media/libmedia/omx/1.0/
H A DWOmxNode.cpp392 uint64_t timestampUs, const hidl_handle& fence) {
401 toOMXTicks(timestampUs),
390 emptyBuffer( uint32_t buffer, const CodecBuffer& codecBuffer, uint32_t flags, uint64_t timestampUs, const hidl_handle& fence) argument
/frameworks/av/media/libstagefright/omx/1.0/
H A DWOmxNode.cpp395 uint64_t timestampUs, const hidl_handle& fence) {
404 toOMXTicks(timestampUs),
393 emptyBuffer( uint32_t buffer, const CodecBuffer& codecBuffer, uint32_t flags, uint64_t timestampUs, const hidl_handle& fence) argument
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.cpp331 int64_t timestampUs = 0xdeadbeef; local
349 CHECK(md->findInt64(kKeyTime, &timestampUs));
351 mStartTimeUs = timestampUs;
353 timestampUs -= mStartTimeUs;
356 lastDurationUs = timestampUs - lastTimestampUs;
357 lastTimestampUs = timestampUs;
366 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs;
373 timestampUs -= previousPausedDurationUs;
374 CHECK_GE(timestampUs, 0ll);
381 timestampUs * 100
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp250 int64_t timestampUs; local
251 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
256 int64_t diff = timestampUs - seekTimeUs;
263 || (gReproduceBug == 5 && timestampUs < 0)) {
265 seekTimeUs / 1E6, timestampUs / 1E6);
273 timestampUs, timestampUs / 1E6);
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp1261 jlong timestampUs,
1275 index, offset, size, timestampUs, flags, &errorDetailMsg);
1287 jlong timestampUs,
1424 timestampUs,
1255 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
1281 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument

Completed in 1167 milliseconds