/frameworks/av/media/libstagefright/ |
D | CameraSourceTimeLapse.cpp | 249 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) { in skipFrameAndModifyTimeStamp() argument 256 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp() 268 *timestampUs = in skipFrameAndModifyTimeStamp() 272 if (*timestampUs < mStartTimeUs) { in skipFrameAndModifyTimeStamp() 274 *timestampUs = mStartTimeUs; in skipFrameAndModifyTimeStamp() 283 if (mNumFramesEncoded >= 1 && *timestampUs < in skipFrameAndModifyTimeStamp() 297 mLastTimeLapseFrameRealTimestampUs = *timestampUs; in skipFrameAndModifyTimeStamp() 298 *timestampUs = mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs; in skipFrameAndModifyTimeStamp() 304 void CameraSourceTimeLapse::dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, in dataCallbackTimestamp() argument 307 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(×tampUs); in dataCallbackTimestamp() [all …]
|
D | AMRWriter.cpp | 217 int64_t timestampUs; in threadFunc() local 218 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); in threadFunc() 219 if (timestampUs > mEstimatedDurationUs) { in threadFunc() 220 mEstimatedDurationUs = timestampUs; in threadFunc() 223 previousPausedDurationUs += (timestampUs - maxTimestampUs - 20000); in threadFunc() 226 timestampUs -= previousPausedDurationUs; in threadFunc() 228 timestampUs, previousPausedDurationUs); in threadFunc() 229 if (timestampUs > maxTimestampUs) { in threadFunc() 230 maxTimestampUs = timestampUs; in threadFunc()
|
D | AACWriter.cpp | 326 int64_t timestampUs; in threadFunc() local 327 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); in threadFunc() 328 if (timestampUs > mEstimatedDurationUs) { in threadFunc() 329 mEstimatedDurationUs = timestampUs; in threadFunc() 332 previousPausedDurationUs += (timestampUs - maxTimestampUs - mFrameDurationUs); in threadFunc() 335 timestampUs -= previousPausedDurationUs; in threadFunc() 337 timestampUs, previousPausedDurationUs); in threadFunc() 338 if (timestampUs > maxTimestampUs) { in threadFunc() 339 maxTimestampUs = timestampUs; in threadFunc()
|
D | CameraSource.cpp | 1052 bool CameraSource::shouldSkipFrameLocked(int64_t timestampUs) { in shouldSkipFrameLocked() argument 1053 if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { in shouldSkipFrameLocked() 1054 ALOGV("Drop frame at %lld/%lld us", (long long)timestampUs, (long long)mStartTimeUs); in shouldSkipFrameLocked() 1060 if (skipCurrentFrame(timestampUs)) { in shouldSkipFrameLocked() 1065 if (timestampUs <= mLastFrameTimestampUs) { in shouldSkipFrameLocked() 1067 (long long)timestampUs, (long long)mLastFrameTimestampUs); in shouldSkipFrameLocked() 1070 if (timestampUs - mLastFrameTimestampUs > mGlitchDurationThresholdUs) { in shouldSkipFrameLocked() 1075 mLastFrameTimestampUs = timestampUs; in shouldSkipFrameLocked() 1077 mFirstFrameTimeUs = timestampUs; in shouldSkipFrameLocked() 1080 if (timestampUs < mStartTimeUs) { in shouldSkipFrameLocked() [all …]
|
D | MPEG4Writer.cpp | 103 void bufferChunk(int64_t timestampUs); 2298 int64_t timestampUs = 0; in threadEntry() local 2419 CHECK(meta_data->findInt64(kKeyTime, ×tampUs)); in threadEntry() 2424 mStartTimestampUs = timestampUs; in threadEntry() 2430 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in threadEntry() 2446 timestampUs -= previousPausedDurationUs; in threadEntry() 2447 if (WARN_UNLESS(timestampUs >= 0ll, "for %s track", trackName)) { in threadEntry() 2462 timestampUs + kMaxCttsOffsetTimeUs - decodingTimeUs; in threadEntry() 2468 timestampUs = decodingTimeUs; in threadEntry() 2470 timestampUs, cttsOffsetTimeUs); in threadEntry() [all …]
|
D | SimpleDecodingSource.cpp | 279 int64_t timestampUs = 0; in doRead() local 280 CHECK(in_buf->meta_data()->findInt64(kKeyTime, ×tampUs)); in doRead() 291 timestampUs, 0 /* flags */); in doRead()
|
D | AudioSource.cpp | 382 const int64_t timestampUs = in queueInputBuffer_l() local 393 mPrevSampleTimeUs = timestampUs; in queueInputBuffer_l()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmFrameThread.cpp | 325 int64_t timestampUs = 0xdeadbeef; in run() local 343 CHECK(md->findInt64(kKeyTime, ×tampUs)); in run() 345 mStartTimeUs = timestampUs; in run() 347 timestampUs -= mStartTimeUs; in run() 350 lastDurationUs = timestampUs - lastTimestampUs; in run() 351 lastTimestampUs = timestampUs; in run() 360 int64_t durExcludingEarlierPausesUs = timestampUs - previousPausedDurationUs; in run() 367 timestampUs -= previousPausedDurationUs; in run() 368 CHECK_GE(timestampUs, 0ll); in run() 375 timestampUs * 1000 / mTimeCodeScale, in run() [all …]
|
/frameworks/av/include/media/stagefright/ |
D | CameraSourceTimeLapse.h | 138 virtual bool skipCurrentFrame(int64_t timestampUs); 145 virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType, 153 virtual void recordingFrameHandleCallbackTimestamp(int64_t timestampUs, 174 bool skipFrameAndModifyTimeStamp(int64_t *timestampUs);
|
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;} in skipCurrentFrame() 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/cmds/stagefright/ |
D | stagefright.cpp | 247 int64_t timestampUs; in playSource() local 248 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); in playSource() 253 int64_t diff = timestampUs - seekTimeUs; in playSource() 260 || (gReproduceBug == 5 && timestampUs < 0)) { in playSource() 262 seekTimeUs / 1E6, timestampUs / 1E6); in playSource() 270 timestampUs, timestampUs / 1E6); in playSource()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 1240 jlong timestampUs, in android_media_MediaCodec_queueInputBuffer() argument 1254 index, offset, size, timestampUs, flags, &errorDetailMsg); in android_media_MediaCodec_queueInputBuffer() 1266 jlong timestampUs, in android_media_MediaCodec_queueSecureInputBuffer() argument 1403 timestampUs, in android_media_MediaCodec_queueSecureInputBuffer()
|