/frameworks/av/media/libstagefright/ |
H A D | AMRWriter.cpp | 230 int64_t timestampUs; local 231 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | AACWriter.cpp | 344 int64_t timestampUs; local 345 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | AudioSource.cpp | 349 const int64_t timestampUs = local 360 mPrevSampleTimeUs = timestampUs;
|
H A D | CameraSourceTimeLapse.cpp | 237 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 D | CameraSource.cpp | 853 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 D | OMXCodec.cpp | 3120 int64_t timestampUs = 0; local 3225 timestampUs = lastBufferTimeUs; 3258 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs; 3291 timestampUs, timestampUs / 1E6); 3295 flags, timestampUs);
|
H A D | MPEG4Writer.cpp | 79 void bufferChunk(int64_t timestampUs); 2091 int64_t timestampUs = 0; local 2196 CHECK(meta_data->findInt64(kKeyTime, ×tampUs)); 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 D | CameraSource.h | 128 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 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 | 243 int64_t timestampUs; local 244 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | android_media_MediaCodec.cpp | 961 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
|