Loading media/libmediaplayerservice/StagefrightRecorder.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -820,6 +820,9 @@ status_t StagefrightRecorder::prepareInternal() { break; } ALOGV("Recording frameRate: %d captureFps: %f", mFrameRate, mCaptureFps); return status; } Loading media/libstagefright/omx/GraphicBufferSource.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -775,7 +775,9 @@ status_t GraphicBufferSource::signalEndOfInputStream() { int64_t GraphicBufferSource::getTimestamp(const BufferItem &item) { int64_t timeUs = item.mTimestamp / 1000; if (mTimePerCaptureUs > 0ll) { if (mTimePerCaptureUs > 0ll && (mTimePerCaptureUs > 2 * mTimePerFrameUs || mTimePerFrameUs > 2 * mTimePerCaptureUs)) { // Time lapse or slow motion mode if (mPrevCaptureUs < 0ll) { // first capture Loading @@ -801,6 +803,8 @@ int64_t GraphicBufferSource::getTimestamp(const BufferItem &item) { return mPrevFrameUs; } else if (mMaxTimestampGapUs > 0ll) { //TODO: Fix the case when mMaxTimestampGapUs and mTimePerCaptureUs are both set. /* Cap timestamp gap between adjacent frames to specified max * * In the scenario of cast mirroring, encoding could be suspended for Loading Loading
media/libmediaplayerservice/StagefrightRecorder.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -820,6 +820,9 @@ status_t StagefrightRecorder::prepareInternal() { break; } ALOGV("Recording frameRate: %d captureFps: %f", mFrameRate, mCaptureFps); return status; } Loading
media/libstagefright/omx/GraphicBufferSource.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -775,7 +775,9 @@ status_t GraphicBufferSource::signalEndOfInputStream() { int64_t GraphicBufferSource::getTimestamp(const BufferItem &item) { int64_t timeUs = item.mTimestamp / 1000; if (mTimePerCaptureUs > 0ll) { if (mTimePerCaptureUs > 0ll && (mTimePerCaptureUs > 2 * mTimePerFrameUs || mTimePerFrameUs > 2 * mTimePerCaptureUs)) { // Time lapse or slow motion mode if (mPrevCaptureUs < 0ll) { // first capture Loading @@ -801,6 +803,8 @@ int64_t GraphicBufferSource::getTimestamp(const BufferItem &item) { return mPrevFrameUs; } else if (mMaxTimestampGapUs > 0ll) { //TODO: Fix the case when mMaxTimestampGapUs and mTimePerCaptureUs are both set. /* Cap timestamp gap between adjacent frames to specified max * * In the scenario of cast mirroring, encoding could be suspended for Loading