• Home
  • History
  • Annotate
  • only in /hardware/ti/omap4-aah/camera/inc/OMXCameraAdapter/
History log of /hardware/ti/omap4-aah/camera/inc/OMXCameraAdapter/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0db9de9c050c698df5c160249e4060efa96e10a7 15-May-2012 Vladimir Petrov <vppetrov@mm-sol.com> CameraHal: Add external gamma table configuration

- 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>
MXCameraAdapter.h
9ea65b3dc3b1728a812ff8f0b2cddf4b039f123e 27-Aug-2012 Vladimir Petrov <vppetrov@mm-sol.com> CameraHal: Always set queued shot config in CPCAM mode

- 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>
MXCameraAdapter.h
f7a4d11e9f710e2cd0592310ac1baecccb85f1d1 18-Oct-2012 Jason Simmons <jsimmons@google.com> Snapshot of TI's camera HAL development with adjustments to build in our tree

The head of TI's hardware/ti/omap4xxx/camera repository at the time of the snapshot was:
commit 4447eaef6dc757aecab869054460ae87848e575e
Author: Vladimir Petrov <vppetrov@mm-sol.com>
Date: Thu Aug 16 19:13:03 2012 +0300
CameraHal: Add support to release tap in/outs

Change-Id: Ia6bfefb427fe171067eddcab6d896683ff2d149f
MXCameraAdapter.h
MXDCC.h
MXSceneModeTables.h
c78626b15e9f29a5bcf85447ceafb17dcbf58b69 20-May-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Avoids possible race conditions while accessing 'mParams'

- 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>
MXCameraAdapter.h
f2170decdf6bf41e590842b0fe5c0ed3852ebec3 14-Mar-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Speedup face detection start

- 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>
MXCameraAdapter.h
da310a303b2b48404f31645cf660063517da3e8a 15-Dec-2011 Emilian Peev <epeev@mm-sol.com> CameraHal: Omit 'apply3Adefaults()' during initialization

- This change should improve the standby to first shot
PPM

bug:6136966

Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Change-Id: I20ffd1178a64b77d45b35bac1cf04be21d2d602b
MXCameraAdapter.h
ac0cf36b98237ec911f49e7b1b93ef6464666e48 07-Feb-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Various AF related fixes

- 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>
MXCameraAdapter.h
057f4fd59ec05ded909e9eb9a3363d9ea345b0ca 31-Jan-2012 Tyler Luu <tluu@ti.com> CameraHal: Implementation for CAF status callbacks

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
MXCameraAdapter.h
c387abd774bbc0aa23314bb989c1dec23e588a22 01-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> CameraHAL: Handling OMX initialization

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
MXCameraAdapter.h
ef73bec8a83a2fd7fbb072d009382c64eb2da0ee 19-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Add more Exif data for video snapshot

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>
MXCameraAdapter.h
f9df3ee5cfb3c3177bcc630abf6d756e8a60254c 10-Nov-2011 Sundar Raman <sunds@ti.com> CameraHAL: Clear events queue fix, clear command queue on exit

Fix 2/3 for b/5593964.

1. The events queue wasn't being cleared correctly inside
OMXCameraAdapter as some items were being removed while the
index was being formulated based on the original size
2. The command queue should be cleared before posting the EXIT
message for the OMX adapter threads so as not to process those
messages since we are exiting

Change-Id: I0a5eaceb3d1504fee05b064ebb5fe888e129ad44
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
cf0a61f13533d70cb7ad700330de94142c2afe6a 26-Oct-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL: Use Ancillary data to check for snapshot

Uses the ancilary data field nDCCStatus to check
if the preview frame is a snapshot.

Fixes a rare issue in which a normal (non-snapshot)
preview frame is received after capture has started.

Change-Id: I242c17ee3dd1365eb24c6c15585bb125f6938dee
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>

related-to-bug: 5472396
MXCameraAdapter.h
fd705eb8b757a4f3d1d80b736cf20cade04524d7 21-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes for #testFocusDistance

1. Seperate OMXCameraAdapter cancelAutoFocus with unsetting focus
lock. Adding new internal parameter to unlock focus from the
cancelAutoFocus in CameraHal. We need to cancel auto focus during
stop preview in case it is still running. If we do the unlock in
OMXCameraAdapter then, focus distance can change after stopPreview.

2. If autoFocus or takePicture comes after startPreview but before
the first preview frame comes, then sometimes the focus distance
queried after the calls won't be correct since OMX camera might
still be transitioning.

