summaryrefslogtreecommitdiff
path: root/camera
AgeCommit message (Collapse)Author
2015-01-28Camera: Add support to not queue all buffers up frontandroid-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r6android-cts-5.1_r5android-cts-5.1_r4android-cts-5.1_r3android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r2android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-cts-5.1_r10android-cts-5.1_r1android-5.1.1_r9android-5.1.1_r8android-5.1.1_r7android-5.1.1_r6android-5.1.1_r5android-5.1.1_r4android-5.1.1_r38android-5.1.1_r37android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33android-5.1.1_r30android-5.1.1_r3android-5.1.1_r29android-5.1.1_r28android-5.1.1_r26android-5.1.1_r25android-5.1.1_r24android-5.1.1_r23android-5.1.1_r22android-5.1.1_r20android-5.1.1_r2android-5.1.1_r19android-5.1.1_r18android-5.1.1_r17android-5.1.1_r16android-5.1.1_r15android-5.1.1_r14android-5.1.1_r13android-5.1.1_r12android-5.1.1_r10android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1lollipop-mr1-wfc-releaselollipop-mr1-releaselollipop-mr1-fi-releaselollipop-mr1-devlollipop-mr1-cts-releaseShuzhen Wang
Camera HAL needs to call cancel_buffer on min_undequeued_buffers preview buffers up front. That means not all preview buffers should be queued into camera driver. This change adds the support. Bug: 18630337 Change-Id: I794b0dcafa03ebfaddf4c68b66b09c74bbb206d0
2015-01-20camera: Fix setting of HDR modeShuzhen Wang
In HDR mode, number of JPEG callbacks is set to 2, whereas it's set to 1 in non-HDR mode. When switching between different camera modes (camera, photosphere, panorama), make sure HDR mode is set correctly. Bug: 18692917 Change-Id: I82056fc4d7e605f94bde9f126754d7f3536b2114
2014-12-05camera: Fix memory leak in HDR modeShuzhen Wang
The hdr YUV buffer counter should be incremented for every YUV callback received. b/18429991 Camera: ~40 MB memory leak per capture on N4 when using HDR mode Change-Id: If90c931ebc9e87984bbe4b1d6f7934fd7f5daab9 Signed-off-by: Iliyan Malchev <malchev@google.com>
2014-08-26Camera: Add new exif tags for CTS complianceMekala Natarajan
Added new CTS tags for make, model, flash, wb, subsec time. Bug: 16737746 Change-Id: I04f202b2bee4150eec90805675183b2bb627b5d7
2014-08-22camera: Fix onAutoFocus never sent back to camera service during CAFIgor Murashkin
Fix a bug where if autoFocus was sent to HAL very close to a setParameters, that the setParameters would override the "AF is running" state and drop the onAutoFocus callback. Bug: 17096480 Change-Id: Iec137084e0fb019a233e3c7d26abd84e1c736757
2014-08-08camera: Fix Mako front-facing-camera to report focus modes: fixedIgor Murashkin
* It was previously reporting the front-camera as having 'infinity' focus modes, which is not true since the lens doesn't move. Bug: 16900875 Change-Id: I3b9248c5cb62ddcfb13587c6349525e145e353ac
2014-07-09camera: Fix default camera areas not to throw NumberFormatExceptionIgor Murashkin
* When using Camera#getParameters from Java, if the default camera area was set and then read (e.g. Parameters#getMeteringAreas), Java would throw a NumberFormatException due to the unexpected spaces Change-Id: I567a1e6c58ed0bfb77cc09787393ea18eba5d613
2014-06-20camera: Return -EUSERS when too many cameras are open alreadyIgor Murashkin
Change-Id: I08d9d1e30e72025c41bd54b702d7ae95b32257be
2014-03-25am 5fcf3e67: am 6190e43e: am 7ea0baa5: Camera: Fix race condition in snapshot.Mekala Natarajan
* commit '5fcf3e673505bb268912582dd5f619d7d3ee0160': Camera: Fix race condition in snapshot.
2014-03-25am 7ea0baa5: Camera: Fix race condition in snapshot.Mekala Natarajan
* commit '7ea0baa5b7ddea38d43d2d96f8c71a1d5df9ab8a': Camera: Fix race condition in snapshot.
2014-03-25Camera: Fix race condition in snapshot.kitkat-devMekala Natarajan
Change-Id: I917994f3bb4663eb33ffa2c76754947f70f3cd5e Bug: 13620972
2014-03-07am 09efce05: camera: Fixes for race conditions in abnormal snapshot stop.Mekala Natarajan
* commit '09efce0553f930051b05742b3c67306a11332ecf': camera: Fixes for race conditions in abnormal snapshot stop.
2014-03-05camera: Fixes for race conditions in abnormal snapshot stop.Mekala Natarajan
Change-Id: Iba20800baee92dcd59ae6edb96e7dc1953c83a88 Bug: 12467743 Bug: 11021907
2014-01-17Fix build. Include camera metadata headers.Ruben Brunk
Change-Id: I96fd33c217c12521dd0870ad1b0ae083abd87e19
2014-01-16camera: Fixes for race conditions in abnormal snapshot stop.Mekala Natarajan
Change-Id: Iba20800baee92dcd59ae6edb96e7dc1953c83a88 Bug: 12467743 Bug: 11021907
2014-01-15camera: remove unsupported special effects.Mekala Natarajan
Whiteboard and blackboard modes are unsupported. Removing them from supported effects list. Bug: 11437515 Change-Id: I2ac35456941458c0a743af85232104c5882c2aaa
2013-12-14am 16df7ec1: am 81fd5731: am cb232b69: Merge "Remove linux/android_pmem.h ↵Christopher Ferris
include." * commit '16df7ec16e182ec427ef922297be40655013ab5d': Remove linux/android_pmem.h include.
2013-12-13Remove linux/android_pmem.h include.Christopher Ferris
This file is not needed any more, and does not exist in uapi kernel headers. Change-Id: I930e2bbf98a89ac3e0162bb2df039d1f286ddd76
2013-12-12Remove include <linux/android_pmem.h>Christopher Ferris
Also remove unused mSize variable from struct. This file is not needed and does not exist in the uapi kernel headers. Bug: 11559337 Change-Id: I428276745a6a98f1144d4fff56de3aec7c826986
2013-11-06mako: rename ion_allocation_data.heap_mask to heap_id_maskRom Lemarchand
Rename the heap_mask field in ion_allocation_data struct to heap_id_mask and match the new kernel header. Change-Id: Iecafe2ebcd80ec2a55b21eef296aef22f130841b
2013-10-25am 7c64073f: camera: Handle camcorder trigger while snapshot is in processMekala Natarajan
* commit '7c64073f546701ac0ddf0921ddb0b744a296f8c8': camera: Handle camcorder trigger while snapshot is in process
2013-10-24camera: Handle camcorder trigger while snapshot is in processMekala Natarajan
Handle camcorder trigger while snapshot is in process Bug: 11062739 Change-Id: Ib2753d11f4a72d7c3cc2d3bae458b54556a6dc15
2013-10-20am 01cce88b: Merge "camera: do not use GNU old-style field designators"Nick Kralevich
* commit '01cce88bbdd0916b697ca16d09cd6560df759d44': camera: do not use GNU old-style field designators
2013-10-19camera: do not use GNU old-style field designatorssynergydev
Not using a GNU extension improves portability Change-Id: Ide483b7ff3a85473b0c30fb6aa0d8b58866199d1
2013-08-19Fix header file dependency.Vineeta Srivastava
added include dependency for frameworks/native/include/media/hardware Change-Id: I72f75705b4a2f1ed8b62aff7d6ff886f581b6cb8
2013-06-12Splitting hardware/qcom/display chip specific.Vineeta Srivastava
Makefile points to hardware/qcom/display/msm8960 header files. Change-Id: I2a83665466ad81e8fa61b4af88c7a2ff35281a35
2013-06-06camera: enabling HW encoder in all casesinsup.choi
in specific case such as 5MP and zoom, SW encoder doesn't work well. so HW encoder will cover it instead of SW encoder. this is qualcomm patch bug: 9305377 Change-Id: Id79ccdea0b027855981c0aec0f6f1bf77ccffef0 Signed-off-by: insup.choi <insup.choi@lge.com>
2013-05-24Camera: Invalidate snapshot buffers after allocationMekala Natarajan
Invalidate snapshot buffers marked for caching after allocation. This will prevent corruption in cached buffers. Bug: 9021801 Change-Id: Ie250aac05304b51096aa6f8fd0d36d31e876646b
2013-05-14camera: Set the maximum fps to 30.Mekala Natarajan
Maximum fps supported was incorrectly set to 120. Setting it to 30 fps. Bug: 8873494 Change-Id: Iebff8ab58eb8376cb60c8f0cd93b8216ef51845f Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-13camera: Do not use content protected heap for cameraShuzhen Wang
Content protected heap is used for secure playback only. Bug: 8771380 Change-Id: I653cc072e6b1e6ea42ab888de0edc4950d65c7a1 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-08Camera: Add GRALLOC_USAGE_HW_CAMERA_WRITE usage flagShuzhen Wang
Add GRALLOC_USAGE_HW_CAMERA_WRITE flag while requesting buffers from gralloc. Bug: 8223174 Change-Id: I32cfd3e46e5f73104e44770f412640295ab1f93b Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-01Camera: Correct the Heap ID used for preview buffer allocationMansoor Aftab
Changed the heap id usage flags used for allocating camera preview buffers. Previous use of GRALLOC_USAGE_PRIVATE_MM_HEAP was incorrect since that is reserved for secure video. Changing usage flags to use IOMMU HEAP & use SYSTEM HEAP as fallback. Change-Id: If89fd9594bdee6d4efdbc4e54e616e2a61e7b9e5
2013-04-22Camera: Report error when multiple camera instances opened.Shuzhen Wang
Report INVALID_OPERATION error to framework if framework requests multiple camera instances at the same time. Bug: 8322788 Change-Id: I9dd7904603b4cfa2ae9bb459bc2a314f28bd5296 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-16Camera: Call cancel_buffers on min undequeued buffersShuzhen Wang
Call cancel_buffers on min undequeued buffers after dequeuing all buffers before stating prewview. Bug: 8371899 Change-Id: I9cf911f57044b034f77e185a827953d260ac1786 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-16Camera: Invoke led flash in CAF modeShuzhen Wang
Led flash should be invoked when focus mode is set to flash. Auto focus may or may not be called by application. Bug: 8355191 Change-Id: Id00f8f8d3a75cb3f03ac1f4986583f37b78ccc8b Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-13camera: restarting caf after liveshotinsup.choi
CAF can be restarted after liveshot using cancel autofocus command. Bug: 7718056 Change-Id: Ic807ca1f5aa8acdd81891f4e2df82be7ff5d425d
2013-04-13camera: add Morpho DNR supportinsup.choi
Use to Morpho DNR (Digital Noise Reduction) for low-ligth conditions (under 50lux). Bug: 7131846 Change-Id: Ia4792599d2e8506fa650dfe394c0b46d86039e87 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-13camera: Don't run continuous autofocus in startPreview2.insup.choi
Continuous autofocus should only be triggered if focus mode is CONTINUOUS_VIDEO or CONTINUOUS_CAPTURE. If focus mode is AUTO, only auto_focus function call can start focus. Bug: 7563139 Change-Id: I3242adc6704f3be02e0c3487b0310b1ff21d0ba5 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-12mako: camera: update exif header for new exif memberinsup.choi
Add f-number on EXIF header to show aperture item in exif viewer. Bug: 7960810 Change-Id: Ic78012cfb1d0d8a8d44571c5439c29a65abe4ff0 Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-12camera: updating correct exif datainsup.choi
After changing zoom factor, some exif item is left out because of duplicated add command. Bug: 7938563 Change-Id: Ia1ed05da8c551912d8a6e0019bde301e03d8eb4a Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-04-09Add liblogYing Wang
Bug: 8580410 Change-Id: I48de35ed9c3c64ff8c002b92587591e8c4531dba
2013-03-27mako: move camera HAL from hardware/qcom/camera, DO NOT MERGEIliyan Malchev
Change-Id: Ib76c01a8ce47dd17c4e5c986e5988c2ad1c61906 Signed-off-by: Iliyan Malchev <malchev@google.com>