summaryrefslogtreecommitdiffstats
path: root/camera/inc/OMXCameraAdapter
Commit message (Collapse)AuthorAgeFilesLines
* camera: Add support for camera on motorola devicesMichael Gernoth2015-02-212-1/+21
| | | | | | | This adds flash-support for motorola devices and disables unsupported functionality. Change-Id: Ib1107d78641ca1ded61e8adb88ab7e8951e4ec74
* camera: add OV9726 sensor definesHashcode2015-02-032-0/+2
|
* CameraHAL: Add burst flag to ECaptureParamSettingsGeorgi Georgiev2012-12-051-1/+1
| | | | | Change-Id: Ie54c27fc00994e1d9617e144396b23b12a380f65 Signed-off-by: Georgi Georgiev <x0154504@ti.com>
* CameraHal: Add external gamma table configurationVladimir Petrov2012-11-261-1/+5
| | | | | | | | | | | | | | | - Added support to set external gamma table. Application can set camera parameter with key "gamma-table" and value in the form: "(OffsetR0:SlopeR0,OffsetR1:SlopeR1,...,OffsetRN:SlopeRN)," "(OffsetG0:SlopeG0,OffsetG1:SlopeG1,...,OffsetGN:SlopeGN)," "(OffsetB0:SlopeB0,OffsetB1:SlopeB1,...,OffsetBN:SlopeBN)" Depends on hardware/ti/domx change I199d28e2: http://review.omapzoom.org/#/c/27885/ Change-Id: I5dabde9b693cf8cb501ec8584729cd4fa174939c Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* CameraHal: Always set queued shot config in CPCAM modeVladimir Petrov2012-11-261-2/+1
| | | | | | | | | | - Fixed deadlock in the case when application has ommiting to set shot parameters with any bracketing configuration in CPCAM mode. Should handle properly single shot and burst shot. Change-Id: I4f3e2b4ee5bc0aa9072d03da6f9edc4ba86253d8 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* camera: omx: Introduce mPendingReprocessSettingsTyler Luu2012-11-261-0/+1
| | | | | | | | | | | Introduce mPendingReprocessSettings, so we can setFormat inside UseBuffersReprocess instead of setParametersReprocess. We will later use this mechanism to determine if port settings need to be reconfigured in NPA-like mode. Change-Id: I8fc485fc0f84c11bb293a49894090ea6a28b3c47 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* camera: omx: Move capture port disable to state functionsTyler Luu2012-11-261-1/+4
| | | | | | | | | | | | | | | | | | | | | Move decision to disable capture port from setParameters to functions called in the state machine (getPictureBufferSize and UseBuffersCapture). This will help avoid calling the disable port code multiple times if user changes settings. It will also keep the capture from being disabled asynchronously from state changes. Since decision to disable port is moved to UseBuffersCapture, logic to skip UseBuffers for subsequent captures changes slightly. Instead of skipping if capture port is configured, we skip if no settings have changes that require SetParam have changed. As part of code movement, capture is no longer disabling reprocess. The decision to disable reprocess will be moved to the reprocess file. Change-Id: I878c4cc1cc4985a762afcae686ba51a072c25836 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* Merge p-jb-release into d-jb-releaseKeith Deacon2012-11-261-0/+1
|\ | | | | | | Change-Id: I5846453a07de05891544684fd524c546579d957c
| * CameraHal: Configure preview port before set orientationAndriy Chepurnyy2012-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | Rotation cannot be applyed on unconfigured preview port due to it has non nv12 default pixel format. Therefore - set orientation will return error and unexpected dimensions will be returned to frame allocator. Change-Id: I31c755c3da68ac65fd61daeaa69861ae18f01798 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* | Merge "CameraHal: Camera Capabilities query update" into d-jb-releaseSundar Raman2012-11-261-0/+44
|\ \ | | | | | | | | | Change-Id: I0760b135e56d22fc02e49d1344af734e0dcf81be
| * | CameraHal: Camera Capabilities query updateKeidy Kim2012-09-251-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Switching states of the OMX Component is no longer needed for camera capability query. - Move DCC loading to HAL layer from DOMX to expose it to customer. Change-Id: Iec65757526933b26f7bdd9f4cb4bead527ff5f84 Signed-off-by: Keidy Kim <keidy.kim@ti.com> Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | | Merge p-jb-release into d-jb-releaseKeith Deacon2012-11-261-3/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Conflicts: camera/inc/CameraHal.h Change-Id: I826ef084fe01e8b5682d8a78c7cec76b39043d45
| * | CameraHal: Avoid metadata leak in non-CPCam use caseEmilian Peev2012-10-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The metadata was not getting released properly in non-CPCam use cases. This patch adds the extended metadata as part of 'CameraMetadataResult' which is reference counted and will get released correctly in all use-cases. Change-Id: I6a5d88941c1077c25df803b239979d808aa603f5 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * | CameraHal: Fill face detection meta dataVladimir Petrov2012-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add face detection meta data to the SurfaceTexture. Enable Face detection during image capturing. Depends on frameworks/base patch I781e4bf: http://review.omapzoom.org/#/c/25106/ Change-Id: Iab7e672435218c20a8f9898af457ea74ee570cdb Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * | CameraHAL: Reduce metadata callbacks rateVladimir Petrov2012-10-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes regression introduced with change I3e5eec25: Revert "CameraHAL: Adds support for controlling the FD update interval" Currently, CameraHal is emmiting preview metadata callbacks to the Camera application with every preview frame. But in most cases, there is no any difference between the metadata of two consecutive frames. So, tracking of metadata changes would be used in order to send metadata callbacks only if metadata is different compared to one already sent to the application. Ie93c6ae5 (Adds support for controlling the FD update interval) had a disadvantage to add undesired delay when sending metadata in range (0 ~ 400 ms). Change-Id: I481a78020a040153f792a3ef9e095b59ea7003e0 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | camera: omx: Use common MemoryManagerTyler Luu2012-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use a common MemoryManager instance in the various OMXCameraAdapter modules that use it. Change-Id: I5a2e957345dafb3ccbd305b8e589ed1822a289fe Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | Added OV8830 and OV2722 sensors to the scene mode tablesDimitar Borisov2012-11-262-0/+202
| | | | | | | | | | | | | | | | | | | | | - Fixes an issue with CTS test testSceneMode Change-Id: I2aebb2f9894d5f31351b29de161b8f5dade035a8 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
* | | CameraHAL: Reduce metadata callbacks rateVladimir Petrov2012-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes regression introduced with change I3e5eec25: Revert "CameraHAL: Adds support for controlling the FD update interval" Currently, CameraHal is emmiting preview metadata callbacks to the Camera application with every preview frame. But in most cases, there is no any difference between the metadata of two consecutive frames. So, tracking of metadata changes would be used in order to send metadata callbacks only if metadata is different compared to one already sent to the application. Ie93c6ae5 (Adds support for controlling the FD update interval) had a disadvantage to add undesired delay when sending metadata in range (0 ~ 400 ms). Change-Id: I481a78020a040153f792a3ef9e095b59ea7003e0 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | CameraHal: Adds support for OMAP5 video HQ pipeEmilian Peev2012-11-261-4/+5
|/ / | | | | | | | | | | | | | | | | - The new capture mode is added through a compile time flag for OMAP5 exclusively. Change-Id: Ida43b611783ce15a2c34371ef4cad98bfa03f379 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com>
* | OMXCameraAdapter: Fix for Shutter sound in bracketingAleksandar Dimitrov2012-10-101-1/+0
| | | | | | | | | | | | | | | | | | - In temporal bracketing the shutter sound was not initiated after capture button pressed, but after the second time the bracketing is triggered. Change-Id: I464d3f1cdc0366e643a7f3bbf6710dc73cc891d9 Signed-off-by: Daniel Levin <dendy@ti.com>
* | Camera: Use share buffer allocator for metadataEmilian Peev2012-10-101-1/+3
|/ | | | | | | | | | | For perfomance reasons stop parsing metadata as strings and use a common 'camera_metadata_t' structure instead. The storage behind it is backed by a shared allocator in order to propagate the data between different process address spaces efficiently. Change-Id: I960057d56440f07ffafe42d70d221c4a2b564f97 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* Merge "CameraHal: Avoids possible race conditions while accessing 'mParams'" ↵Daniel Levin2012-07-251-0/+5
|\ | | | | | | | | | | | | into jb-migration Change-Id: I73dd1771bc16aa80f02a271a7d284dda07e0d0e0 Signed-off-by: Daniel Levin <dendy@ti.com>
| * CameraHal: Avoids possible race conditions while accessing 'mParams'Emilian Peev2012-05-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | - Direct access of 'mParams' outside of 'get-/setParameters()' should be avoided. The underlying strings can get invalidated with each call to 'setParameters()', which can lead to instabilities. - This change also removes legacy stereo code, which is not used any more. Bug: 6509329 Change-Id: Ief6df206c33fbdc666644cea8630e0bce6a36c00 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * CameraHal: Speedup face detection startEmilian Peev2012-03-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently when face detection gets enabled the face priority for AE and AF is getting configured as well. This configuration takes around 18 ms. on average and can delay the overall startup time. The optimization will move the algo setup away from face detection enablement and in to the FillBufferDone callback. Bug: 5488236 Change-Id: I2b0e8df9fdead7a5d761a1efbcbf57d39e27ae3c Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * CameraHal: Omit 'apply3Adefaults()' during initializationEmilian Peev2012-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | - This change should improve the standby to first shot PPM bug:6136966 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Change-Id: I20ffd1178a64b77d45b35bac1cf04be21d2d602b
| * CameraHal: Various AF related fixesEmilian Peev2012-02-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | - In case of AF timeout the focus callback was being disabled. This callback will not get re-enabled again until preview is restarted. - Cancel AF is not working properly. Depending on the timing the off status event might not reach 'doAutoFocus()'. - This change also replaces the 'mDoAFSem' semaphore with a condition variable. Change-Id: I2ab7d87a05d97435aa6e67a122cc37a975794fc2 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * CameraHal: Implementation for CAF status callbacksTyler Luu2012-02-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Remove internal handling of CAMERA_MSG_FOCUS. Before we were enabling CAMERA_MSG_FOCUS only when application calls autoFocus(). No longer needed since the CAMERA_MSG_FOCUS can come just during preview now. 2. Add handling of unregistered focus callbacks. Since OMXCamera will send callbacks even when we are not waiting for one, add some handling. Signed-off-by: Tyler Luu <tluu@ti.com> Change-Id: I457e67b33b2561dd0b1ce3863ce807a8c27f79f6 Conflicts: camera/OMXCameraAdapter/OMXFocus.cpp
| * CameraHAL: Handling OMX initializationAkwasi Boateng2011-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Additional mOmxInitialized flag has been added to track whether OMX has been succesfully initialized to prevent duplicate OMX_DeInit() in OMXCameraAdapter destructor. Signed-off-by: Daniel Levin <x0155538@ti.com> Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com> Change-Id: I269c5ac9d5de3f3e9088a11a3bea7127c1bd79de
| * CameraHal: Add more Exif data for video snapshotTyler Luu2011-11-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Fixes b/5582076. Requires changes to Ducati and external/jhead. 1. Add API to get and set ancillary data metadata so we can use the values to fill in Exif data. 2. Add support for additional tags. Change-Id: I537e683839c59e92a4a20ff62653b6d46e303f53 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* | CameraHAL: Moved Camera HAL sources out of namespace androidDaniel Levin2012-07-252-78/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++ namespace android:: is reserved for base Google Android types to avoid current and further conflicts with 3rd party code. Having TI Camera HAL under namespace android:: violates this rule, adding potential conflicts. This patch moves libtiutils and Camera HAL code out of namespace android:: to custom local namespaces. Putting camera code under namespace android and 'using namespace android' is not allowed anymore. All C++ Android types should have android:: namespace prefix explicitly. Next namespaces added: - Ti:: - placeholder for all custom code - Ti::Utils:: - common utility helper library - Ti::Camera:: - Camera HAL code Also added Ti::status_t as typedef for android::status_t. Change-Id: Ie8cc00d6d6bd4e8a8ddf089421010c370ee40ebe Signed-off-by: Daniel Levin <dendy@ti.com>
* | CameraHAL: Use capture data from CameraAdapterVladimir Petrov2012-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | 1. Change getPictureBufferSize call to give back more data about the capture buffer that we need to allocate. 2. Use the data from getPictureBufferSize to allocate the buffer. Change-Id: I23bac42eedb9b6852eca24c207c474f3dbecced1 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | Reconcile with p-ics-mr1-release branch.Daniel Levin2012-07-251-6/+4
| | | | | | | | | | | | | | | | Only minor cosmetic changes and line ending fixes that was present in p-ics-mr1-release branch but absent in p-ics-mr1. Change-Id: I79f860007f202a3bdbb6d173b6a3f5ac53640417 Signed-off-by: Daniel Levin <dendy@ti.com>
* | Revert "Camera HAL: Second stereo camera added"Sundar Raman2012-07-251-31/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit 67045e06e7b58e644a5089a2a253879abc28a5fd. Conflicts: camera/OMXCameraAdapter/OMXAlgo.cpp Change-Id: Id22974e1822d06f574548afd86db398c76c05a9b
* | CameraHAL: Wrapped sources with OMAP_ENHANCEMENT_* macrosDaniel Levin2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapped the enhanced code with OMAP_ENHANCEMENT_* macros. Currently next enhancing modules dedicated: - CPCAM: OMAP_ENHANCEMENT_CPCAM - VTC: OMAP_ENHANCEMENT_VTC - S3D: OMAP_ENHANCEMENT_S3D - Burst capture: OMAP_ENHANCEMENT Disabled the VTC test. Disabled the camera_test. Must be used together with: http://review.omapzoom.org/#/c/23318/ Change-Id: Ie23aa6b7e0a72dabe529f2828442afa0464d4af4 Signed-off-by: Daniel Levin <dendy@ti.com>
* | Camera HAL: Second stereo camera addedPavel Nedev2012-07-251-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supported number of cameras is increased to 4 accordingly. The way number of cameras is detected from the OMX camera adapter is changed as not every camera has its own camera index. Stereo cameras are distinguished by the stereo operating mode but have the same indexes as the mono cameras. On OMX init time when capabilities are gotten a container is filled that maps each Android camera index to the corresponding OMX camera settings - OMX cam index and operating mode. OMX_TI_StereoSensor index is left for backward compatibility with older Ducati images. CameraService max number of cameras must also be increased to 4. There is another framework/base patch that does just that. Change-Id: I9ea9fb8454d09380612c19f6240457ab36c773e9 Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* | CameraHal: Queries picture sizes dynamicallyEmilian Peev2012-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently the picture sizes are static and will not change with the capture mode. For some use-cases this is not sufficient. To overcome this the Properties class is extended to support an operating mode, which will switch the supported properties depending on the current setting. Additionally the Ducati capabilities are queried not only for one capture mode alone but for all use-cases in 2D and 3D. As a result once the camera client switches the capture mode, the supported picture sizes will change inside CameraParameters retrieved through a subsequent "getParameters()" call. Related UI patch: http://review.omapzoom.org/#/c/21685 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: Ib9f02ede94ff76feb86b3422dc453dfd8782ee43
* | camera: add exp/gain preview metadataTyler Luu2012-07-251-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add ability to send current preview exposure time and analog gain to application. Preview metadata implementation is extended to support photometry data along with face detection data. Depends on Change-Id Ia4fcfbeb: camera: Add Exp./Gain preview metadata Change-Id: I3a4c7548d0e98f3a8c29e305fd746f0241cb45e4 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | Revert "CameraHAL: Adds support for controlling the FD update interval"Vladimir Petrov2012-07-251-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3a658e8e38839397ce018d5ae04ede2c1ca5dd89. Just reverting change Ie93c6ae5: CameraHAL: Adds support for controlling the FD update interval Because it conflicts with next change I3a4c754: CameraHal: Add Exp./Gain preview metadata Change-Id: I3e5eec25985197213ef089efe4181b646d2662a3 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | camera: cleanups regarding extra data and setMetaData()Vladimir Petrov2012-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Avoid code duplication in OMXCameraAdapter::sniffDccFileDataSave() and OMXCameraAdapter::detectFaces() Checking of OMX_TI_PLATFORMPRIVATE was moved inside OMXCameraAdapter::setMetaData() Change-Id: I0ab560addffec066316b4f36063119005ea2042d Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | CameraHAL: Reworked frame rate collectionDaniel Levin2012-07-251-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | United encodeFramerateCap() and encodeVFramerateCap() into single encodeFrameRates() method that populates frame rates. Returned list contains both variable frame rates from Ducati and fixed frame rates from predefined values, clipped by min/max range. Min/max values also added to the list as fixed frame rates. List is ordered according to Android requirements. List does not contain duplicated values. Caller uses generated frame rate list to populate separately variable and fixed frame rate parameters. Must be used together with: http://review.omapzoom.org/#/c/22250/ Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I07df14da648da46d7bef1d648fcd75649ebd4e54
* | camera: absolute forced exp/gain and EV compensationVladimir Petrov2012-07-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add absolute forced Exp./Gain shot config. Application can set a "KEY_EXP_GAIN_PAIRS" keyed parameter in format (exposure,gain): (12500,50)F,(25000,50)F,(12500,300)F,(25000,300)F Exposure time should be in microseconds and analog gain should be in EV units x100. Added total EV compensation shot config. Application can set a "KEY_EXP_COMPENSATION" keyed parameter in format: -200,-100,0,+100,+200,+100,0,-100,-200 Added forced total EV compensation shot config. Application can set a "KEY_EXP_COMPENSATION" keyed parameter in format: -200F,-100F,+0F,+100F,+200F,+100F,+0F,-100F,-200F Note: A "KEY_EXP_COMPENSATION" keyed parameter should not be used along with a "KEY_EXP_GAIN_PAIRS" keyed parameter. If application needs to configure a sequence with some frames in total exposure mode and other frames in "exposure,gain" mode, it should be done with sequence of separate "takePicture" calls. Note: Application should set a "KEY_BURST" keyed shot parameter accordingly. Change-Id: Ic23a56ae421bfb45c22fc819e911ef1094f70fb8 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | camera: add shot config flushTyler Luu2012-07-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Added a mechanism to configure shot config flushing. Also ensure that shot config flush flag can be sent to Ducati only once on first iteration. Requires: Change I11e6a7a7: ShotParameters: Adding flush config and EV compe... Change-Id: Ic06c28e7634b3e8fc3a474869504e47a6ad56217 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | CameraHAL: Simplified mechanical misalignment parametersDaniel Levin2012-07-251-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turned mechanical misalignment parameters from list to boolean parameter: "mechanical-misalignment-correction-supported" Replaced custom "enable" and "disable" tokens with standard Android "true" and "false". Must be used together with: http://review.omapzoom.org/#/c/21700/ Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I45dbe39eb03d3642e127175b2ebc6021fb38e9a8
* | CameraHAL: Fix for disable port time out.Saravanan Solaiyappan2012-07-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Comment] There was a port disable timeout in switchToExecuting() as the port is not enabled state. So while switching the preview from image preview to video preview with 60fps other than 1080p resolution, >5sec delay is noticed because of this port disable time out issue. This issue is noticed after the below change. http://review.omapzoom.org/#/c/22417/ This patch enables the preview port during switchToLoaded if the sensor overclock is set. So that portDisable will not time out in doSwitchToExecuting(). Change-Id: I1501520337f9c41d68761ddce9abd81328fb7443 Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
* | CameraHal: Changes necessitated by slice based processingPrasanna Kumar M.R2012-07-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch reverts the revert commit http://review.omapzoom.org/#/c/22000/ and enables the Slice mode in camera hal as in original patch http://review.omapzoom.org/#/c/19749/ Couple of changes are present in addition to original patch: The initial revert was to due to 60fps issue on OMAP5. The issue was debugged and confirmed to be caused by combination of existing code for handling state change when sensor overclocking is enabled in combination with port enable/disable changes of this patch. Mutex handling has been updated to improve the scenario (another patch expected from camera team to manage port status) Another change has also been incorporated in this patch to address the logging related compilation issue when debug flags are enabled in camera hal. Change-Id: I5b78d2bdc3f82133be8447176bebde7f4673441b Signed-off-by: Prasanna Kumar M.R. <prasanna.kumarmr@ti.com> Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
* | CameraHal: Speedup face detection startEmilian Peev2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently when face detection gets enabled the face priority for AE and AF is getting configured as well. This configuration takes around 18 ms. on average and can delay the overall startup time. The optimization will move the algo setup away from face detection enablement and in to the FillBufferDone callback. Change-Id: I2b0e8df9fdead7a5d761a1efbcbf57d39e27ae3c Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | CameraHAL: Unused code cleanupDaniel Levin2012-07-251-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed: - DEFAULT_MAX_FOCUS_AREAS - DEFAULT_MAX_NUM_METERING_AREAS - DEFAULT_FACING_SUPPORTED - DEFAULT_FRAMERATE_RANGE_IMAGE - DEFAULT_FRAMERATE_RANGE_VIDEO - CapEVComp typedef Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: Ie469c592a5e43bbe6eff8f1cb48c84b84d3aec24
* | CameraHAL: Removed preferred video sizeDaniel Levin2012-07-251-1/+0
| | | | | | | | | | | | | | | | Removed token are not used anymore. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: Id36633758bdbd978bd2d34ed683264ed4da09c7b
* | CameraHal: Fix VFR dynamic incrementsJorge E. Solano2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | Removed a check that avoids frame rate increments. Add a check to validate that OMX_SetParameter(OMX_IndexParamPortDefinition) is been call before OMX_SetConfig(OMX_TI_IndexConfigVarFrmRange) to avoid Ducati non-fatal error. Change-Id: Ic83d346ba8d9a5fe2d66eef51f90f7186dadc47f Signed-off-by: Jorge E. Solano <jsolano@ti.com>
* | Merge branch 'cpcam/DEV_DB54' into cpcam/latestTyler Luu2012-07-251-8/+17
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: camera/inc/CameraHal.h Change-Id: I6f96dedfdbf3956fbbf796aa7b768ae13c9c61df