summaryrefslogtreecommitdiffstats
path: root/camera
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | camera: bsa: Calculate height for allocationTyler Luu2012-10-102-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For allocating buffer list, calculate the height from stride, size, and format instead of using the passed height value. Image buffers were originally allocated from just size parameter when we were using MemoryManager. Now, ANW just uses width, height, and format. Change-Id: I1c743798426ea1e529e7c9ff6f09530e07bc1b86 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * | | | | | CameraHal: Reset shot config queue in stop image captureVladimir Petrov2012-10-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding code to reset shot config queue when stopping image capture permanently. Change-Id: I037268613d4c48bf6bdc4f98d33b98bea59f8551 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * | | | | | CameraHal: Correct capture mode is set when Zoom brack is usedDimitar Borisov2012-10-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Capture mode is set to HIGH_SPEED when Zoom bracketing is used. Change-Id: Ic1b98f591807e78becac92b270e155b5ea2f1d36 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * | | | | | CAMERAHAL: Enabling FPS printSaravanan Solaiyappan2012-10-101-1/+1
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CAMHAL_LOGD is not enabled by default. FPS print is now changed to CAMHAL_LOGI macro so that once the user set the below property, the logcat will start print the FPS information. setprop debug.camera.showfps 1 Change-Id: If31157e8136e18d0155f75b39c484937615e21ec Signed-off-by: Saravanan Solaiyappan <saravanan.s@ti.com>
| * | | | | CameraHal: Disable filtering of FD coordinatesEmilian Peev2012-10-101-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently filtering of the FD coordinates was done at the HAL level, which doesn't seem to be longer needed as similar mechanism is employed at the OMX Camera component layer. Change-Id: Ie096b9eca5435caa4098a9a3a9baa0e60782fc3e Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * | | | | CameraHal: Call 'OMX_FreeBuffer()' correctlyEmilian Peev2012-10-101-50/+45
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 'OMX_FreeBuffer()' should only be called during the switch from Idle to Loaded state not before or after. Change-Id: Ibfda30c7f57f7ef2c7e266a5be6db76cc49af493 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * | | | Merge "CameraHal: Avoid concurrent access to 'mFramestype'" into p-jb-releaseSundar Raman2012-10-101-13/+16
| |\ \ \ \
| | * | | | CameraHal: Avoid concurrent access to 'mFramestype'Emilian Peev2012-10-101-13/+16
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This vector is potentially accessed by two threads and needs to be protected by 'mLock'. - The change should resolve an instability observed with one MTBC test. Change-Id: I64f4b423bf6f1baab6ed16d3345c8ac1f96817cd Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * | | | CameraHAL: Fix loosing video capture mode after restart previewDmytro Vasylenko2012-10-101-0/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case client not passing recording hint, CameraHAL operates in high quality instead of video mode. Setting video mode in setVideoModeParameters() lost after restart preview. Change-Id: I789598be9b5873d744bf41cb6b14f955e7be6716 Signed-off-by: Dmytro Vasylenko <x0178436@ti.com>
| * | | CameraHAL: Enabling PPM prints in Logcat by defaultGeorgi Georgiev2012-10-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Port of ICS change Ifbd23a09e33e1a634505a344ec3151fcb55a405 Change-Id: I774e28ae579bcecca0f2c15f98842d0ffef7079b Signed-off-by: Georgi Georgiev <x0154504@ti.com>
| * | | CameraHAL: Fix non-cpcam buildSundar Raman2012-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OMAP_ENHANCEMENT_CPCAM macro was missing for the metadata change which broke the blaze build Change-Id: I035b3c01aa55b9244cb568e16b238d9a5205275b Signed-off-by: Sundar Raman <sunds@ti.com>
| * | | CameraHAL: Fix for face detection for default orientation.Saravanan Solaiyappan2012-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FD is regressed after the below commit. 87b06ed CameraHal: Fill face detection meta data Issue: The above commit introduces a new variable for FD orientation 'mFaceOrientation' which didn't consider the sensormount orientation. It initialized to zero and gets updated only after the OnOrientationChanged event. This patch fixes this initialization of right orientation. Change-Id: Ic24cf8457a95d665e8fbd831bf82338a8f060ae2 Signed-off-by: Saravanan Solaiyappan <saravanan.s@ti.com>
| * | | CameraHal: Avoid metadata leak in non-CPCam use caseEmilian Peev2012-10-106-22/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-105-11/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-105-35/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Removes old deprecated functionalityEmilian Peev2012-10-101-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Leaving the display adapter on during burst is an old optimization so that the preview can resume uninterrupted. This is not needed anymore as 'stopPreview()' already contains the necessary logic for doing that. - Should fix an issue with frame corruption after exposure bracketing. In this case preview restart is not needed. Change-Id: I20dd87112d1a732e13045a5d9fd38924f41f4b33 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * | | CameraHal: Specify MM only for preview portIvan Evlogiev2012-10-101-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Set mechanical missalignement for preview port only. We need mechanical missalignement correction for the preview port only during stereo for humman vision Change-Id: Ifb2a1d75ed4a4597c96b4c9fb571ce280bf8cfe5 Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
| * | Camera-HAL: Fixed setting up VNF repeatedlyDmytro Vasylenko2012-10-101-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | VNF not setted up repeatedly even if it is already done and Camera doesn't have to restart preview if it is no needed. Change-Id: I04af0f2fae8b0a7d4064f413c8dc305a95f6255f Signed-off-by: Dmytro Vasylenko <x0178436@ti.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * | Camera-HAL: Added ENHANCED_DOMX macroDmytro Vasylenko2012-10-101-0/+4
| | | | | | | | | | | | | | | Change-Id: Iff8c104599a403f0f1d4a6ad263cb5f8b44b22fd Signed-off-by: Dmytro Vasylenko <x0178436@ti.com>
| * | CameraHAL: Fix for raw+jpeg capture after 1st time.Saravanan Solaiyappan2012-10-102-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Comment] -This patch handles the CAMERA_USE_BUFFERS_VIDEO_CAPTURE command in the state machine. Though this command will not change the state, this will avoid returning error to the caller. -Re-uses the same video buffer for the raw capture after first time. This can be improved in the future to reconfigure video port every time capture is done and allocate the buffer every time capture is made. Change-Id: I94853fc62c847083320bb03ade57eb21847b91b2 Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * | CameraHal: OMX: Reset component buffer allocDaniel Levin2012-10-101-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to reset ComponentBufferAllocation to default when we deinitialize internal buffers in case where subsequent capture or reprocess will be using default buffers. Change-Id: I036908b8cf01d20329a9bfe9a653906f4483aa27 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * | OMXCameraAdapter: Fix for Shutter sound in bracketingAleksandar Dimitrov2012-10-103-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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: Rework CPCam to preserve HAL ABI compatibilityDaniel Levin2012-10-104-18/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented initialization of camera_device_extended_ops_t. Moved take_picture_with_parameters into separate function. Implemented calling CPCam surface callbacks via preview_stream_extended_ops_t. The default dummy functions always do no-op and return INVALID_OPERATION. Change-Id: I00efd08544ea5a0c7b22c7a2135a332871f06792 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | Camera: Link to libcpcamcamera_clientDaniel Levin2012-10-101-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | The ShotParameters is now a part of separate static library libcpcamcamera_client to preserve HAL binary compatibility. Change-Id: Iacbe28e0b6e30ab1c18de89f51497632cbb68033 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | Camera: Use share buffer allocator for metadataEmilian Peev2012-10-108-81/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | CameraHal: CTS preview callback fixEmilian Peev2012-10-101-3/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Repeated preview restarts might fail to enable preview callbacks properly. This is due to a check which only enables them when preview is on. This patch modifies the condition a bit in order to cover the cases where the preview is correctly initialized and a valid preview surface is available. - Should fix an issue with CTS test #testPreviewPictureSizesCombination. Change-Id: I9347a6da875ae001b90c96be898582ff6ed9ba4f Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * Merge "CameraHal: Avoids possible race conditions while accessing 'mParams'" ↵Daniel Levin2012-07-253-0/+26
| |\ | | | | | | | | | | | | | | | | | | into jb-migration Change-Id: I73dd1771bc16aa80f02a271a7d284dda07e0d0e0 Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ Merge "camera: fix deadlock because of mStateSwitchLock" into jb-migrationDaniel Levin2012-07-252-0/+18
| |\ \ | | | | | | | | | | | | | | | | Change-Id: I30238b6ff0a7cbab7a4908b88e1ca1be3ac3a89c Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ \ Merge "CameraHal: Cuts down execution time of 'get-/setParameters()'" into ↵Daniel Levin2012-07-255-144/+156
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-migration Change-Id: Ic0cd6bc552836fa7410beb7b1fa877120dfb283e Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ \ \ Merge "CameraHal: Workaround for delayed AF events" into jb-migrationDaniel Levin2012-07-251-2/+11
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I20f3100de3399ff5442ff215736a2e54af7532b5 Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ \ \ \ Merge "CameraHal: Avoid possible segfaults in 'setExtraData()'" into ↵Daniel Levin2012-07-251-1/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-migration Change-Id: I24d14046f547662ad3f7743a05908919e5c5eee2 Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ \ \ \ \ Merge "CameraHal: Implementation for CAF status callbacks" into jb-migrationDaniel Levin2012-07-253-16/+52
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib1a12a16fd0fb2457c2ff9793b3628dbae31c992 Signed-off-by: Daniel Levin <dendy@ti.com>
| * \ \ \ \ \ \ Merge "CameraHal: Add more Exif data for video snapshot" into jb-migrationDaniel Levin2012-07-251-0/+3
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7b309f7aa0f681e07a8f2ca017e5b067958891fe Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | Ignore CAMERA_CMD_ENABLE_FOCUS_MOVE_MSG commandDaniel Levin2012-07-251-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Non recognized message types by ICS Camera HAL were resulting with BAD_VALUE error. Ignoring CAMERA_CMD_ENABLE_FOCUS_MOVE_MSG is a valid case. This patch scope is to implement ICS functionality without introducing new behavior. Implementation for proper CAMERA_CMD_ENABLE_FOCUS_MOVE_MSG message behavior will be merged later from Google JB mainline. Change-Id: I6ca1a23f53f15f396d48a3f1192bbcc51f48c7fb Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | Prevent duplicate DateTime tags in EXIF.Daniel Levin2012-07-252-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:5766177 Change-Id: Ib60030374ffca8e27c814503621cc545f9132360 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | Fixed some OMAP_ENHANCEMENT macrosDaniel Levin2012-07-254-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to build Camera HAL with OMAP_ENHANCEMENT, but without burst capture and CPCAM, appropriate code blocks should be wrapped with OMAP_ENHANCEMENT_BURST_CAPTURE and OMAP_ENHANCEMENT_CPCAM. Change-Id: Id3291b1443ea7ef8ed2a1f482a1fdb6cf2be46de Signed-off-by: Daniel Levin <dendy@ti.com> CameraHAL: Added OMAP_ENHANCEMENT_BURST_CAPTURE Change-Id: I7f220a92484030d99738b4cdc123257e5511c5f8 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | Wrap include directories and loggingDaniel Levin2012-07-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use global ANDROID_API_<pastry>_OR_LATER to wrap proper include directories and logging code for JB. Change-Id: Ibfb85d7208751fec83bf71c829d0e279e9e9efac Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | CameraHAL: Moved Camera HAL sources out of namespace androidDaniel Levin2012-07-2542-1178/+1266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Fixed NV12_resize coding styleDaniel Levin2012-07-252-205/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added license - Fixed indentation - Replaced TRUE/FALSE with true/false No functional changes. Change-Id: Iea364bbb33e1abaa28284cb9083622e163ab122d Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | CameraHAL: Portability changesDaniel Levin2012-07-2524-247/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Moved common definitions to Global.h header: - CAMHAL_LOG* macros (also added CAMHAL_LOGI and CAMHAL_LOGW) - CAMHAL_ASSERT* macros - CAMHAL_UNUSED macro 2. Renamed NV12_resize.c to NV12_resize.cpp 3. Added common math functions into UtilsGlobal.h header: - min(a, b) - returns min of a and b - max(a, b) - returns max of a and b - bound(min, a, max) - return nearest value to a in scope [min..max] - floor(a) - round a to lower integer - round(a) - round a to nearest integer 4. Portability: - Fixed LOG* macros to use appropriate CAMHAL_LOG* wrappers. - Reworked the Android.mk to include proper directories depending on current pastry. Change-Id: I6fbd1ee02d8af2195b91cc357ddcf554fe77f495 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | CameraHAL: Fixed debug buildDaniel Levin2012-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed build with debugging enabled after patch: http://review.omapzoom.org/23863 Change-Id: I5867f45747170ae501a732aeda40a5b2d4d43acf Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | CameraHAL: Use capture data from CameraAdapterVladimir Petrov2012-07-257-17/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | | CameraHAL: Conditionally advertise preview messages as disabledTyler Luu2012-07-251-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally advertise preview messages as disabled, so AppCallbackNotifier will not propagate preview messages unnecessarily. Change-Id: I88a95e56cf90eaf704912b9684a87f9a4ef21476 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * | | | | | | | CameraHAL: Include ion from <ion/ion.h>Daniel Levin2012-07-253-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libion headers should be included from <ion/ion.h>. This patch adds ion header reference to omap4xxx/include directory for Camera HAL, keeping other projects untouched. Change-Id: I7163cfab6910f89bfe321f693733d8112b380533 Signed-off-by: Daniel Levin <dendy@ti.com>
| * | | | | | | | camera: allow ldc/nsf in cpcam modeTyler Luu2012-07-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow LDC/NSF to be set in cpcam mode. It will not be used in the capture pipe, but the setting will be picked up for reprocess. Change-Id: I8ac9bb4dd97a16877f43f067a26399db43e78894 Signed-off-by: Tyler Luu <tluu@ti.com>
| * | | | | | | | Reconcile with p-ics-mr1-release branch.Daniel Levin2012-07-257-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | | CameraHAL: Fix for first time face detection.Saravanan Solaiyappan2012-07-251-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a issue in face detection in case of sensor mount orientation is not zero and the onOrientationEvent() is not triggered. In omap5, the sensor mount orientation is != 0. But the startFaceDetection() sets the orienation which is available in mDeviceOrientation. This mDeviceOrientation is initialized to zero and only gets updated in OnOrientationEvent() where the sensor mount orientation also considered. Because of this the face detection will not find any faces until the onOrientationEvent() get called. This patch initialize the mDeviceOrientation to sensor mount orientation. So that faceDetection will find face starts from the preview even before the board moved around to get the onOrientationEvent(). Change-Id: Iecf912b309e7551ed10cbae4ba32be860d0a9beb Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
| * | | | | | | | Revert "Camera HAL: Second stereo camera added"Sundar Raman2012-07-254-107/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 67045e06e7b58e644a5089a2a253879abc28a5fd. Conflicts: camera/OMXCameraAdapter/OMXAlgo.cpp Change-Id: Id22974e1822d06f574548afd86db398c76c05a9b
| * | | | | | | | Revert "CameraHAL: Limit the sensor/caps detection in the absence of primary ↵Saravanan Solaiyappan2012-07-251-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | camera" This reverts commit cf49a3847ca6e12f3e91b4588444572fc8db2070. The issue is root caused to I2C2 and I2C3 pullup is not enabled. Now the kernel patch( http://review.omapzoom.org/#/c/24043/) should enable the intenal pullup. So this patch is no more needed. Change-Id: If947d8043174afe12a23653cb35694e72ef51fdc Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
| * | | | | | | | Camera HAL: Using appropriate properties for stereo sensorAndriy Chepurnyy2012-07-251-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case if capture mode not set explicitly Camera HAL should also use properties for stereo sensor. Change-Id: I364f9a19deb746ab60b1379acab7a4b7f7e4978c Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>