summaryrefslogtreecommitdiffstats
path: root/camera
Commit message (Collapse)AuthorAgeFilesLines
* libcameraservice: Remove references to playShutterSoundOnlySteve Kondik2010-12-142-22/+15
| | | | | | Removing cruft from a CAF patch. This fixes the shutter sound. Change-Id: Ibefb50e7404a8a73336ae055ca0f6e815aed909b
* platform/frameworks/base: Call stopRecording first then start beepSignalDaniel Trevino Perez2010-12-141-3/+4
| | | | | | | | - Prioritize stopRecording call to avoid recording stop beep from being recorded onto file. Change-Id: Ia8c15b18699406ee2d32635fc83adecd290d0be1 CRs-Fixed: 234429
* Camera: Call startRecording from CameraService layer.Apurva Rajguru2010-12-141-3/+2
| | | | | | | | Enable the MSG_VIDEO_FRAME message in startRecordingMode(). This will ensure that the mHardware->startRecording() call is issued from CameraService. Change-Id: I966c7d8955995417fa6fe0317615da4646b78878
* Camera: Disable Video_Frame message before stop recording callMohan Kandra2010-12-141-1/+1
| | | | | | | | Disable VIDEO_FRAME message before stop recording is issed, which will avoid the race condition that happens between stop recording and receivePreviewframe on mRecordWait lock. Change-Id: I3da4a22a1423390f5714edb8d24aef215148bee1
* cameraservice: Use default overlay format unless flag set.Steve Kondik2010-11-123-1/+37
| | | | | | | | Also destroy previous overlay and handle NULL instance. Define BOARD_OVERLAY_FORMAT_YCbCr_420_SP for 7X30. Change-Id: Ib2ca5e17aecd8d19841c0357594b3c4fed0a01d6
* camera: Wrap getBufferInfo code in ifdefs.Steve Kondik2010-11-125-15/+29
| | | | | | Define BOARD_CAMERA_USE_GETBUFFERINFO if required. Change-Id: Ieac0bed92c8a1517a6a7730b9636f3591c55bbcb
* cameraservice: Changes for using overlay on 7X30Steve Kondik2010-11-112-26/+47
| | | | | | | | * Handle NULL instance of camera HAL * Use YCbCr_420_SP overlay format * Properly destroy overlay before starting new snapshot Change-Id: Ie72552f508f1fdc818928bf5329640b3fb9f9673
* Camera: Add support for getBufferInfo APISteve Kondik2010-11-114-1/+31
| | | | | | | | Reworked to avoid ABI breakage. This reverts commit b5d9f64973f06b45423b2216050aa0d2d2513f96. Change-Id: I602faec8e85d80a30dadceed8c7942dc133989b8
* Revert "Camera: Add support for getBufferInfo API"cyanogen2010-09-234-31/+1
| | | | This reverts commit 57495aafa6ab172c2d2cfe32ca8a4fa57f98cb9b.
* Camera: Add support for getBufferInfo APIKiran Kumar H N2010-09-224-1/+31
| | | | | | | | | Add getBufferInfo() API which gets the recording buffer information from the HAL layer. The opencore uses this API to query the details of the recording buffers allocated by the HAL layer. Add getBufferInfo() to Stub Camera to avoid compilation error for generic/emulator builds.
* Camera : Clean up old camera client properlySravank2010-09-051-4/+14
| | | | | | | | | Terminate the old client connection properly when an ANR occurs and the user requests to re-launch the camera application. CRs-fixed: 250354 Change-Id: I9989aa32ff1ecd1a3a49a3155a27d02a18a5a87d
* Merge branch 'froyo' of ↵Steve Kondik2010-07-302-2/+0
|\ | | | | | | git://android.git.kernel.org/platform/frameworks/base into froyo
| * fix inaccurate copyrightsJean-Baptiste Queru2010-07-292-2/+0
| | | | | | | | Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
| * Flush binder buffer after setting raw heap to avoid leaking a reference.Chih-Chung Chang2010-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was: 1. In handleShutter(), thread A in CameraService calls registerBuffers(IMemoryHeap) and it's received by thread B in system_server. [transaction 1] 2. While thread A is waiting for the reply, thread B calls back to thread A to get the id of the heap (IMemoryHeap.getHeapID). [transaction 2] 3. Thread A replies transaction 2 and is preemptied in kernel. Thread B gets the reply and finishes registerBuffers and send reply for transaction 1. 4. When thread A runs again, it gets the reply for transaction 1 and returns to handleShutter(). 5. At this point the transaction buffer for transaction 2 (which holds a reference to IMemoryHeap) is not freed because the BC_FREE_BUFFER command is kept in thread A's local command queue and not sent to the kernel. 6. Normally when thread A makes next transaction, the BC_FREE_BUFFER command will be sent together (piggyback) with the commands for that transaction. But in this case thread A is a callback thread from camera driver, so it does not make any binder calls afterwards, and the IMemoryHeap is never freed (until the next time handleShutter is called). Change-Id: I435a258187509bdbbaf353339eb9ea577610cbd2
* | Flush binder buffer after setting raw heap to avoid leaking a reference.Chih-Chung Chang2010-07-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was: 1. In handleShutter(), thread A in CameraService calls registerBuffers(IMemoryHeap) and it's received by thread B in system_server. [transaction 1] 2. While thread A is waiting for the reply, thread B calls back to thread A to get the id of the heap (IMemoryHeap.getHeapID). [transaction 2] 3. Thread A replies transaction 2 and is preemptied in kernel. Thread B gets the reply and finishes registerBuffers and send reply for transaction 1. 4. When thread A runs again, it gets the reply for transaction 1 and returns to handleShutter(). 5. At this point the transaction buffer for transaction 2 (which holds a reference to IMemoryHeap) is not freed because the BC_FREE_BUFFER command is kept in thread A's local command queue and not sent to the kernel. 6. Normally when thread A makes next transaction, the BC_FREE_BUFFER command will be sent together (piggyback) with the commands for that transaction. But in this case thread A is a callback thread from camera driver, so it does not make any binder calls afterwards, and the IMemoryHeap is never freed (until the next time handleShutter is called). Change-Id: I435a258187509bdbbaf353339eb9ea577610cbd2
* | frameworks/base: compilation changesPriya Komarlingam2010-07-182-15/+23
| | | | | | | | | | | | camera changes and audio changes for compilation Change-Id: Ic1ed590eed00e2c7093e6b2f9dc5188b6aee4926
* | Change preview overlay dimensions for 720pSteve Kondik2010-07-161-0/+24
| | | | | | | | | | Change preview overlay dimensions to 768X432 if the recording resolution is 1280X720,
* | Remerge libui.so, libsurfaceflinger_client.so, and libcamera_client.so for ↵Koushik Dutta2010-07-112-7/+15
|/ | | | | | older devices. Change-Id: I6a1dbe519df3b07292d738ffa9f6be95b794875e
* Still do dump() if we cannot get mServiceLock for a while.Chih-Chung Chang2010-03-051-1/+27
|
* Fix the rgb to yuv422sp conversion. The order of uv is different from theChih-Chung Chang2010-02-181-4/+4
| | | | original version, but it should be ok as the original Y,Cb,Cr are all incorrect.
* fix [2447659] fix improper usage of the YCbCr_420_SP formatMathias Agopian2010-02-161-2/+4
|
* get rid off the YUV formats at the libui layerMathias Agopian2010-02-161-2/+5
|
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-116-13/+19
|
* API Extension: Support for optionally specifying a map of extra request ↵Andreas Huber2010-01-281-1/+1
| | | | | | | | headers when specifying the uri of media data to be played. related-to-bug: 2393577 Original change by Andrei Popescu <andreip@google.com>
* Add support for setting camera display orientation.Chih-Chung Chang2010-01-261-8/+24
|
* Add an orientation parameter for overlay, so we can do camera preview in ↵Chih-Chung Chang2010-01-213-17/+18
| | | | portrait mode.
* less log spewJoe Onorato2010-01-081-35/+34
|
* Remove some logging from camera operations. Bug 2346606.Dave Sparks2010-01-041-20/+20
|
* Add missing library in linker option. Currently the library is used by theDoug Kwan2009-12-091-0/+1
| | | | | executable but not specified. It is included via dependency of another shared object.
* Merge change I5ff64f6f into eclair-mr2Android (Google) Code Review2009-12-022-0/+869
|\ | | | | | | | | * changes: Add CameraServiceTest.
| * Add CameraServiceTest.Chih-Chung Chang2009-11-132-0/+869
| |
* | am bb3bb57a: Merge change I524dc046 into eclairEric Laurent2009-12-011-4/+16
|\ \ | | | | | | | | | | | | | | | | | | Merge commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3' into eclair-mr2 * commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3': Fix issue 2192673: Music Pausing Even when notifications are set to silent.
| * | Fix issue 2192673: Music Pausing Even when notifications are set to silent.Eric Laurent2009-11-271-4/+16
| |/ | | | | | | Do not play ringtones, notifications or camera sounds if ringer mode is silent.
* | Set more camera parameters initial values.Owen Lin2009-11-272-1558/+747
|/ | | | | | | We will need those values for new camera framework. And change the canned jpeg image to match the new width and height setting. Change-Id: I49f8fb63d2b859b9e9f1c5d27657a10203315bb6
* Fix potential deadlock in stopPreview/stopRecord.Dave Sparks2009-11-102-29/+46
| | | | | | | | | | | | | Some camera HALs spin up a preview thread and need to wait for the thread to exit. This can create a potential deadlock. In stopPreview, we take the main lock. If a preview callback occurs while the lock is held, the preview thread will block. If the camera HAL is waiting for the preview thread to exit, this will cause a deadlock. This patch breaks out the preview buffer heap into a separate mutex. This mutex is never held when the main lock is held, thus preventing the deadlock from occuring.
* Hold a lock while we access the preview heap.Dave Sparks2009-11-061-7/+14
| | | | | | | | | | copyFrameAndPostCopiedFrame was not holding a lock while it accessed the preview heap. If the client process is torn down while the heap is accessed, the memcpy could access memory that was deallocated. This patch creates a local sp reference to the preview heap while holding the lock, then releases the lock. This should prevent the heap from being pulled out from underneath us.
* Use image rect information to display zoomed picture.Wu-cheng Li2009-10-292-4/+18
|
* Don't callback on NULL client. Bug 2180510.Dave Sparks2009-10-152-30/+63
| | | | | | | | We weren't checking to see if there was a valid camera client when calling the notify callback function. Now we grab a strong pointer before the callback to guarantee that the client is not destroyed before we complete the callback. This change also fixes other places in the code where we weren't holding a local strong pointer.
* Retry overlay create if it fails. Bug 2153980.Dave Sparks2009-10-071-1/+13
| | | | | | | | Occasionally we see references to the overlay hanging around long enough to cause problems in applications when they tried to destroy the overlay and re-create it. This patch causes the camera HAL to retry the overlay creation call if it fails every 20ms up to 50 times before it gives up.
* Add zoom functions and sendCommand.Wu-cheng Li2009-10-064-3/+29
| | | | b2060030
* Fix 2083478: Camera needs an auto-focus cancel APIChih-Chung Chang2009-09-154-1/+25
| | | | Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
* Pass return code from Camera HAL for setParameters().James Dong2009-09-131-2/+1
| | | | bug 2116866
* CameraService change for OVERLAY_FORMAT_DEFAULTSnigdha Sinha2009-09-081-12/+1
| | | | Originally from: https://partner.source.android.com/g/#change,829
* Modified the camera HAL interface to use the same generic callback ↵Benny Wong2009-08-134-291/+292
| | | | architecture as camera services
* In the simulator, make sure that the preview thread is a Java thread,Marco Nelissen2009-08-132-3/+18
| | | | since we won't be going through the binder in single process mode.
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-8/+1
| | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* Hardware overlay supportBenny Wong2009-07-162-6/+47
| | | | Enable hardware overlay support for camera and video playback use cases
* resolved conflicts for merge of 04c7d0f8 to masterDave Sparks2009-07-082-8/+7
|\
| * Add timestamps to video frames to improve A/V sync.Dave Sparks2009-07-082-8/+7
| | | | | | | | Bug 1927069.
* | am b8a10fe4: Allow setPreviewDisplay after startPreview.Wu-cheng Li2009-07-012-50/+91
|\ \ | |/ | | | | | | | | | | Merge commit 'b8a10fe45657f2dcc50cae8a06805f8438a6937e' * commit 'b8a10fe45657f2dcc50cae8a06805f8438a6937e': Allow setPreviewDisplay after startPreview.