summaryrefslogtreecommitdiffstats
path: root/camera/OMXCameraAdapter/OMXDefaults.cpp
Commit message (Collapse)AuthorAgeFilesLines
* camera: fix front-facing cam on Motorola Omap4Michael Gernoth2015-02-271-0/+4
| | | | | | | Missed this bit when migrating to hardware/ti/omap4. Without it, the front-facing camera can't be used. Change-Id: I1a47d2991afa71840225f0cab9f27a155eaed780
* CameraHAL: Moved Camera HAL sources out of namespace androidDaniel Levin2012-07-251-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | 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: Queries picture sizes dynamicallyEmilian Peev2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | - 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
* CameraHAL: Simplified mechanical misalignment parametersDaniel Levin2012-07-251-1/+1
| | | | | | | | | | | | | | | | 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: Unused code cleanupDaniel Levin2012-07-251-4/+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: TRUE and FALSE cleanupDaniel Levin2012-07-251-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced custom boolean TRUE and FALSE string tokens with CameraParameters::TRUE and FALSE. Removed tokens: - VIDEO_SNAPSHOT_SUPPORTED - VIDEO_SNAPSHOT_UNSUPPORTED - ZOOM_SUPPORTED - ZOOM_UNSUPPORTED - MEASUREMENT_ENABLE - MEASUREMENT_DISABLE - SHUTTER_ENABLE - SHUTTER_DISABLE - BRACKET_ENABLE - BRACKET_DISABLE - DEFAULT_LOCK_SUPPORTED - DEFAULT_LOCK_UNSUPPORTED Also moved TRUE and FALSE defines from NV12_resize.h to NV12_resize.c. Must be merged with: http://review.omapzoom.org/#/c/19573/ Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I410c489f3be06cd3bc43c4cedc5a3ba9f9fdaff8
* CameraHAL: Default S3D preview layout set to TB_SUBPavel Nedev2012-07-251-0/+2
| | | | | | | | | | Added default S3D preview and capture layout values in OMX capabilities. If the default value is not supported the first supported value is used as default. Default S3D preview layout value is "tb-subsampled" while the default S3D capture layout value is "tb-full". Change-Id: I6a53f5e81aae2555549f4056d25a33ae25a244ae Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* CameraHal: Adds support for GBCE/GLBCE in OMX CapabilitiesEmilian Peev2012-07-251-1/+0
| | | | | Change-Id: I3469f234647316be4d2bb7c32a7ea23e66af996f Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* CameraHal: VSTAB, VNF API updatesEmilian Peev2012-07-251-1/+1
| | | | | | | | | - Adds supported values for VNF and VSTAB. - VNF API changes a bit in order to resemble the Google supported one for VSTAB. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Change-Id: I760049e4fa3cfd43fffcf0bafdad618c4df8d47b
* CameraHAL: Fill properly supported Video snapshotIvan Evlogiev2012-07-251-1/+0
| | | | | | | | Fill supported value for video snapshot based on ducati capabilities Change-Id: Ia590c87fd594c9c599b70db2603c0b8f84e391f9 Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
* CameraHAL: Stereo 3D frame layout parameters addedIvan Evlogiev2012-07-251-0/+4
| | | | | | | | | | | S3D frame layout params added for preview and capture. Capabilities for the above also added (to be read from Ducati). First supported value taken as default. Different supported 3D resolutions added depending on frame layouts supported. Change-Id: I819098ef3c7a4cd6ba49ec17c9c26d2610933145 Signed-off-by: Pavel Nedev <pnedev@mm-sol.com> Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
* CameraHAL: Mechanical Misalignment parameter addedIvan Evlogiev2012-07-251-0/+1
| | | | | | | | | Mechanical misalignment param added in case of Stereo camera. Supported values also added as capabilities. Change-Id: I88b6e1f842b6d2ae60a096172da9193f53d16b0c Signed-off-by: Yordan Lilov <ylilov@mm-sol.com> Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* CameraHAL : Add AutoConvergence modeIvan Evlogiev2012-07-251-0/+2
| | | | | | | | | | | | Added Autoconvergence mode in the interface to the application. Set proper supported Autoconvergence modes to the application based on ducati camera capabilities. Supported manual convergence value boundaries and step also added as parameters. Change-Id: I1331dfac603d625d54684fbf3b27a374d0979208 Signed-off-by: Ivan Evlogiev <x0099089@ti.com> Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* CameraHAL: OMX capabilities fixesIvan Evlogiev2012-07-251-2/+0
| | | | | | | | | | Several bugs in camera capabilities fixed. Hard-coded capabilities removed - the capabilities are taken from Ducati now. Signed-off-by: Pavel Nedev <pnedev@mm-sol.com> Signed-off-by: Ivan Evlogiev <x0099089@ti.com> Change-Id: I09f2ff084b1e918ea790b2389c958d96f813ec78
* CameraHAL: Improved debug loggingDaniel Levin2012-07-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0. Renamed DEBUG_LOG macro to CAMERAHAL_DEBUG and moved it from CameraHal.h into Android.mk. To enable debug logging next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_DEBUG_ENABLED := 1 To enable verbose debug logging next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_VERBOSE_DEBUG_ENABLED := 1 1. CAMHAL_LOG*A and CAMHAL_LOG*B macros have been united into single CAMHAL_LOG* macro that accepts both variants. 2. Rewritten LOG_FUNCTION_NAME/LOG_FUNCTION_NAME_EXIT macros. Now they do operate on internal FunctionLogger class instance that does function enter/exit logging in constructor/destructor. If LOG_FUNCTION_NAME is used then LOG_FUNCTION_NAME_EXIT can be skipped in source code, in this case destructor will correctly print function exit entry. 3. Added optional printing message timestamps. To enable timestamp printing next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_DEBUG_TIMESTAMPS := 1 4. Moved LOG_TAG macro definition from all CameraHAL sources to Android.mk. 5. Added printing message thread ids. 6. Added printing per thread call stack indentation to visualize call hierarchy. 7. Added CAMHAL_ASSERT(condition) and CAMHAL_ASSERT_X(condition,description) macros to assert conditions at runtime and abort process on failure. 8. Added CAMHAL_UNUSED(x) to mark unused variables which are not mistakes. 9. Added next variables to enable debug logging for MessageQueue, that should be put into $AFS/buildspec.mk: TI_UTILS_MESSAGE_QUEUE_DEBUG_ENABLED := 1 TI_UTILS_MESSAGE_QUEUE_DEBUG_FUNCTION_NAMES := 1 Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I8ebea607199de621860ada6dfcab9164ba85674a
* CameraHal: Fixes for video rotationEmilian Peev2012-07-251-0/+1
| | | | | | | | | | - The sensor orientation parameter was not properly propagated to the CameraAdapter. - Fixes a stability issue with the rotation on primary camera. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Jean Johnson <a0271255@ti.com> Change-Id: I54f4fa55dc9a62495bc2d7508581268c6e6544aa
* CameraHAL: Fix for #testJpegExifSundar Raman2011-10-191-1/+2
| | | | | | | | | | | Set the focal length to correct defaults for primary and secondary for the sensors on the phone. Previous camerahal value was wrong. Call setupEXIF even in the case where we return from useBufferCapture when the port is already enabled. Change-Id: I224ec2f19af11de525455015c1822ba6a13c4d17 Signed-off-by: Sundar Raman <sunds@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* CameraHal: Adapt to new framework vstab paramTyler Luu2011-10-141-1/+2
| | | | | | | | change to use the new KEY_VIDEO_STABILIZATION parameter from the framework instead of using TICameraParameter definition. Change-Id: Ifed4c147e6ad3c02b35772343d9d339ab1402eac Signed-off-by: Tyler Luu <tluu@ti.com>
* CameraHAL: Switch default focus mode back to autoSundar Raman2011-10-121-1/+1
| | | | | | | | | | | Since Barcode scanner app doesnt support continuous auto focus and the locking semantics around autoFocus api. Fixes b/5434919 Change-Id: Ie45f1553e468f2d25fee256dab2492713add2744 Signed-off-by: Sundar Raman <sunds@ti.com>
* omap4xxx: camera: send different preview and video buffers for MMS modeAkwasi Boateng2011-10-071-1/+2
| | | | | | | | | | | | | | | | | | Fixes b/5265389 b/5156090 1. Add support to send different preview and video buffers to framework in MMS mode. 2. For resolutions less than or equal to QVGA, preview resolution will be changed to a bigger resolution matching the aspect ratio of the preview resolution. 3. During record the changed resolution will be resized to the original resolution and sent to the encoder. 4. Modified NV12 resizer routine to account for frame offset and stride to avoid double memcpy of the buffers Change-Id: If66aa1fd861078d0a63b4a77a1bdc20d4c6bccda Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* CameraHal: Add filter to smooth faces from OMXCameraTyler Luu2011-09-211-1/+3
| | | | | | | | | | | | | | Filter faces coming from Ducati to smooth out the jitter. This patch requires the face tracking mechanism in Ducati so faces are ordered properly for each frame. Also, this patch is only providing filtering of face sizes since Ducati is already smoothing the face positions. b/5141268 Change-Id: Ia7ee1c46ca41fcdd1e45505242f2802b0b4fb647 Orginal-author: Mandeep Kumar <mandeep@ti.com> Signed-off-by: Tyler Luu <tluu@ti.com>
* Camera: Disable GBCE by defaultDevaraj Rangasamy2011-09-191-1/+1
| | | | | | | Dont enable GBCE for image capture Change-Id: Ic9536e1cb008aae1e96108a6fbdef7e3f2583c90 Signed-off-by: Devaraj Rangasamy <dev@ti.com>
* CameraHAL: Fixes for FPS range configurationSundar Raman2011-09-191-1/+2
| | | | | Change-Id: Idfc506812d6e0f1d88bdc5d7d62c159f9c9ad642 Signed-off-by: Sundar Raman <sunds@ti.com>
* CameraHAL: Default continuous autofocus mode for 3rd party appsSundar Raman2011-09-121-0/+1
| | | | | | | | | | 3rd party apps like bar code scanner work really well with continous auto focus as the default mode. So this patch sets the default focus mode to continuous-picture Change-Id: I721ad98f26ad18a6ecf98c09c16ac17e8aacdf05 Signed-off-by: Sundar Raman <sunds@ti.com>
* Set default fps range for video mode to 24<->30Akwasi Boateng2011-09-091-1/+1
| | | | | | | | Hack to allow image mode fps=15 and vide mode fps = 24 Change-Id: Ie2a4b3d5c7e32515a1af948fa65c934baaf3e1a9 Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
* Revert "Revert "CameraHAL : Multiple focus and exposure areas support""Iliyan Malchev2011-09-071-1/+0
| | | | This reverts commit 72bac2af47f73167bd288bc7278e5496ccabe6f4.
* Revert "CameraHAL : Multiple focus and exposure areas support"Iliyan Malchev2011-09-061-0/+1
| | | | | | | | | | This reverts commit bd9754a1b2c8d5e0a8788d0e42d018857bfef7a7. Conflicts: camera/inc/OMXCameraAdapter/OMXCameraAdapter.h Change-Id: Iad51c457b05de9b5492061b8402e508a6c5b42bf
* CameraHal: Set KEY_VIDEO_SNAPSHOT_SUPPORTED defaultTyler Luu2011-09-021-0/+1
| | | | | Change-Id: I106a62bc752398f52224d1b1b7ef78a703ab1f17 Signed-off-by: Iliyan Malchev <malchev@google.com>
* CameraHAL : Multiple focus and exposure areas supportMilen Mitkov2011-09-021-1/+0
| | | | | | | | | | | | | | | | | | Adds support for multiple focus and exposure areas and also correctly returning the number of maximum supported focus and exposure areas. - Patch set 4: converting the coordinates, which are sent to 3A in the range 0 - 255. Both Focus and Exposure algorithms use this range - Patch set 5: Handling special area (0, 0, 0, 0, 0), rebasing and also memory allocation alignment to 4K chunks. - Patch set 6: Freeing the alloc'd buffer in case of error. Change-Id: I45bdd4309b75ac4d50deb05e97120362cdb1937b Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
* CameraHAL: Enable GBCE by defaultSundar Raman2011-08-311-0/+1
| | | | | | | Needed to improve image quality Change-Id: I727b8ee21a186e1616e690f85075e4e8a64617f9 Signed-off-by: Sundar Raman <sunds@ti.com>
* CameraHal: Fixes related to CTS test #testFocusAreasTyler Luu2011-08-161-0/+2
| | | | | | | | | | | | - Sanity checks should be performed on the individual areas for the test to pass. - On invalid configuration CameraParameters should revert to the last known good configuration. Change-Id: I9026f287e884835a98c835e8f949ad4441c030bd Original-author: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Tyler Luu <tluu@ti.com>
* Camera HAL: Default ldc-nsf for still previewSundar Raman2011-08-121-1/+1
| | | | | | | | Enable ldc-nsf for still image preview to attain good quality. Change-Id: I44e73af79ba983c938aae4ef01c65fec39478f3a Signed-off-by: Sundar Raman <sunds@ti.com>
* OMAP4 Camera HAL: CTS: Setting defaults for some parametersSundar Raman2011-08-111-1/+3
| | | | | | | | | focal length, horizontal and vertical angles Addresses failures of following tests: Change-Id: I36107b8c5cffe843ce7d167a607b9f9269f3ed26 Signed-off-by: Sundar Raman <sunds@ti.com>
* initial commitIliyan Malchev2011-08-081-0/+71
Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e Signed-off-by: Iliyan Malchev <malchev@google.com>