/frameworks/av/media/libstagefright/ |
H A D | AMRWriter.cpp | 217 int64_t timestampUs; local 218 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | AACWriter.cpp | 326 int64_t timestampUs; local 327 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | AudioSource.cpp | 382 const int64_t timestampUs = local 393 mPrevSampleTimeUs = timestampUs;
|
H A D | CameraSourceTimeLapse.cpp | 239 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 320 int64_t timestampUs = buffer.mTimestamp / 1000; local [all...] |
H A D | SimpleDecodingSource.cpp | 279 int64_t timestampUs = 0; local 280 CHECK(in_buf->meta_data()->findInt64(kKeyTime, ×tampUs)); 291 timestampUs, 0 /* flags */);
|
H A D | CameraSource.cpp | 1052 bool CameraSource::shouldSkipFrameLocked(int64_t timestampUs) { argument 1053 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { 1054 ALOGV("Drop frame at %lld/%lld us", (long long)timestampUs, (long long)mStartTimeUs); 1060 if (skipCurrentFrame(timestampUs)) { 1065 if (timestampUs <= mLastFrameTimestampUs) { 1067 (long long)timestampUs, (long long)mLastFrameTimestampUs); 1070 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { 1075 mLastFrameTimestampUs = timestampUs; 1077 mFirstFrameTimeUs = timestampUs; 1080 if (timestampUs < mStartTimeU 1092 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType __unused, const sp<IMemory> &data) argument 1123 recordingFrameHandleCallbackTimestamp(int64_t timestampUs, native_handle_t* handle) argument 1204 int64_t timestampUs = buffer.mTimestamp / 1000; local [all...] |
H A D | MPEG4Writer.cpp | 103 void bufferChunk(int64_t timestampUs); 2298 int64_t timestampUs = 0; local 2419 CHECK(meta_data->findInt64(kKeyTime, ×tampUs)); 2424 mStartTimestampUs = timestampUs; 2430 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; 2446 timestampUs -= previousPausedDurationUs; 2447 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) { 2454 * Composition time: timestampUs 2462 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs; 2468 timestampUs 2827 bufferChunk(int64_t timestampUs) argument [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | CameraSource.h | 140 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, 142 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs, 219 virtual bool skipCurrentFrame(int64_t timestampUs) {return false;} argument 224 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, 227 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs, 311 bool shouldSkipFrameLocked(int64_t timestampUs);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmFrameThread.cpp | 325 int64_t timestampUs = 0xdeadbeef; local 343 CHECK(md->findInt64(kKeyTime, ×tampUs)); 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 D | stagefright.cpp | 247 int64_t timestampUs; local 248 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 253 int64_t diff = timestampUs - seekTimeUs; 260 || (gReproduceBug == 5 && timestampUs < 0)) { 262 seekTimeUs / 1E6, timestampUs / 1E6); 270 timestampUs, timestampUs / 1E6);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 1240 jlong timestampUs, 1254 index, offset, size, timestampUs, flags, &errorDetailMsg); 1266 jlong timestampUs, 1403 timestampUs, 1234 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument 1260 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument
|