9c7f845780d62ea09469a8dac7117cc01adfea5c |
|
30-Oct-2013 |
Lajos Molnar <lajos@google.com> |
StageFrightRecorder: do not use meta-data mode for software encoders Camera HAL v1 uses vendor-specific camera-source meta-data mode, but software encoders use generic gralloc-source mode, so they are not compatible. Change-Id: I0d1bab8eada26dcb70c97b1eec83f06d1f331239 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 11446505
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
99617adda9bc46c43f511f0940bc735c73de61de |
|
13-Mar-2013 |
Mathias Agopian <mathias@google.com> |
remove uses of Surface in favor or IGraphicBufferProducer Change-Id: I13d7a9553aa335bca790a3a59d389d7533c83d57
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
ceb388d6c03c38b96dc41c0ea4804b749aa077c4 |
|
19-Feb-2013 |
Eino-Ville Talvala <etalvala@google.com> |
CameraService and Stagefright: Support AppOps Camera: - Signal to AppOpsService when camera usage starts and stops - Listen to permissions revocations and act on them - Currently just kill camera connection when permissions lost Stagefright: - Pass on client name, UID to camera as needed Bug: 8181262 Change-Id: I9e33c9d05e9daa77dbb2d795045d08eb887ec8f0
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
b44c9d2bdc0d5b9cb03254022a58e017b516e9e6 |
|
03-Feb-2012 |
James Dong <jdong@google.com> |
Don't call virtual functions in the destructor for audio and camera source classes Change-Id: Ia74ffc1c0cbd7971697f5e3c476e340ec5c7727a
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
e8e5f86e9e310b065596c8cbbca1543eb833dee1 |
|
20-Nov-2011 |
James Dong <jdong@google.com> |
Fix log spamming during time lapse video recording Change-Id: I4fc0809203684ebb02eaf217d7abad00aefc898f related-to-bug: 5626569
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
3cecf640c4daf2df616b278bd9986018c8182908 |
|
30-Jun-2011 |
James Dong <jdong@google.com> |
Do not support still image capture mode for timelapse video recording related-to-bug: 4973779 Change-Id: Ica665217ab10247b2242acc4e93d4fe9f83e3f45
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
4ca2c7c913f8bd4ada13aca56d36045d42d1e00f |
|
01-Jun-2011 |
Wu-cheng Li <wuchengli@google.com> |
Add framework support for camcorder zoom. The purpose of ICameraRecordingProxy and ICameraRecordingProxyListener is to allow applications using the camera during recording. Camera service allows only one client at a time. Since camcorder application needs to own the camera to do things like zoom, the media recorder cannot access the camera directly during recording. So ICameraRecordingProxy is a proxy of ICamera, which allows the media recorder to start/stop the recording and release recording frames. ICameraRecordingProxyListener is an interface that allows the recorder to receive video frames during recording. ICameraRecordingProxy startRecording() stopRecording() releaseRecordingFrame() ICameraRecordingProxyListener dataCallbackTimestamp() The camcorder app opens the camera and starts the preview. The app passes ICamera and ICameraRecordingProxy to the media recorder by MediaRecorder::setCamera(). The recorder uses ICamera to setup the camera in MediaRecorder::start(). After setup, the recorder disconnects from camera service. The recorder calls ICameraRecordingProxy::startRecording() and passes a ICameraRecordingProxyListener to the app. The app connects back to camera service and starts the recording. The app owns the camera and can do things like zoom. The media recorder receives the video frames from the listener and releases them by ICameraRecordingProxy::releaseRecordingFrame. The recorder calls ICameraRecordingProxy::stopRecording() to stop the recording. The call sequences are as follows: 1. The app: Camera.unlock(). 2. The app: MediaRecorder.setCamera(). 3. Start recording (1) The app: MediaRecorder.start(). (2) The recorder: ICamera.unlock() and ICamera.disconnect(). (3) The recorder: ICameraRecordingProxy.startRecording(). (4) The app: ICamera.reconnect(). (5) The app: ICamera.startRecording(). 4. During recording (1) The recorder: receive frames from ICameraRecordingProxyListener.dataCallbackTimestamp() (2) The recorder: release frames by ICameraRecordingProxy.releaseRecordingFrame(). 5. Stop recording (1) The app: MediaRecorder.stop() (2) The recorder: ICameraRecordingProxy.stopRecording(). (3) The app: ICamera.stopRecording(). bug:2644213 Change-Id: I15269397defc25cbbcae16abc071c8349c123122
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
28934a90e168291f6c77c56e8a05f272e5151bbd |
|
05-Jan-2011 |
James Dong <jdong@google.com> |
Use video output if necessary for timelapse video recording Change-Id: I88d0cc824f0fbf8b2f392fbc23c69b5bfefda1b8
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
54ff19ac69ace7c05ea90d225e26dab3b133f487 |
|
08-Oct-2010 |
James Dong <jdong@google.com> |
Move Camera specific logic out from StagefrightRecorder to CameraSource o updated comments and streamlined the logic in checkVideoSize() and checkFrameRate() as suggested Change-Id: I49d04ac7998d4a215997aa63555dfb6e814e38d3
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
78eff720c86eb6d4e3d45a144df60b2ca464d2d4 |
|
16-Sep-2010 |
Nipun Kwatra <nkwatra@google.com> |
Implemented frequent read returns for quick stop in time lapse. If the frame capture interval is large, read will block for a long time. Due to the way the mediaRecorder framework works, a stop() call from mediaRecorder waits until the read returns, causing a long wait for stop() to return. To avoid this, we return a copy of the last read frame with the same time stamp if a frame is not available quickly. This keeps the read() call from blocking too long. This method is triggered when startQuickReadReturns() is called on CameraSourceTimeLapse. In the still camera case, also using waitRelative on Condition instaed of sleeping, so that we can wake it up. Also for the idle check instead of sleeping, we now wait on a condition variable, which is woken up when the last takePicture callback gets called. Change-Id: Ia74386e175536aee0f44ae2f8b114c353d3d72f5
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
155e833a7a5fc3e193691324cf9326da1bc3289a |
|
02-Sep-2010 |
Nipun Kwatra <nkwatra@google.com> |
Moving decision to use still camera to CameraSourceTimeLapse CameraSourceTimeLapse now decides whether to use still or video camera automatically. It checks if the passed in size is a valid preview size and if it is, then uses the video camera else uses the still camera. Removed from StagefrightRecorder the support to set parameter useStillCameraForTimeLapse. Change-Id: I71f5b0fc7080ca524792381efe918d22e41a7f36
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
40e2f3f9b41f44bdb59f7708a421b87f169a6ede |
|
31-Jul-2010 |
Nipun Kwatra <nkwatra@google.com> |
Implementing getSupportedPictureSizes Go through all the supported picture sizes and choose the smallest one with both dimensions higher than the passed in video width and height. Change-Id: I4e9fe7a6384a0feeb9e069239ec68c70fb5f3033
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
c4e47d1e81c4e4403663cb911e98dbf3ada9942c |
|
28-Jul-2010 |
Nipun Kwatra <nkwatra@google.com> |
Support for video size to be different from captured picture size. Adding support to allow video size to be different than the supported picture sizes. A picture size larger than the demanded video size is chosen. Captured pictures are then cropped to the size of the desired video size. Cropping is done from the the center portion of the picture. Change-Id: I6bcbe16f94b6ecbcf28b7f46826a81b4b6b8cbc3
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
e4e0a6994d39c4a7cba09c5fff442b2dca1df8f8 |
|
21-Jul-2010 |
Nipun Kwatra <nkwatra@google.com> |
Allowing setting of time lapse parameters through MediaRecorder.java added setTimeLapseParameters() to MediaRecorder.java and SetParameter support in StagefrightRecorder to allow enabling time lapse and setting the corresponding parameters. Change-Id: I509040aa71f8d3fc37337b0894a81d9c0fd7a40a
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
0aacf105eea098a0b47761a4a9a5c4d820611f2d |
|
19-Jul-2010 |
Nipun Kwatra <nkwatra@google.com> |
Restart preview after each takePicture is done. Preview is called when CAMERA_MSG_COMPRESSED_IMAGE is recieved by dataCallback(). It needs to be started as a new thread so that the callback can return, and the camera can know that takePicture() is done. Change-Id: I4d0febbc993aac43b37f9f4a824e9c7b8785f19e
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|
65e7e6facda89927cb26594b3b65ae81b3235ebc |
|
12-Jul-2010 |
Nipun Kwatra <nkwatra@google.com> |
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
/frameworks/av/include/media/stagefright/CameraSourceTimeLapse.h
|