3. Update focus distances when focus is running.

b/5473673

Change-Id: I5a27d78aef437a1601a68e8c08fa860f04fc0c55
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
759396a116bb2caf006405777a626fe9a8708114 20-Oct-2011 Tyler Luu <tluu@ti.com> CameraHAL: WA for #testSceneMode

testSceneMode requires parameters to be updated properly before
starting preview. OMX Camera doesn't currently support this so
we are just going to keep a hard-coded LUT for the scene modes
for now.

Change-Id: I40c4492834d43c9328c87fd7aa4ea06fb1f1d90b
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
MXSceneModeTables.h
d16343600a83478ed6223e51aa41f717f28b6351 20-Oct-2011 Sundar Raman <sunds@ti.com> CameraHAL: Fix for #testJpegExif

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>
MXCameraAdapter.h
fab72086a1fa5d93037ec1355bc8b01355db0f41 18-Oct-2011 Tyler Luu <tluu@ti.com> CameraHAL: Keep image port enabled if possible

Try to keep the image port enabled if possible after capturing
an image. We need to disable the image port if any settings are
changed or when stopping preview. To disable image port, buffers
also have to be freed, and to keep the image port enabled, the
same buffer needs to be used. So, we are reenabling functionality
to trigger free the image buffer from camera adapter to free the
buffer as late as possible and as required by camera adapter.
Skip image buffer allocation if it is already enabled.

Fixes issue with some jerks seen in preview during video
capture while taking snapshot.

b/5449158

Change-Id: I830cf8512fe039df10d28e1f5a22e61e30840852
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
2facbeb345500d62f74eac01ebb49a069fe034c1 19-Oct-2011 Raji Reddy Kandi <rajireddy.k@samsung.com> CameraHAL: protect mParameters3A from simultaneous read/write.

Fix for Issue: Idle -> remove from the latest launched apps -> Launch Camera
-> Settings -> Restore defaults -> ok -> Flash mode On ->
White balance Cloudy -> Exposure -3 -> Scene mode Party ->
Shooting -> Camcoder mode -> Settings -> Restore defaults ->
ok

==> video preview is red even after we restored the settings.

Change-Id: If4b3672693a092f1956708742a6cc5f2c2c284fb
Signed-off-by: Raji Reddy Kandi <rajireddy.k@samsung.com>
MXCameraAdapter.h
312fa6b1a184b5e3aaedf66e6a348d17d9e38bd8 18-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Share a lock for exec and loaded switch

Share a lock between switchToLoaded function and doSwitchToExecuting,
so the two don't try to switch state at the same time.

b/5472446

Change-Id: I425943b97b7f08d1f7812214e4a305eb86af1ff9
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
c11c07d676f130e6e28ab1611f4862a01a160389 13-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes for #testVideoSnapshot

1. Add raw notify callback for video snapshot
2. Add new state for video capture + AF
3. We were not populating focal length correctly for jhead. Need to send
focal length as a rational in this format "xx/yy"
4. Need to send GPSProcessingMethod as an UNDEFINED ASCII to jhead

b/5448171

Change-Id: Ie6be9ad821d1fa106d9c857681f2fa6427d4f283
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
e552120201f0e53a6e5c9f816e91739dc4ec1e0b 11-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Enable 3A feedback for scene modes

When a scene mode is set by the application, some 3A parameters
will be updated by Ducati. Feed these parameters back to the
application.

Change-Id: I07afec0315d2807470037388572d0bc7ee8c3ad8
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
8b0b73df9a2fe8e4fc2c36919d05321f2d96d543 13-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Adapt to new framework vstab param

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>
MXCameraAdapter.h
704b8c03d4765b2f6d0a67bd175a7e9c51661c92 08-Oct-2011 Sundar Raman <sunds@ti.com> CameraHAL: Restore zoom stages back to 60

This provides for a smooth zoom experience with immediate zoom

This reverts commit a38ea5631d139c3d5ffd4e181df2216dbce1b10c.

Fixes b/5251916

Change-Id: If1724ec2ad5d3106e10ee5c2e691f99c19675eaf
MXCameraAdapter.h
1c7383822ebd9f8e70d7eec6dd204bb691d29c47 08-Oct-2011 Sundar Raman <sunds@ti.com> CameraHAL: Pass zoom values smoothly

