summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/api2
Commit message (Collapse)AuthorAgeFilesLines
* Camera: Disallow dumping clients directlyEino-Ville Talvala2016-01-222-1/+6
| | | | | | | | Camera service dumps should only be initiated through ICameraService::dump. Bug: 26265403 Change-Id: If3ca4718ed74bf33ad8a416192689203029e2803
* CameraService: Notify camera service proxy of device statusEino-Ville Talvala2015-08-212-0/+3
| | | | | | | | Send the camera proxy service in system server updates to camera device state: opened/closed/active/idle. Bug: 23393557 Change-Id: Id7c70f134821efa34af8f6e7b4caa4c2ab128ebc
* Add experimental camera session prepare API.Ruben Brunk2015-08-142-0/+40
| | | | | Bug: 18949148 Change-Id: I8f73e68ea2e3acc60d98954106f364d13f439a82
* Camera: Add hidden experimental tearDown method.Eino-Ville Talvala2015-07-162-0/+35
| | | | | Bug: 18949148 Change-Id: Ie86ec7d1ec3db54e1154563b2339a208a935f849
* Merge "Fix rounding width." into mnc-devRuben Brunk2015-06-121-3/+2
|\
| * Fix rounding width.Ruben Brunk2015-06-121-3/+2
| | | | | | | | | | Bug: 19930700 Change-Id: I9d5685bd98a049fcb01f6ecc649f15f3b4498e6d
* | CameraService: Add consumer name to output stream dumpsysEino-Ville Talvala2015-06-091-6/+7
|/ | | | | | | | | | Also switch use of ANativeWindow to Surface, to get to the getConsumerName() method where necessary. Surface can always be cast to ANativeWindow, but not the other way around, so it's a better option anyway. Change-Id: Ie5c2d30821c1a754f9e382699ff50b4b328288b3
* Camera2: implement high speed video APIsZhijun He2015-06-032-4/+24
| | | | | Bug: 21442271 Change-Id: Ia0ae5bbd3e8c81bad293c29987301a2457817d12
* Camera: Cleanup to prepare() implementationEino-Ville Talvala2015-05-131-7/+2
| | | | | | | | | - Mutexes _might_ be a good idea - Don't be surprised by behavior that's expected - Use the existing logging macros Bug: 20537148 Change-Id: Ie62985a786d7e6645b4e4fe019dd98b02891a1f7
* Camera2: allow mixing regular/reprocess requestsChien-Yu Chen2015-05-051-11/+7
| | | | | | | | Allow mixing regular and reprocess requests in a capture burst. Also call abandon() when deleting an input stream. Bug: 20537735 Change-Id: If8c7781038173ab21c73f5ddc32f53793cf86fd9
* Camera2: Add prepare for output streamsEino-Ville Talvala2015-04-152-0/+48
| | | | | | | | | The prepare call asynchronously pre-allocates buffers for a given output stream, and then fires the onPrepared callback. Not implemented for Camera2Device or used in Camera2Client. Change-Id: I1cccdfff846dd6985133c591dbdceed823929ade
* camera2: add reprocess supportChien-Yu Chen2015-04-132-18/+118
| | | | | | | Add support to create input stream, submit reprocess capture requests, and receive reprocess capture results. Change-Id: Iee2d4313f3d52616a484eaea7a28f5ef9d8a674b
* camera2: Remove ProCamera.Ruben Brunk2015-03-201-3/+0
| | | | | Bug: 19186859 Change-Id: I4aaadb53db65b479f92cbb3c05329d1e40317900
* Merge "Camera: plumbing rotation field through"Yin-Chia Yeh2015-03-192-5/+8
|\
| * Camera: plumbing rotation field throughYin-Chia Yeh2015-03-182-5/+8
| | | | | | | | Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
* | Merge "camera2: Add camera client eviction enforcement."Ruben Brunk2015-03-191-3/+1
|\ \ | |/ |/|
| * camera2: Add camera client eviction enforcement.Ruben Brunk2015-03-181-3/+1
| | | | | | | | | | | | | | | | | | - This updates the CameraService to implement client eviction behavior based on process priority. Bug: 19186859 Change-Id: I646939b1cdf1a2237c4e5044164d55a2542cf36e
* | Camera: Wire up dataSpace, clean up ICameraDeviceUserEino-Ville Talvala2015-03-062-10/+17
|/ | | | | | | - Remove unused arguments from ICameraDeviceUser::createStream - Add dataSpace as a stream parameter, plumb it through everything Change-Id: I608cafe694785d1c512276e71b2016f8ac3b0ccb
* CameraService: intercept Camera moduleYin-Chia Yeh2015-02-032-2/+2
| | | | | | | | Wrap camera module returned from HAL so get_camera_info returns static_camera_characteristics processed by framework, which generates keys added after HAL3.2 is released. Change-Id: Ief423a1571cf06c7ef80b98b403a33969baf95f6
* Merge commit '2340e5a8' into manualmergeRuben Brunk2014-12-092-4/+81
|\ | | | | | | Change-Id: I0299d49b7e283072fc646de717fd7c1643241984
| * Camera2: Round unsupported surface sizes in configure.Ruben Brunk2014-12-052-4/+81
| | | | | | | | | | Bug: 16030677 Change-Id: Ida04e04f41983b9126609522dd12064a7bf9645f
* | Update calls to IInterface::asBinder()Marco Nelissen2014-11-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a Conflicts: media/libmedia/IAudioFlinger.cpp media/libmedia/IMediaPlayer.cpp media/libstagefright/CameraSource.cpp
* | Camera: Guard against asBinder() calls on NULL interfacesEino-Ville Talvala2014-11-071-10/+13
|/ | | | | Bug: 18207548 Change-Id: I9879c9b4c0282a6b96b77398f62beedc47f7f0a0
* CameraService: Fix dump methods for two clientsEino-Ville Talvala2014-09-181-5/+17
| | | | | | | | Actually write dump text into the provided FD, and add a bit more dump data into CameraDeviceClient. Bug: 17570762 Change-Id: I37b1db85188855d4e89c8050c4b13f0d22e07e0c
* camera: Configure streams immediately when API2 does configurationIgor Murashkin2014-08-201-3/+11
| | | | | | | | | This makes the configuration more eager (no more waiting until the first request) and also allows any errors to immediately be sent back to the client. Bug: 16629195 Change-Id: I0c365bc8f760466916dcc089217a43c43f9f4c9d
* Camera2/3: Cleanup the jpeg buffer size calcaulation logicZhijun He2014-08-111-17/+1
| | | | | | | | | - Only one place calculating the jpeg size-the device layer, Camera2Device and Camera3Device. - Remove size argument for CameraDeviceBase and cleanup related code. Bug: 14327010 Change-Id: I45d2ab4859ee0cc9273e579254f0569108c748f1
* camera2: Set orientation flags for hardware composer.Ruben Brunk2014-07-141-84/+2
| | | | | Bug: 15116722 Change-Id: I3fcc9aea38afcbd665f86c511a9929fe9a6a3a8f
* Camera1: Don't send partial results to ZSL clientsZhijun He2014-06-271-1/+1
| | | | | | | | | ZSL clients expect each received result as a complete result, and send back to HAL as a reprocess capture request. CaptureSequencer client assumes results to be non-partial too, it need look into some metadata that may not be present in partial results. Change-Id: Id716913fd6e1c914726abd6610fddf91141783c2
* libcameraservice: 64-bit compile warningsMark Salyzyn2014-06-201-2/+2
| | | | Change-Id: I168332a0d4699f6f5597d4883342aa7af7ed92c6
* Camera2: Add null check to createStreamYin-Chia Yeh2014-06-101-0/+4
| | | | | | | Prevent a native null dereference crash. bug: 15332257 Change-Id: I10c4053a0b4f07fbf52c37dd2f2853b501def669
* camera2: Update CameraService for HAL1 shim.Ruben Brunk2014-05-212-0/+16
| | | | | | | | | | | | | | 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
* CameraService: fix waitUntilIdle bug revealed by TestingCamera2.Jianing Wei2014-04-211-0/+1
| | | | | | | | * clear mStreamingRequestList in flush * fix frame number checker in notify and processCaptureResult Bug: 14166437 Change-Id: I022421080d05138f9068c1b9b85d83bd613b04fb
* CameraService: trigger appropriate callbacks for burst capture.Jianing Wei2014-04-102-124/+40
| | | | | | | | | | | | | | | | | | | | * 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
* am 5c679d41: resolved conflicts for merge of 3d7c5002 to ↵Colin Cross2014-03-241-1/+1
|\ | | | | | | | | | | | | | | klp-modular-dev-plus-aosp * commit '5c679d41714e42f153f6aeb492df54510a195bc1': libcameraservice: build 64-bit libcameraservice: fix 64-bit print format warnings
| * libcameraservice: fix 64-bit print format warningsColin Cross2014-03-211-1/+1
| | | | | | | | | | | | | | Use PRId64 from inttypes.h to print nsecs_t (int64_t) Use %zu to print size_t Change-Id: I135620e0388db33587a8a7da393b48a45cb7275a
* | CameraService: Add support for burst capture and repeating burst.Jianing Wei2014-03-212-3/+116
| | | | | | | | | | Bug: 10749500 Change-Id: I292a485b222e5cf97388d76bf0d956a6ac54bb2f
* | Camera2 API: fix front facing camera flip issueZhijun He2013-12-261-17/+47
|/ | | | | | | | | Camera stream transform calculation should take camera facing into account. For example, front facing camera preview stream should be horizontally or vertically flipped. Bug: 12300670 Change-Id: Ib497f0b8c3e65974de05d4f0aca3c51e99717c3d
* Camera API2: Add support for partial result quirkEino-Ville Talvala2013-11-121-1/+2
| | | | | | | | | - Camera3Device: Include requestId in partial 3A results - FrameProcessorBase: Add support for partial result listeners - CameraDeviceClient: Listen and forward partial results to client Bug: 11115603 Change-Id: If1cc6bbc32932742ac142c058688761ebf6a8024
* Camera API 2, Device 2/3: Implement idle and shutter callbacksEino-Ville Talvala2013-10-022-15/+40
| | | | | | | | | | | | | | | | | | - 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
* Camera2 API: Hack: Always use async mode with GLConsumerEino-Ville Talvala2013-09-261-1/+18
| | | | | | | | Until a cleaner solution is implemented, force buffer queues to consumers that set USAGE_HW_TEXTURE usage to be asynchronous. Bug: 10949105 Change-Id: I69e6b02b773831396767c282ce8c5936c5d41f03
* camera2: Tell all streams to ignore global device UI rotationIgor Murashkin2013-09-182-0/+83
| | | | | | | | - Also use android.sensor.orientation to set the right transform flags automatically. Bug: 10804238 Change-Id: I10caf8331f19e107c461696963cc10f597c91d83
* Camera: Correct stream id typesZhijun He2013-09-081-1/+1
| | | | | Bug: 10604704 Change-Id: I223ac5d200eb6439c08955fb7ad586592099fbae
* camera: Fix deadlock when sending callbacks during disconnectIgor Murashkin2013-08-291-6/+4
| | | | | Bug: 10552448 Change-Id: Ie93ba744ae6705aa657f980ae8e08ec624feeb39
* Camera2: Add flush supportEino-Ville Talvala2013-08-232-0/+18
| | | | | | | | - On HAL2 devices, fall back to wait until idle - On HAL3 devices, call HAL flush method Bug: 9758581 Change-Id: Ie1c570a15f6590a1ee6c271e3b989c48079b468a
* Camera: Rename new API to camera2, rearrange camera serviceEino-Ville Talvala2013-07-302-0/+692
- 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