diff options
author | Deva Ramasubramanian <dramasub@codeaurora.org> | 2015-09-17 12:48:59 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-09 13:39:32 -0700 |
commit | b8a89c8c3cdcaa95706897b18bff35098df0c817 (patch) | |
tree | 76d58d42a3c60a39fa18ad2d104a3b951fa83ae9 /include/media | |
parent | a9961f6786d048c247cd41363e2b784e1a5aeab4 (diff) | |
download | frameworks_av-b8a89c8c3cdcaa95706897b18bff35098df0c817.zip frameworks_av-b8a89c8c3cdcaa95706897b18bff35098df0c817.tar.gz frameworks_av-b8a89c8c3cdcaa95706897b18bff35098df0c817.tar.bz2 |
libstagefright: Allow for CameraSourceTimeLapse to be extended
Add in hooks to route CameraSourceTimeLapse creation to AVFactory so
that we can add our customizations.
Change-Id: I309a247ba6e3c5626cfba096677a6dbfeae543f3
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/CameraSourceTimeLapse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/media/stagefright/CameraSourceTimeLapse.h b/include/media/stagefright/CameraSourceTimeLapse.h index 34213be..f264d98 100644 --- a/include/media/stagefright/CameraSourceTimeLapse.h +++ b/include/media/stagefright/CameraSourceTimeLapse.h @@ -20,6 +20,7 @@ #include <pthread.h> +#include <media/stagefright/CameraSource.h> #include <utils/RefBase.h> #include <utils/threads.h> #include <utils/String16.h> @@ -56,7 +57,7 @@ public: // returning quickly. void startQuickReadReturns(); -private: +protected: // size of the encoded video. int32_t mVideoWidth; int32_t mVideoHeight; @@ -152,7 +153,7 @@ private: // the frame needs to be encoded, it returns false and also modifies // the time stamp to be one frame time ahead of the last encoded // frame's time stamp. - bool skipFrameAndModifyTimeStamp(int64_t *timestampUs); + virtual bool skipFrameAndModifyTimeStamp(int64_t *timestampUs); // Wrapper to enter threadTimeLapseEntry() static void *ThreadTimeLapseWrapper(void *me); |