summaryrefslogtreecommitdiffstats
path: root/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
Commit message (Collapse)AuthorAgeFilesLines
...
| * | CameraHAL: Enable Sensor Overclocking for OV14825 for 60 FPSSathya Prakash M R2012-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OV14285 needs sensor overclocking to get 60 fps for 1080p resolution. This patch enables overclocking when FPS is set to 60 and resolution is 1080p. This patch also adds the 60fps to the capabilities. So that when ducati gives the capability for 60fps cameraHAL will populate this to application. This also restarts the preview when the FPS range is reduced from 60fps to 30fps. Change-Id: Ib7c34a6581d3f0c9bd555a1b444b91a7cd2fda4c Signed-off-by: Sathya Prakash M R <a0393677@ti.com> Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
* | | Merge branch 'cpcam/DEV_DB43' into cpcam/latestTyler Luu2012-07-251-0/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Conflicts: camera/ANativeWindowDisplayAdapter.cpp camera/inc/ANativeWindowDisplayAdapter.h camera/inc/CameraHal.h Change-Id: I772e1a1ea4cf716c815b878029532fe4b86cff88
| * | CameraHal: Changes necessitated by slice based processingAnu Sundararajan2012-07-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slice based processing requires a tunnel to be set up between camera and encoder. Because of tunneling, the OMX state transtion must happen in a particular order. Therefore, new commands have been added to allow the application to control the state transition. Existing cameraHal clients like CameraService need not do anything different. Initialization: --------------- Application creates an instance of the camera. At this point, camera is in loaded state. Application calls setParameter(sliceheight/encoder handle) to set up the tunnel and slice parameters. Application calls sendCommand(CAMERA_CMD_PREVIEW_INITIALIZATION, ...) to move the camera to idle state. Application calls startPreview() to move the camera to executing state. Deinitialization: ----------------- Application calls sendCommand(CAMERA_CMD_PREVIEW_DEINITIALIZATION, ...) to move the camera to idle state. Application calls stopPreview() to move the camera to loaded state. If the application does not call sendCommand(CAMERA_CMD_PREVIEW_INITIALIZATION, ...), then during startPreview, the camera moves from loaded to idle to executing like before. Similarly, if the application does not call sendCommand(CAMERA_CMD_PREVIEW_DEINITIALIZATION, ...)then during stopPreview, the camera moves from executing to idle to loaded like before. Disabling the preview port and freeing the buffers caused ducati to go into a bad state. This issue is observed only during slice mode. Therefore, preview port disable/enable has been removed and the preview buffers are now freed when moving from idle to loaded state. Change-Id: I7039c854f1358c22b6f5e116dcadfd025185bee1 Signed-off-by: Prasanna Kumar M.R. <prasanna.kumarmr@ti.com> Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
* | | Merge branch 'DEV_DB34' into cpcam/latestTyler Luu2012-07-251-17/+39
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: camera/Android.mk camera/CameraHal.cpp camera/OMXCameraAdapter/OMXCameraAdapter.cpp camera/OMXCameraAdapter/OMXCapabilities.cpp camera/OMXCameraAdapter/OMXCapture.cpp camera/TICameraParameters.cpp camera/inc/OMXCameraAdapter/OMXCameraAdapter.h camera/inc/TICameraParameters.h Change-Id: I1db68ca97a851ae9c839eb35c3f732657759533c
| * | CameraHAL: Zoom Bracketing supportDimitar Borisov2012-07-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds support for zoom bracketing - When press the shutter button in Zoom Bracketing mode 10 images with different zoom are captured. Change-Id: I4466f43d3ad18b7676b15a4c20492eaa9ce89b87 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * | CameraHAL: Fixed indentationDaniel Levin2012-07-251-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | Replaced tabs with spaces in all sources except NV12_resize. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I4dc2cdd2b986bb61f6f553b493b0c379828f27ab
| * | CameraHal: Profile log dumpAkwasi Boateng2012-07-251-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Usage: - CameraHal should be compiled with the 'TI_CAMERAHAL_PROFILING' build variable enabled. - Following directory needs to be created on the Android filesystem: '/data/dbg/' 'adb shell mkdir /data/dbg/' - 'adb shell setprop debug.camera.profile 1' should be executed before starting camera. - After work is complete profile logs will be stored inside '/data/dbg/profile_data.bin' Change-Id: I874f58f323bd317dec578cd7ed6a5049740dd5e3 Signed-off-by: Vladislav Hristov <vhristov@mm-sol.com> Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * | CameraHAL: RAW + YUVGeorgi Georgiev2012-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch is an add-on to RAW+YUV capturing,that is needed for tunning purposes. For triggering the RAW+YUV capture is required the RAW and YUV data folders to exists: * /data/misc/camera/RaW_PiCtUrEs * /data/misc/camera/YuV_PiCtUrEs , and to HQ capture mode to be set. So, if these rules are completed, RAW and YUV files should be saved in directories. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: Ie1b188c4bc02791d513c3f8cbd87da10188ddcd6
* | | CameraHAL: Flush image port for back-2-back captureTyler Luu2012-07-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since we are keeping the image port enabled for subsequent captures, we should flush the port before re-using it. Seeing FTB hang for back-to-back-to-back burst capture. Change-Id: Ibdca2a8cdfde2f7baa76348afce8a89db395710a Signed-off-by: Tyler Luu <tluu@ti.com>
* | | camera: optimize SetConfigs for streaming captureTyler Luu2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimize the number of configs set configured per shot. 1. Re-locate one time configs to UseBuffersCapture 2. Move WA for restarting focus to stopImageCapture Change-Id: Ie363358054afe635d58774d4e2d2b5108303f4bf Signed-off-by: Tyler Luu <tluu@ti.com>
* | | camera: cache shot parametersTyler Luu2012-07-251-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since capture requests are handled in a seperate thread, we really need to cache the shot parameters instead of using the member variables. issue came about with cpcam since we can now queue multiple capture requests during one capture session. Change-Id: Id2cb647765b4b09f83f6331693f7f7f12481c0b7 Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHAL: Initial Camera Metadata changeTyler Luu2012-07-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse through extra data from omx camera and fill in CameraMetadata class. Send the metadata to BufferSource. Change-Id: I5eb9b4b59404c9e1aac9052b2301d03bffe8dc4e Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | camera: add reprocess() functionalityTyler Luu2012-07-251-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation for reprocess state change sequence should look like this: preview->loaded_reprocess->loaded_reprocess_capture-> reprocess Reprocess uses takePicture call to send output buffers to camera adapter and to signal start reprocess. Change-Id: I98a7ccd32778760603e9c367ab3cd4ef30fab8dc Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHAL: Handle Ducati requests for internal allocationTyler Luu2012-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Indicate to ducati that we want to use dynamically mapped system heap buffers, and process ducati requests for tiler area to map those buffers into. This is disabled for now. Change-Id: Ieeac1fee6e936ab91456666d8f418e63ef009731 Signed-off-by: David Schleef <ds@ti.com>
* | | camera: initial implementation for BufferSourceTyler Luu2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation to accept and use a BufferSource (SurfaceTexture) object for buffer management and datacallbacks. Change-Id: I0c1b8854f162eb3ea00c568a56c485d67f41ebca Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | CameraHal: Continuous bracket shot in cpcamTyler Luu2012-07-251-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation for continuous burst capture for cpcam usecase. This implementation is currently only appending shot requests to the end of the queue. TODO: 1. Add flush call to flush shot queue so we don't have restart preview to clear it. Change-Id: Ia2116f9d9410fdee76ad5e563947d63ea5c6774f Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com> Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHal: Add CameraBuffer (major refactoring)Tyler Luu2012-07-251-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a CameraBuffer type, which contains information corresponding to an internal CameraHal buffer - how it was allocated, relevant handles, and any internal data to be associated with the buffer, such as metadata, OMX indexes, current state. The simplest possible refactoring was done to convert the void * used for exchanging buffer information into the 'opaque' field in the CameraBuffer structure. A few hacks were added to minimize the size of the refactoring, these will be cleaned up in upcoming commits. Adding a private structure for buffers eliminates the need for a lot of KeyedVectors that are currently in use. Most of these were left in place, and will be refactored into the CameraBuffer structure later. The pAppPrivate field of OMX_BUFFERHEADERTYPE was used to eliminate another KeyedVector. Change-Id: I147ad971e4cdc03b2c445b5fba81d0ba83bc5fb3 Signed-off-by: David Schleef <ds@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com> Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHal: Relative vector shot interface changeTyler Luu2012-07-251-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently supporting Absolute, Relative and Forced relative. Application still sets absolute exposure bracketing key, but mode is changed depending on the format of the (exp, gain) pairs Examples: Absolute Gain: Values directly program sensor "(100,300),(200,300),(400,300),(800,300),(1600,300)" Relative Gain: Exposure and gain are compensated relative to AE. AE will prioritize constaints like flicker over this compensation. "(-30,+0),(-10, +0),(+0,+0),(+10,+0),(+30,+0)" Forced relative Gain: Exposure and gain are compensated relative to AE. Settings are forced over constraints due to settings like flicker, etc. "(-30,+0)F,(-10, +0)F,(+0,+0)F,(+10,+0)F,(+30,+0)F" Change-Id: I030aff84dd1fd9c61d3b4909ecc213cecc890be0 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | camera: implement vector shot stop implementationTyler Luu2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | We are just setting to stop in capture for now until we find a reason to continue with preview. Change-Id: I8065006c192ec543594bab5396479b6c8ac4ebf2 Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHal: Implement vector shot for cp-cam usecaseTyler Luu2012-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | If user sets absolute exposure gain key then we assume we are using vector shot if in cpcam mode. Change-Id: I4dfbd8befb304dace809ec27744ce41615e28fb6 Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHal: Add cp-cam usecaseTyler Luu2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding cp-cpcam usecase. In cp-cpcam uscase, OMX_TI_IndexConfigSinglePreviewMode will determine which pipe omx camera will use when capture flag is set Change-Id: Idf6763dbbba46d6da8bf568630cbcdaeda32e1f0 Signed-off-by: Tyler Luu <tluu@ti.com>
* | | CameraHal: Implement absolute exp/gain bracketingTyler Luu2012-07-251-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User sets KEY_EXP_GAIN_BRACKETING_RANGE with string of (exp, gain) pairs and KEY_BURST with the number of pairs Example: Absolute Gain: "(100,300),(200,300),(400,300),(800,300),(1600,300)" Change-Id: Id875e475051466eeb92c3e528762fc4ac37db502 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | camera: additional controls for some processingTyler Luu2012-07-251-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | Adding additional control for fixed gamma, NSF1, NSF2, sharpening, three color line map, and GIC. Change-Id: I1efbc3a721cc625ec2683e19aae1661fcad4559d Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | | CameraHal: Add more Exif data for video snapshotTyler Luu2012-07-251-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: 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: Various AF related fixesEmilian Peev2012-07-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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. - Reworks cancel AF mechanism, which will wait for AF status event and then signal to anyone waiting for an AF callback. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Change-Id: I633dd1a5abeb65675849ea062f2a9c3745f99e68
* | CameraHAL: Fixed possible OMX flush failureDaniel Levin2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | In case OMXCallbackHandler thread is not fast to catch passed messages before OMXCameraAdapter calls flush() - the mIsProcessed flag will remain set and flush() will return without waiting. The mIsProcessed flag must be unset before putting message into queue. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I11c14ccdad4e7bdc5828f7307af17e861b24cd3c
* | CameraHAL: VFR ranges fixesPavel Nedev2012-07-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supported VFR ranges gotten from Ducati and supported fixed FPS filled to be within those ranges. Several unnecessary parameter keys removed. FPS handling in CameraHAL fixed. Added class FpsRange with sort() method that conforms Android requirement about FPS ranges order: - The list is sorted from small to large (first by maximum fps and then minimum fps). Merged fixed FPS values into FPS ranges. Made the last (maximum) of fixed and variable FPS ranges to be default. Signed-off-by: Pavel Nedev <pnedev@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I634065fada4e3adc5a6bd7b2986a9b9caac661dc
* | CameraHal: Implementation for CAF status callbacksPavel Nedev2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Tyler Luu <tluu@ti.com> 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. Change-Id: I70842a0b8f004873d728ff178ae3a4db12060a7c Signed-off-by: Tyler Luu <tluu@ti.com>
* | CameraHAL: Mutually exclusive execution of stopImageCapture/startImageCaptureAndriy Chepurnyy2012-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | stopImageCapture/startImageCapture can be run from different threads, sometimes it leds to race condition like - shutter callback disabled right after it enable so startImageCapture continuosly waits on mStartCaptureSem.WaitTimeout(OMX_CAPTURE_TIMEOUT) and exit with invalid state. This patch is possible solution for DR OMAPS00261663. Change-Id: Idc8b0456a246a6aab1a86b5686720e41c681d26b Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* | CameraHAL: Supported VFR fixesPavel Nedev2012-07-251-6/+1
| | | | | | | | | | | | | | | | Supported variable frame rates are now gotten directly from Ducati as min,max pairs. Change-Id: I50a3045224b63c10d07e2cc9f0a939b6854f3004 Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* | 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: Use max zoom value from capabilitiesIvan Evlogiev2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | Maximum zoom value for stereo is different from the one in mono. Ducati returns maximum possible zoom possition in the capabilities. And this exact possition is used as camera adapter maximum zoom value Change-Id: I23ac8f657b69ad28038ed68286ee0a51f9ffc6b8 Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
* | CameraHal: Various fixes for issues seen during monkey testsEmilian Peev2012-07-251-0/+7
| | | | | | | | | | | | | | | | | | | | - 'mParams' in 'OMXCameraAdapter' should not be used for storing/retrieving internal adapter states or data. This object is continuously updated during every 'setParameters()' call and any references related to it can be invalided. Change-Id: I96a590b56fc9567b0c5dfd56cc0d9d8dc78bcab1 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | CameraHal: Search extra data only in the bufferIvan Evlogiev2012-07-251-1/+1
| | | | | | | | | | | | | | | | | | Bug fix for searching extradata types beyond end of the buffer. Check is added for remaning extra data size before accessing the next element. Change-Id: Ic21501fb447080ed9fad7ecad34ce016e9555df1 Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
* | CameraHAL: Fix manual convergence handlingIvan Evlogiev2012-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | Manual convergence is also valid for auto modes. It needs to be applied for all convergence modes. Default manual needs to be 0. Otherwize correction will be applied on ducati side Change-Id: I0b40942dc680b6046c22f5176e4cc7806b2f3f27 Signed-off-by: Ivan Evlogiev <x0099089@ti.com>
* | CameraHAL: Add picture encoding format selectionPavel Nedev2012-07-251-4/+12
| | | | | | | | | | | | | | | | Add image port encoding format selection. The supported formats are taken from the camera capabilities. Change-Id: I44d327410e2d669d57532d4c183b09030d598508 Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* | CameraHAL: Manual exposure and gain addedPavel Nedev2012-07-251-0/+2
| | | | | | | | | | | | | | | | Added supported min/max + step values for manual gain and exposure. Added manual gain and exposure params and settings. Change-Id: I15cac8b3fb4dbe0db46bb7fcf7d64805ad4a6db1 Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* | CameraHal: Adds support for GBCE/GLBCE in OMX CapabilitiesEmilian Peev2012-07-251-1/+4
| | | | | | | | | | Change-Id: I3469f234647316be4d2bb7c32a7ea23e66af996f Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | CameraHal: Avoids cases leading to error messages during camera setupEmilian Peev2012-07-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The preview port resolution and sensor overclocking should be set depending on various parameters. For instance switching between different sensor rotations requires to temporarly configure the preview port to a resolution, which doesn't go beyond what the camera supports. Additionally when disabling sensor overclocking, the port parameters should be set first. This again is required in order not go beyond the sensor limitations. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Change-Id: Ie37f6bcdf405b11bcc156ef128436db591dbde55
* | CameraHAL: Removed unused frame functionsDaniel Levin2012-07-251-5/+0
| | | | | | | | | | | | | | | | | | | | | | Removed sendFrame() and initCameraFrame() from OMXCameraAdapter. Dead code cleanup. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I6f76e5a6654e76e1bbb0d5c58d49af83aceec408
* | CameraHAL: Fixed calling UseBuffers for measurementDaniel Levin2012-07-251-1/+1
| | | | | | | | | | | | Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I0cf888d29ffb4e4bdc52cdaa37761269007ec618
* | CameraHAL: Fixed accessing deallocated OMX_BUFFERHEADERTYPEDaniel Levin2012-07-251-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At preview stop step buffers are forced to be flushed from Ducati, so after OMXCameraAdapter::flushBuffers() no OMXCameraAdapterFillBufferDone() callback will be triggered afterward. But because separate thread is used to handle fill buffer done callbacks flushed buffers will be handled with delay. This causes the case when already freed buffer header will be accessed. This patch adds flushing to callbacks thread, waiting until all flushed buffers from Ducati will be processed before exiting the OMXCameraAdapter::flushBuffers() body. This fixes random crashed when looking OMX_OTHER_EXTRADATATYPE in OMX_TI_PLATFORMPRIVATE buffer header section. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I87f9aa3bc4bc02d1e46a4fe2568e063324bc8b79
* | CameraHal: PPM update, configures 'autoconvergence' only when requiredEmilian Peev2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | - Currently 'autoconvergence' is taking up-to 150 ms., when set in executing state. Additionally this parameter is directly configured every time when the camera client invokes 'setParameters()'. This change should skip all of the unneeded OMX calls. Change-Id: Ic92d5938678c912ed2ee17b829139264e319df62 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | CameraHal: VSTAB, VNF API updatesEmilian Peev2012-07-251-1/+3
| | | | | | | | | | | | | | | | | | - 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: Omit 'apply3Adefaults()' during initializationEmilian Peev2012-07-251-1/+0
| | | | | | | | | | | | | | | | - This change should improve the standby to first shot PPM Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Change-Id: I20ffd1178a64b77d45b35bac1cf04be21d2d602b
* | CameraHal: Various PPM optimizations inside OMXCameraAdapterEmilian Peev2012-07-251-0/+12
| | | | | | | | | | | | Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Change-Id: I88193119c84ece34c56eb26d26c3d1f37ddd16c2
* | CameraHAL: Focus mode fixesPavel Nedev2012-07-251-0/+1
| | | | | | | | | | | | | | Camera focus mode capabilities now gotten correctly. Change-Id: I2959e00e07b1cbebb9d35c22867c37b3741e8b5c Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
* | CameraHAL: Fill properly supported Video snapshotIvan Evlogiev2012-07-251-1/+1
| | | | | | | | | | | | | | | | 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/+21
| | | | | | | | | | | | | | | | | | | | | | 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>