Update the zoom values to the ducati only in the
fillBufferDone callback if another zoom request
is already in progress. However, overwrite the
zoom value with the latest value requested by the
application

Fixes b/5251916

Change-Id: I419baadb2ddd094277f003ddf25f63dca5d078f8
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
cacb0651c406df6b9ad2ee3bd48cc756718ba1a2 07-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Fix issue with not setting 3A settings

Accidently redefined some of the values for 3A settings enum
in 3a general settings header file.

Change-Id: I84b72ae0516d0362d381c4fa1d597cae86571fd7
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
b5abb7cbdf48ecccbf0e6d5e61a1846c0c4b28a5 01-Oct-2011 Tyler Luu <tluu@ti.com> omap4xxx: camera: set capture settings only if changed

Partial fix for b/5371242

Only set capture configs when they have changed from our current setting to
save some SetConfig time.

Change-Id: I68d7b7ebd4be3273abd534ce8e939da62d38d481
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
7016577b173fc73f5b43e76cbc122bb0a9346613 30-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> omap4xxx: camera: switch to executing state when surface is null

Partial fix for b/5422679

To enhance standby to first shot performance

Change-Id: Ib32e8120a7908419c76e8cf2f1830f0667b258c0
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
72b0d2814165e633385bd87a838fc9c3a8250113 15-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> omap4xxx: camera: send different preview and video buffers for MMS mode

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>
MXCameraAdapter.h
9a412956d5327ec851ff8adc3e9804640fa30c7f 06-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Allow only certain number of instances

1) Protect against simultaneous access to camera_device_open
2) Set a value of MAX_SIMUL_CAMERAS_SUPPORTED to dictate number
of simultaneous cameras that can be open at once. Set to 1 for
now in this patch. Return error if more is requested.
3) Change OMXCameraAdapter to allocate new instance for each
factory create call.
4) Add lock to capabalities factory function in OMXCameraAdapter
to protected against multiple OMXCamera GetHandles...

b/5401791 b/5404200 b/5405235

Change-Id: I179d493f8070d228877ebfac637047978afc7d55
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
b3fb1a45ce906ab0365f247caf596665ea0c9f39 26-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Improved error handling inside the adapters

1. unlock and cancel buffers to ANativeWindow when freeBuffers is called
2. Free the omx handle and deinitialize DOMX when errors occur while
calling critical OMXCamera apis
3. Retry OMX_GetHandle if it fails to take care of error recovery
scenarios.

"Fixes b/5379663"

Change-Id: I4729fab40e6104dfa6660ba6f6b1a90f805c2f59
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
f9e7d93cfc739190426ae5c3d204980ec8b2e475 23-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Make previous zoom index a member variable

Change previous zoom index variable from static to
member variable since variable is not reset when
application is closed or during suspend resume.

Change-Id: I7a757655dc7e5b30d21716dd38908f3d18131cde
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
MXCameraAdapter.h
d9c52eb4fa1e27ffd33f22d9987f60a8a714b7bf 22-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Add metering area mutex

mMeteringAreas needs to be protected by a mutex so
it's not cleared or modified while setting it
Ducati.

Change-Id: I0ca8f5e3b57b88b518a8e1ab22c442c21131e39c
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
b8923d57614400f11c61a524e15f040dd68d25bc 22-Sep-2011 Devaraj Rangasamy <dev@ti.com> OMXCameraAdapter: Update timstamp calculation and comment

In timestamp calculation, latency incurred in Ducati camera buffer
reaching CameraHal should be considered

Patchset 2:
- Updated variable name, migrated to header file
- Update comment description

Change-Id: Icc93c27a66477867e9c415b139a331646eb2fba8
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
MXCameraAdapter.h
7762bf32b7bd874ce34948eb53a3bfa3906f4aef 21-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Add filter to smooth faces from OMXCamera

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>
MXCameraAdapter.h
9dc08c5fb736308cfca6659f66b14165b265baeb 19-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Lock focus after AF completion

1) Add API to use OMX_IndexConfigImageFocusLock to lock autofocus
2) Remove FIXME to always return true status when CAF is set

Change-Id: Ie195206243bc1f750954def5f4f9f4466295bc7c

b/5338488
MXCameraAdapter.h
524cc0cda6ed8cb07e0469fc931657ac60335aa1 15-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Fixes for FPS range configuration

