summaryrefslogtreecommitdiffstats
path: root/include/camera
Commit message (Collapse)AuthorAgeFilesLines
* Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-041-1/+1
| | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* CameraService: Correct API2 error handlingEino-Ville Talvala2014-08-271-1/+5
| | | | | | | | | | | | | | - Add more error codes to the binder camera2 callbacks - Translate HAL errors to callback errors - When flushing, report failures for queued requests - Treat stream config failure as nonfatal - Send request errors when buffers aren't available for captures Bug: 15524101 Bug: 14448494 Bug: 11272459 Bug: 17160301 Change-Id: I81aa54e805a9cce1cb8a6a9374549daa7666deb2
* camera: Fix setParameters for Preview FPS single/range valuesIgor Murashkin2014-08-181-0/+203
| | | | | | | | | | | | | As a workaround, duplicate CameraParameters into CameraParameters2 to prevent ABI break for some camera HALs that directly link into CameraParameters. CameraParameters2 implements the real fixes needed in the framework, while CameraParameters is left in to satisfy older camera HALs. Bug: 12609188 Bug: 16654949 Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4da
* Camera HAL3: migrate from partial quirks to partial resultZhijun He2014-07-161-1/+7
| | | | | | | | | | - Enable the normal partial result path for HAL3.2, the quirk is only used for the HAL version lower than HAL3.2. The partial quirks is no longer supported for HAL3.2 or higher versions. - Add CameraDeviceBase getDeviceVersion API. - Fix some build warnings Change-Id: I7a1b03d4d5fd5258d2addfba4368bee2ba691337
* camera2: Set orientation flags for hardware composer.Ruben Brunk2014-07-141-0/+49
| | | | | Bug: 15116722 Change-Id: I3fcc9aea38afcbd665f86c511a9929fe9a6a3a8f
* cameraservice: Implement HAL1 and higher HAL API coexistenceZhijun He2014-06-192-0/+21
| | | | | | | A higher hal version device like HAL3.2 can be opened as HAL1.0 device if HAL supports it. This only applies to camera API1. Change-Id: I4ae9f59f4317158cc1bd7ed7726e4032cdd1fa07
* camera: Add #getLegacyParameters, #supportsCameraApi to ICameraServiceIgor Murashkin2014-06-171-0/+20
| | | | Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
* camera2: Update CameraService for HAL1 shim.Ruben Brunk2014-05-212-0/+34
| | | | | | | | | | | | | | Updates the camera service to handle shim connections. Changes include: - Adds begin/end configure binder calls. - Adds cache for shim client static camera metadata. - Implements basic getCameraCharacteristic functionality for shim clients. Bug: 15116722 Bug: 15117269 Change-Id: I510c5888ca15f8e7d3b8ed1680ff1c7f8f514744
* camera3: Update CameraMetadata vendor tag handling.Ruben Brunk2014-05-021-1/+22
| | | | | Bug: 12134423 Change-Id: I97dc955ee9dd78ace93a7946296d6d9b0e407d43
* Revert "camera3: Update CameraMetadata vendor tag handling."Ruben Brunk2014-05-031-22/+1
| | | | | | This reverts commit 4764324d2704f1b08bb7407014bf203924ff2363. Change-Id: I86d7fcc11423502b73fab2a82af6aa89804f0b76
* camera3: Update CameraMetadata vendor tag handling.Ruben Brunk2014-05-021-1/+22
| | | | | Bug: 12134423 Change-Id: I1d1be6792b6a4c9f08e042a8b2c89146bde5665e
* CameraService: fix race condition and wrong last frame number.Jianing Wei2014-04-171-0/+4
| | | | Change-Id: Ie2be9a77a0b074497615de38cbb8e8f13b4858ec
* CameraService: trigger appropriate callbacks for burst capture.Jianing Wei2014-04-103-8/+132
| | | | | | | | | | | | | | | | | | | | * Instead of tracking CameraMetadata only, now we track both CameraMetadata and CaptureResultExtras, which is not part of the HAL metadata. This will enable the correct callback of onCaptureStarted and onResultReceived given burst requests. * Get last frame number in reply when submitting requests, canceling requests, and flushing device. For repeating requests, this frame number is the last frame number of the previous request. For non-repeating requests, this frame number is the expected last frame number of the current request. The goal is provide frame number to Java side in order to trigger onCaptureSequenceCompleted correctly. * Fix notifyError so that onDeviceError can be called correctly. Bug: 10749500 Change-Id: I2f3dda6c530090055d4a2ff9f0f087bbbe8d9257
* Revert "camera: Fix setParameters for Preview FPS single/range values"Eino-Ville Talvala2014-03-261-103/+1
| | | | | | | | Causes a regression on some devices, so reverting until we're in a position to fix those devices. This reverts commit 9078a1b3b9f9c0c48046ade0e8e18b0d79a659db. Bug: 13563098 Change-Id: I7aedd01fde8b8fdee77e972ec395f0ecadbf8ccb
* camera: Fix setParameters for Preview FPS single/range valuesIgor Murashkin2014-03-201-1/+103
| | | | | Bug: 12609188 Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4db
* camera2: Don't log vendor tag errors when camera HAL too oldIgor Murashkin2014-03-172-5/+11
| | | | Change-Id: Iac3d23284230c95c85ee404abbf9b22df1ae721c
* camera3: Pass vendor tags through binder.Ruben Brunk2014-03-132-0/+126
| | | | | | | | | | Bug: 12134423 - Adds a class for parceling vendor tag definitions. - Passes vendor tag definitions to clients of the camera service. - Switches over to new vendor tag mechanism when reading from HAL. Change-Id: Icef3fe9e67160767bdb8244ac49c85b68b497123
* Camera HAL3/API1: Add support for the partial result quirk.Eino-Ville Talvala2013-11-061-0/+5
| | | | | | | | | | | | | | | | | | - Camera2Client: - Detect partial result quirk - Camera3Device: - Accumulate all partial results together - Fire off 3A-only result once all 3A states are available - FrameProcessorBase: - Filter out partials, don't send to listeners - FrameProcessor: - Skip face detect on partials - Make sure to only handle a 3A update for a given frame once - Trigger AF notifications when AF mode or trigger changes, to properly detect all AF transitions. Bug: 11115603 Change-Id: Iea8aa73c568701562a46071f7ea100624251d10b
* Camera API 2, Device 2/3: Implement idle and shutter callbacksEino-Ville Talvala2013-10-023-6/+20
| | | | | | | | | | | | | | | | | | - Update callback Binder interface - Rename frameId to be requestId to be consistent and disambiguate from frameNumber. - Implement shutter callback from HAL2/3 notify() - Add in-flight tracking to HAL2 - Add requestId to in-flight tracking - Report requestId from shutter callback - Implement idle callback from HAL3 process_capture_result - Add new idle tracker thread - Update all idle waiting to use the tracker - Add reporting from request thread, all streams to tracker - Remove existing idle waiting infrastructure Bug: 10549462 Change-Id: I867bfc248e3848c50e71527e3561fe92dc037958
* Camera: Implement getCameraCharacteristicsZhijun He2013-09-251-0/+5
| | | | | | Bug: 10904541 Bug: 10360518 Change-Id: Ie9ca6b3b0b5f2fe529e6b0decc193096e770a017
* Camera2: Add flush supportEino-Ville Talvala2013-08-231-0/+3
| | | | | | | | - On HAL2 devices, fall back to wait until idle - On HAL3 devices, call HAL flush method Bug: 9758581 Change-Id: Ie1c570a15f6590a1ee6c271e3b989c48079b468a
* Camera1: Rename setPreviewTexture to ...Target for clarityEino-Ville Talvala2013-08-211-3/+3
| | | | | Bug: 10312644 Change-Id: I19976188f0359bfd177209fb40145defdae9c740
* Camera1: Set preview to be asynchronous, and remove dead codeEino-Ville Talvala2013-08-212-4/+4
| | | | | | | | | | | | | - Use the controlledByApp flag to make sure application-bound preview buffer queue is asynchronous as before - Remove setPreviewDisplay in service, since it is no longer in the binder interface - Rename setPreviewTexture to setPreviewTarget, to make it clear it's the only game in town now. Rename only on the binder level and service for now. Bug: 10312644 Change-Id: Icd33a462022f9729a63dc65c69b755cb7969857e
* Refactor CameraService to handle errors properly.Ruben Brunk2013-08-164-9/+29
| | | | | | | | Bug: 10361136 -Connect calls now return status_t error flags. Change-Id: Idca453b111e5df31327f6c99ebe853bb2e332b95
* Camera: Rename new API to camera2, rearrange camera serviceEino-Ville Talvala2013-07-303-0/+0
| | | | | | | | | | | - Support API rename from photography to camera2 - Reorganize camera service files - API support files to api1/, api2/, api_pro/ - HAL device support files into device{1,2,3}/ - Common files into common/ - Camera service remains at top-level Change-Id: Ie474c12536f543832fba0a2dc936ac4fd39fe6a9
* camera2: Implement ICameraDeviceUser::waitUntilIdleZhijun He2013-07-231-0/+2
| | | | | | Also fixed some logging typo Change-Id: Ib254bdb137dca10b12595c23aeb1c53097423425
* camera2: Implement ICameraDeviceUser::getCameraInfoIgor Murashkin2013-07-151-3/+2
| | | | | Bug: 9529161 Change-Id: I927e39c124cd5fb19e38423506f4463acc381cb0
* Initial implementation of android.hardware.photography.CameraDevice (service)Igor Murashkin2013-06-205-0/+224
| | | | | | | | | | | * Verified preview streaming requests * Other things *should* work but unverified / unimplemented in client side Missing: * CameraService needs to return static camera info metadata Bug: 9213377 Change-Id: I71568560fcf18d0e2b408ed1c4d0066647314868
* camera: Make some binder interfaces compatible with AIDLIgor Murashkin2013-06-116-0/+18
| | | | | | | | | | | | | Done: * ICameraService * ICameraServiceListener Partial: * ICamera (disconnect only) * IProCameraUser (disconnect only) Bug: 9213377 Change-Id: I8e2e6e05cfd02ec36be1d5b2c551f10ffb43b5b4
* Camera: Add preview callback surface supportEino-Ville Talvala2013-04-172-1/+16
| | | | | | | | - Add call to set a preview callback surface - Implement support for HAL2/3 devices - Still need HAL1 implementation Change-Id: I0dc0bd72e43d871aa487858d1665c1efca633ffe
* Camera: Add input side to camera3 HAL deviceEino-Ville Talvala2013-03-271-1/+19
| | | | | | | | | | - Stream creation/deletion - Request submission - Request thread loop - Add get() to CameraMetadata to allow HAL submission while retaining ownership. Change-Id: I271f72bcbe9557eded43cbcbfe789109857f8144
* Camera: Add hotplug support (for fixed # of cameras)Igor Murashkin2013-03-261-5/+6
| | | | | | | * Minor: also change addListener to fire the current status upon subscription * Minor: STATUS_AVAILABLE is now an alias for STATUS_PRESENT and deprecated Change-Id: I254608a7332095e3ef201ffea64cff156cfc1b3e
* ICameraServiceListener.h: Add STATUS_ENUMERATING enumIgor Murashkin2013-03-211-2/+21
| | | | Change-Id: I41a9f358f63a19e7b746a9ccf24722001e5e7475
* remove uses of Surface in favor or IGraphicBufferProducerMathias Agopian2013-03-122-6/+0
| | | | Change-Id: I13d7a9553aa335bca790a3a59d389d7533c83d57
* (Camera)ProCamera: Remove unused functions from binder interfaceIgor Murashkin2013-03-114-44/+18
| | | | Change-Id: I0582268cef6e84b630bc87c8a03dcd69d54c440d
* ProCamera: Add CpuConsumer asynchronous mode supportIgor Murashkin2013-02-281-0/+7
| | | | | | Bug: 8290146 Bug: 8291751 Change-Id: I25423a2b8a70ac7169911b1c7b482aa17190fe0f
* Camera: Drop ProCamera connections when a Camera connection happensIgor Murashkin2013-02-284-3/+88
| | | | | | | * Also adds an ICameraServiceListener with available/not available statuses Bug: 8291653 Change-Id: I24680f1a2dc109510caf451cf7c7bd180b670d84
* camera_client: refactor Camera/ProCamera commonalities into BasicCameraIgor Murashkin2013-02-264-106/+170
| | | | Change-Id: Ie10a4094522d49683657665fe94ab0b7ccd280e9
* CameraService and Stagefright: Support AppOpsEino-Ville Talvala2013-02-252-6/+24
| | | | | | | | | | | | | 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
* ProCamera: Fix waitForFrameBuffer not handling multiple outstanding framesIgor Murashkin2013-02-221-3/+14
| | | | | | | | | | | If the CpuConsumer triggered multiple onFrameAvailable callbacks in between a single waitForFrameBuffer call, the old code would only handle 1 callback. This meant on two subsequent waitForFrameBuffer calls the second would always timeout when two buffers were already available to be unlocked. Bug: 8238112 Change-Id: Ibefca35005ac5c408e5ada97ec4a4344a9e3e497
* ProCamera: add waitForFrameBuffer/waitForFrameResult blocking callsIgor Murashkin2013-02-221-1/+44
| | | | Change-Id: I851d41aeecaa15245d5b9d622132e8706d6e292c
* ProCamera: Add getInfo for getting static metadata (and a test)Igor Murashkin2013-02-222-1/+6
| | | | Change-Id: I3b87dfbc621d98bf41f37a892a1012baf85b5166
* Camera: ProCamera - implement onResultReceived callback for metadata callbacksIgor Murashkin2013-02-222-6/+18
| | | | Change-Id: I46775402b007244bc383d6343a620eebbd492aad
* Camera: ProCamera - add createStreamCpu and unit testIgor Murashkin2013-02-221-12/+74
| | | | Change-Id: I468172dbfdd78510b273bf9d119c950cbeda7ea3
* Camera: Change ProCamera to take IGraphicBufferProducerIgor Murashkin2013-02-221-4/+5
| | | | Change-Id: Iec62eead6d179aa5486f7719143340976bb76e7d
* Camera: ProCamera2Client - add createStream (service is stubbed) and unit testIgor Murashkin2013-02-222-1/+11
| | | | Change-Id: I1ae7ba9b24f5883c214c19a7ed0eaf0c802d69c1
* Camera: ProCamera - add createStream stub and unit test for itIgor Murashkin2013-02-221-0/+41
| | | | Change-Id: Ic05130e63f4f2c0c3278ba348b192992169f105f
* Camera: ProClient add asynchronous locks and suchIgor Murashkin2013-02-222-2/+13
| | | | Change-Id: I551e5e5e76d9be733fab5224beaa7309268c0f38
* Camera: Add ProCamera private binder interface for an API2-light functionalityIgor Murashkin2013-02-224-1/+313
| | | | Change-Id: I2af7a807c99df75ea659e6e6acc9c4fca6a56274
* Camera: Add unit test infrastructure for libcameraclientIgor Murashkin2013-02-221-1/+1
| | | | Change-Id: I957538663ae8332d26f3640c63a75efc79f4ac5c