diff options
author | Chong Zhang <chz@google.com> | 2013-12-26 01:38:35 -0800 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-02-05 15:46:26 -0800 |
commit | 72cecca17d735db6532c45f0a7e10c47ee6f065a (patch) | |
tree | d2f532b1909ea605f10e6044d2f027e7e58a8575 /media/libstagefright/omx/GraphicBufferSource.h | |
parent | 412d4744efae64083e4f99a664e3efaba031af48 (diff) | |
download | frameworks_av-72cecca17d735db6532c45f0a7e10c47ee6f065a.zip frameworks_av-72cecca17d735db6532c45f0a7e10c47ee6f065a.tar.gz frameworks_av-72cecca17d735db6532c45f0a7e10c47ee6f065a.tar.bz2 |
Change StagefrightRecorder to use MediaCodec
Bug: 12305192
Change-Id: I72d7cb571be5bd348b58ad650f3269d24c15d350
Diffstat (limited to 'media/libstagefright/omx/GraphicBufferSource.h')
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.h b/media/libstagefright/omx/GraphicBufferSource.h index 3b0e454..153f2a0 100644 --- a/media/libstagefright/omx/GraphicBufferSource.h +++ b/media/libstagefright/omx/GraphicBufferSource.h @@ -118,6 +118,10 @@ public: // of suspension on input. status_t setMaxTimestampGapUs(int64_t maxGapUs); + // Sets the start time us (in system time), samples before which should + // be dropped and not submitted to encoder + void setSkipFramesBeforeUs(int64_t startTimeUs); + protected: // BufferQueue::ConsumerListener interface, called when a new frame of // data is available. If we're executing and a codec buffer is @@ -223,16 +227,17 @@ private: enum { kRepeatLastFrameCount = 10, }; - int64_t mRepeatAfterUs; - int64_t mMaxTimestampGapUs; KeyedVector<int64_t, int64_t> mOriginalTimeUs; + int64_t mMaxTimestampGapUs; int64_t mPrevOriginalTimeUs; int64_t mPrevModifiedTimeUs; + int64_t mSkipFramesBeforeNs; sp<ALooper> mLooper; sp<AHandlerReflector<GraphicBufferSource> > mReflector; + int64_t mRepeatAfterUs; int32_t mRepeatLastFrameGeneration; int64_t mRepeatLastFrameTimestamp; int32_t mRepeatLastFrameCount; |