Change-Id: Idfc506812d6e0f1d88bdc5d7d62c159f9c9ad642
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
5e02dd977e79ee977ee063496033bbc363a70780 14-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Update frame ref counting

1. Make only one sendframe call from OMXCameraAdapter
2. Add frame type mask to frame structure
3. Frame type mask used to indicate type of frame
e.g video, preview, image or preview and video
4. Set frame ref count before sending frames to
subscribers.
5. Hold frame subscriber lock for setting the
refcount and sending the frames to the
subscribers to allow for the number of
subscribers not to change until frames
are sent.

Change-Id: Ic00a195847f2dc962e931ee8a9f36e3933e67c2d
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
MXCameraAdapter.h
36e9bdd56757ff8048e08f6e52f234480c44f122 08-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Add Exif support to video snapshot

Use jhead library to insert Exif to jpeg stream
returned from libjpeg.

Change-Id: Ia6398180b7ef3c1b3ddcb35e489527289565fef5
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
6b5eaf29c3d17a24731bf9271bd0d199d433813e 09-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Unblock semaphores during Fatal Errors

1. Remove all pending events and unblock
all waiting semaphore during Fatal error.

2. Exit execution when in invalid state.

3. Remove error nitiifcation from
Appcallback thread

Change-Id: I1612ff75e83ebf285d4cc168a829e0f81d4968b1
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
MXCameraAdapter.h
ba027fc89ec3950e1ac2f95fcc3f1002442ddabb 12-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL CTS: Fix for #testAutoExposureLock, #testAutoWhiteBalanceLock

Locks were not retained if the user forces the lock to true
before calling autoFocus. This patch addresses this scenario.

Change-Id: I2b5161806f8123b3042d46bc856773f0d4701458
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
edd46f9fca8856c26bb367ba2d7a29a7002ed9af 12-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Default continuous autofocus mode for 3rd party apps

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>
MXCameraAdapter.h
9b981b1785b6758b2dc8b147587188e5cf0d893d 09-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Destroy and recreate semaphore in case of timeout

Destroy and recreate semaphor during timeout
and remove event from event queue.

Change-Id: Id9428ff58a55f90a6807776327bfba1961d9089d
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
MXCameraAdapter.h
708ed7306c85286aa50d05ba15e0c33106e52ed0 08-Sep-2011 Iliyan Malchev <malchev@google.com> Revert "Revert "CameraHAL : Multiple focus and exposure areas support""

This reverts commit 72bac2af47f73167bd288bc7278e5496ccabe6f4.
MXCameraAdapter.h
72bac2af47f73167bd288bc7278e5496ccabe6f4 07-Sep-2011 Iliyan Malchev <malchev@google.com> Revert "CameraHAL : Multiple focus and exposure areas support"

This reverts commit bd9754a1b2c8d5e0a8788d0e42d018857bfef7a7.

Conflicts:

camera/inc/OMXCameraAdapter/OMXCameraAdapter.h

Change-Id: Iad51c457b05de9b5492061b8402e508a6c5b42bf
MXCameraAdapter.h
9919dafce4d57f0b9b9aedafc95b756464685009 02-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Set KEY_VIDEO_SNAPSHOT_SUPPORTED default

Change-Id: I106a62bc752398f52224d1b1b7ef78a703ab1f17
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h
bd9754a1b2c8d5e0a8788d0e42d018857bfef7a7 26-Aug-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL : Multiple focus and exposure areas support

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>
MXCameraAdapter.h
024e97a1213041f9d266ee09f7148a0c9b007260 31-Aug-2011 Tyler Luu <tluu@ti.com> CameraHAL: Fixes some uninitialized variables in OMXCameraAdapter

Change-Id: I3603c8ea55cf8ffc1479ec2cc0df437bd2838ad1
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>
MXCameraAdapter.h
d55379a7e975f992db1d10bba425f456447d14a8 30-Aug-2011 Tyler Luu <tluu@ti.com> CameraHAL: Adds locking when accessing 'mFocusAreas'

- This is due to the access pattern of 'mFocusAreas.
Currently both 'setFocusMode()' and
'setParametersFocus()' can in parallel try to
write/read from this Vector. A race condition is
possible, in which the former method can clear a
focus area, while the latter method is trying to
increment its strong pointer. This will inevitably
result in a segfault.

Change-Id: I0e94d18326b85c20f73296d31d980b9c39685c32
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>
MXCameraAdapter.h
bea7955fe043c646d21243e9889afbfe1d671ad9 24-Aug-2011 Tyler Luu <tluu@ti.com> CameraHAL: Improves GPS conversion accuracy

