summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Android.mk
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-07-12 09:17:14 -0700
committerNipun Kwatra <nkwatra@google.com>2010-07-19 18:22:56 -0700
commit65e7e6facda89927cb26594b3b65ae81b3235ebc (patch)
tree89129cc7a87973b4218e3c899ec439a8ac48938b /media/libstagefright/Android.mk
parent6113efbd1e5f7495b80bf64f7ee90a571e3cf6a6 (diff)
downloadframeworks_av-65e7e6facda89927cb26594b3b65ae81b3235ebc.zip
frameworks_av-65e7e6facda89927cb26594b3b65ae81b3235ebc.tar.gz
frameworks_av-65e7e6facda89927cb26594b3b65ae81b3235ebc.tar.bz2
Adding support for timelapse capture using still camera's takepicture.
Also moving entire implementation into a new class CameraSourceTimeLapse which inherits from CameraSource. For timelapse capture using still camera, we start a thread which runs a loop in which it calls Camera::takePicture() and then sleeps until the next frame should be captured. The function dataCallback() handles the callback from the camera with the raw image data. This function copies the data and creates an artificial timestamp corresponding to one frame time ahead of the last encoded frame's time stamp. It then calls dataCallbackTimestamp() of the base class which will think that it recieved the frame from a video camera and proceed as usual. For moving the implementation to the subclass CameraSourceTimeLapse, added a few virtual functions to CameraSource, which do the current thing for the base class, but specialized things for CameraSourceTimeLapse. E.g. startCameraRecording() in the base class just calls mCamera->startRecording(), while in CameraSourceTimeLapse it may start a thread for the still camera case. Change-Id: Ib787f24bd2e1f41681513f0257e1c4ca10a2b4de
Diffstat (limited to 'media/libstagefright/Android.mk')
-rw-r--r--media/libstagefright/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index 89bfc1f..bf5643d 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -10,6 +10,7 @@ LOCAL_SRC_FILES:= \
AudioSource.cpp \
AwesomePlayer.cpp \
CameraSource.cpp \
+ CameraSourceTimeLapse.cpp \
DataSource.cpp \
ESDS.cpp \
FileSource.cpp \