/frameworks/av/media/libstagefright/ |
H A D | CameraSourceTimeLapse.cpp | 230 bool CameraSourceTimeLapse::skipCurrentFrame(int64_t timestampUs) { argument 240 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { argument 244 // to current time (timestampUs) and save frame data. 247 mLastTimeLapseFrameRealTimestampUs = *timestampUs; 259 *timestampUs = 263 if (*timestampUs < mStartTimeUs) { 264 ALOGI("set timestampUs to start time stamp %lld us", mStartTimeUs); 265 *timestampUs = mStartTimeUs; 274 if (mNumFramesEncoded >= 1 && *timestampUs < 284 // - Artificially modify timestampUs t 295 dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, const sp<IMemory> &data) argument [all...] |
H A D | AMRWriter.cpp | 228 int64_t timestampUs; local 229 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | AACWriter.cpp | 341 int64_t timestampUs; local 342 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | CameraSource.cpp | 813 void CameraSource::dataCallbackTimestamp(int64_t timestampUs, argument 815 ALOGV("dataCallbackTimestamp: timestamp %lld us", timestampUs); 817 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { 818 ALOGV("Drop frame at %lld/%lld us", timestampUs, mStartTimeUs); 824 CHECK(timestampUs > mLastFrameTimestampUs); 825 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { 832 if (skipCurrentFrame(timestampUs)) { 837 mLastFrameTimestampUs = timestampUs; 839 mFirstFrameTimeUs = timestampUs; 842 if (timestampUs < mStartTimeU [all...] |
H A D | MPEG4Writer.cpp | 65 void bufferChunk(int64_t timestampUs); 2079 int64_t timestampUs = 0; local 2183 CHECK(meta_data->findInt64(kKeyTime, ×tampUs)); 2188 mStartTimestampUs = timestampUs; 2194 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; 2202 timestampUs -= previousPausedDurationUs; 2203 CHECK_GE(timestampUs, 0ll); 2206 * Composition time: timestampUs 2214 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs; 2216 timestampUs 2549 bufferChunk(int64_t timestampUs) argument [all...] |
H A D | AudioSource.cpp | 350 const int64_t timestampUs = local 361 mPrevSampleTimeUs = timestampUs;
|
H A D | OMXCodec.cpp | 3018 int64_t timestampUs = 0; local 3123 timestampUs = lastBufferTimeUs; 3156 int64_t coalescedDurationUs = lastBufferTimeUs - timestampUs; 3189 timestampUs, timestampUs / 1E6); 3193 flags, timestampUs);
|
/frameworks/av/include/media/stagefright/ |
H A D | CameraSourceTimeLapse.h | 131 virtual bool skipCurrentFrame(int64_t timestampUs); 136 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, 153 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
|
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/cmds/stagefright/ |
H A D | stagefright.cpp | 244 int64_t timestampUs; local 245 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 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 D | android_media_MediaCodec.cpp | 503 jlong timestampUs, 517 index, offset, size, timestampUs, flags, &errorDetailMsg); 529 jlong timestampUs, 639 timestampUs, 497 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument 523 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument
|