- Fix needed for CTS test #testJpegExif

Change-Id: Ib43edeb569d014e94114e3d2a2017357ff9c0eb9
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>
MXCameraAdapter.h
d054c26243e4cf49e5fe04789e4437e5e0f3f574 30-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: Enable GBCE by default

Needed to improve image quality

Change-Id: I727b8ee21a186e1616e690f85075e4e8a64617f9
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
a38ea5631d139c3d5ffd4e181df2216dbce1b10c 28-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: Reduce the number of zoom stages to make it responsive

Reduce the number of zoom stages from 61 to 31 to make the smooth
zoom more responsive.

Change-Id: I74eb20795cc5164cb03ca7155300bed7cd0716e6
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
f26e751771c0794008e466cd8f86601cf55fe572 26-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Use LUT to populate VFR list

Instead of trying to calculate supported VFR list
from the min and max reported from Ducati, use
a prepopulated LUT. It is difficult to programmatically
add odd variable framerates, i.e (24,30).

Change-Id: I149ee68dddd57f0f0f69ded6ad51739eec79c771
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
85c859b69b3c003b8db810371e24fe41599fc7de 26-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: Adds support for 'autoFocus()' calls during CAF

- Previously during CAF any calls for doing AF were
immediately returning status. The patch will check if
CAF has succeeded in locking and if this is not the case
it will temporarily switch to 'auto' triggering a full
AF sweep. CAF is again restored afterwards.
- Additionally this patch adds support for canceling AF
during 'PREVIEW_STATE' state, which is needed in order
to release the 3A lock after AF

Change-Id: Ie8c9b77fb134e63ed668a22453c1672b34488d94
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
00479a8f1d791824870513b8b0b9edd67d2560ff 25-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: OMX algo priority re-design

- Allows stacking of different algorithm priorities.
- Resolves an issue with AF not functioning after
one iteration.
- Contains a couple of fixes related to WB and
Exposure priority modes.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>

Change-Id: I9c2848e776c727cd9cc3691221621f895dc5507b
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
aa6e62e279cb54ae76c55ba9f8d02da230ce34e7 16-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Adjust FD callbacks to updated javadoc

FD callback behavior is updated in latest javadoc
patch "Improve camera face detection javadoc."

Change-Id: I963628ae55eec62083c25d34bbb380ae6673e431
Signed-off-by: Tyler Luu <tluu@ti.com>
MXCameraAdapter.h
782a084e5fec691d3985b31c3ab7be1584d879b3 17-Aug-2011 Iliyan Malchev <malchev@google.com> Revert "(TEMP) Avoid SetConfig when starting front sensor"

This reverts commit 2f394067996c47b8c02a335af7403c34908bff07.
MXCameraAdapter.h
9e5cb561cc54d061fe9f3d05eae78f6efb70f2c2 17-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes related to CTS test #testFocusAreas

- 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>
MXCameraAdapter.h
4b85b17296d877e53a5197b2c0c8306c63839a12 01-Aug-2011 Sundar Raman <sunds@ti.com> OMAP4 Camera HAL: CTS: Setting defaults for some parameters

focal length, horizontal and vertical angles

Addresses failures of following tests:

Change-Id: I36107b8c5cffe843ce7d167a607b9f9269f3ed26
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
80c50ac56bfa97be0cf04332ec1d314637c8770f 09-Aug-2011 Sundar Raman <sunds@ti.com> Lock AE and AWB after AF

Change-Id: I12f1037be3d890b50c5413925d3084a2cf5256aa
Signed-off-by: Sundar Raman <sunds@ti.com>
MXCameraAdapter.h
2f394067996c47b8c02a335af7403c34908bff07 09-Aug-2011 Tyler Luu <tluu@ti.com> (TEMP) Avoid SetConfig when starting front sensor

Delay SetConfig calls for the first 99 frames when
starting front sensor. Front sensor is currently freezing
if any SetConfig is called within those first frames.

This patch needs to be removed once Ducati side issue
is fixed.

Change-Id: Ie50dab38724077443719a1061c9b038f59c6b545
MXCameraAdapter.h
c322989ae6ff6769490828de1b5eda12b749cce9 08-Aug-2011 Iliyan Malchev <malchev@google.com> initial commit

Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
MXCameraAdapter.h