History log of /hardware/ti/omap4xxx/camera/inc/CameraHal.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
46de639b23db99d7b99ff1c676ac98b84b6336c6 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I7d131473964d92c62a495d082a1207867f435885
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
bb0a9edbe9d4072ed227550d898f0c2d0149e0ba 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ib3b6ce6a89755e29aa9f830e9185064c25dd138e
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
2d4c8b133ded22fdc01f06e06faa454b8cda0f27 14-Oct-2011 Akwasi Boateng <akwasi.boateng@ti.com> CameraHAL: Removes a possible resource leak inside MemoryManager

- 'mIonFd' doesn't get properly closed in each error case
involving buffer allocation

Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Daniel Levin <x0155538@ti.com>
Signed-off-by: Jean Johnson <a0271255@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Change-Id: Ib893e832712e3ea4a3711153453f7a2aa873d0ee
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
e46394481e771dbdc8683645c3740a3d262a3d0f 17-Nov-2011 Iliyan Malchev <malchev@google.com> CameraHAL: clean up logs

-- introduce CAMHAL_LOGI so that we don't have to dump informational messages
as LOGE
-- convert some verbose messages to CAMHAL_LOGDB
-- convert most frequent non-error log messages to CAMHAL_LOGI

Change-Id: I8afc24aa17da2c157b7b37300a79b4cde81f87e5
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
78dac813ae2c442dd0669db208abd3720d0ea6c4 17-Nov-2011 Iliyan Malchev <malchev@google.com> CameraHAL: Do not return error if AF fails

Fixes b/5612881

Some third-party apps do not handle errors thrown by the camera HAL when they
try to invoke autoFocus while AF is in progress.

The Barcode Scanner, in particular, will quit in this case without releasing
the Camera handle, wreaking all sorts of power-management havoc.

Even though CTS does not mandate it, previous versions of Android and other
camera HAL implementations simply return success in this case. This patch
makes this HAL conform to this behavior.

Change-Id: I758e2de7f84b61043267f052169068b64d75d0d1
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
3ec18006399d61e97382601d14aaa43ee339c8b6 08-Nov-2011 Sundar Raman <sunds@ti.com> CameraHAL: Fixes for ANR and a setParameter issue

Fix 1/3 for b/5593964.

1. Ensure we don't race with stopImageCapture when stopPreview is called
2. Signal the shutter callback correctly
3. Do not crash the media server if focus APIs and image capture returns error
Still go ahead and perform de-init
4. Replace setParameter from CameraHAl to AppCallbackNotifier with getParameter
when needed.

Change-Id: I2b2745827d227a8d7927ce1611a84c29129e8891
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
a58c483de2c8188e41fd9635042c31820d13b845 26-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Add function to rollback state machine

Fix 1/3 for b/5472396.

Adding a function to rollback the state machine to INTITIALIZED_STATE
from any given current state. With this function, we can better
manage the different states that CameraAdapter could be in when
stopPreview is called.

Change-Id: I0a456738e8575873b5ac6fb2a31395dab54ef6f7
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
d9d2fa13dcf81e9603a653625c65adf030a18204 07-Oct-2011 James Dong <jdong@google.com> GRALLOC_USAGE_EXTERNAL_DISP should not be used for Camera

Change-Id: I0702a4b5fc35ef8435b1914b8e81f39b3e7ea0b4
related-to-bug: 5382682
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
5458bdc45048501d1919b14d22456de91f7e8950 06-Oct-2011 Tyler Luu <tluu@ti.com> omap4xxx: camera: only set CameraAreas if changed

Partial fix for b/5371242

Add logic to compare areas for metering and focus before calling
SetConfig for the respective indices so we only set the areas if
the areas have changed

Change-Id: Id6b55e3d8e78557f45b92a5afefdb8298450da61
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
c160a1f85c70e49a7613d774e2d99035f3cb4851 04-Oct-2011 Tyler Luu <tluu@ti.com> omap4xxx: camera: EXIF thumbnail for video snapshot

Fixes b/5370657

1) Extend NV12 resizer to take stride insteadof hardcoding stride
2) Change Encoder class interface to support encoding a thumbnail and main jpeg
image. Encoder will resize/encodethumbnail in parallel while encoding the
main jpeg. Only NV21/NV12 resizing is supported. Thumbnail is created
withpost view frame.
3) Add interface in Encoder class to replace thumbnail with jhead.
4) Height and width fields of EXIF are not proper. Fixed.

Change-Id: I5d0063357e4e9e327d22805c2dddf8f630d22e7b
Signed-off-by: Raji Reddy Kandi<rajireddy.k@samsung.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
2f15c6a9f1d24904705ddab6a6c005126e8846dd 21-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: CTS fixes related to #testMeteringAreas

- The status of "parseAreas()" should always be checked
in order to return proper error code in case of invalid
input arguments.
- If the input metering areas are more than the supported
ones, then always return an error.
- 'parseAreas()' expects the buffer size, not the string
length.
- Refactors "parseFocusAreas()' to the more general
'parseAreas()'.

Change-Id: I4c70bcaa3c676f525b721916cc39c66db5e0fc17

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

Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
8e88af31129b8cc09675279ca2eac88256d8526b 16-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Grallock lock and unlock fixes

1. Get and store Y and UV pointers from
all gralloc handles to be used for
preview callback and video frames.
2. Ensure gralloc lock is successfull
before frame return to OMXCameraAdapter

Change-Id: Ibeea6d00f2c1a1c45bcd2eafb22b90a795516e5c
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
26d9a9166b81616d205eb9ebb49c18dac1f6c044 15-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Ensure frames are returned by AppCallbackNotifier

No bug filed for this, but it results in a crash. We can say it's a partial
fix for b/5316293

1. Clean-up notifyFrame a bit by using a common function
to send data callbacks. This ensures common functionality
for the all frame types.
2. Flush all the frames after stopping AppCallbackNotifier
to ensure notifyFrame doesn't operate on the buffers.

Change-Id: I4b0c8a595ea5474e8c8f5f98cfee16e6c1bde949
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
f4260660c494005dc6556698765fe3f3a0d97f60 14-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes for setParameter in CameraHal

1. CameraHal needs to call camera adapter setParameters when parameters
that the camera adapter will update in getParameters are changed so that the
camera adapter is properly updated before for a subsequent getParameters call.
2. Pass mParameters directly to camera adapter in getParameters call so
that it can be updated with parameters that the camera adapter modifies.

Change-Id: I26e8b6c39ff8be4af6bedb4d3eb1b81b4f3c2c17
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
3f75fa6e5edf504c155a357494ab77c59b6887b8 13-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Modify exit behavior of notify thread

When the camera app dies, sometimes the release() call is coming
from the same thread as a callback instead of the main thread. When this
happens, it causes a segfault in AppCallbackNotifier because we end up
destroying AppCallbackNotifier without the NotificationThread knowing.
The subsequent waitForMsg() after release() will result in a segfault since
the message queues are deleted.

Instead of looping forever in a while loop in the notification thread,
return bool value in looper function. This gives the Thread class a chance
to exit in case of a requestExit() in the same thread. Looper function
will automatically will be called again if exit is not pending and
previous looper function call returned true.

Change-Id: I6bdc65df71e2c3ebcbd409654b828edef29b1a0e
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
0ff71809874c00d540af83c123f3dc34759f1871 14-Sep-2011 Sundar Raman <sunds@ti.com> Camera HAL: Crash media server in case of camera hardware errors

Applications do not handle errors other then CAMERA_SERVER_DIED.
So there is no way for the application to know about fatal errors
other than killing the media server when they happen.
So this patch aborts media server whenever the ducati throws a
fatal exception or when it hangs so that the apps notify the user
of the error and then close. The user will be able to restart the
application since the media server restarts automatically and the
ducati is also restored by syslink automatically.

Change-Id: Ic3e93130818edbe281affca99b808e09e08614c5
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
e6cf8e95b3192621d3b992fbb09df8c58b1a1e5f 13-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Updates related to multiple MTS,CTS tests

- Test '#testTakePicture' in both the MTS suite and
the CTS package, require raw callbacks to be
generated when 'takePicture()' is provided with an
appropriate handler for it. Unfortunately, raw
data is not always provided by the CameraAdapters.
This modification adds the necessary functionality
in order to enable raw callbacks, when needed.

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

Change-Id: I2b963f5c23d31b02f3d59e1ee8c36cf3cd195bb6
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
a5263e55084368d67ad6a08bae59a6d910e756e9 08-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> FPS range and frame rate changes

Adjust framerate to match fps range
if app wants to a different fps range
other than the defualt and also adjust
fps range to match frame rate if
app wants to chnage frame rate only.

Change-Id: I1e15e4a021140f5b1cf78fcbb57c722a8e97e983
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
941b79b3815eb5f41e0d194d6f65161d1e4a86d0 08-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Use the same gralloc usage bits for alloc and write

Change-Id: I013fd9ff40efb0ceaa1575a5af1c077d72e7921d
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
708ed7306c85286aa50d05ba15e0c33106e52ed0 08-Sep-2011 Iliyan Malchev <malchev@google.com> Revert "Revert "CameraHAL : Multiple focus and exposure areas support""

This reverts commit 72bac2af47f73167bd288bc7278e5496ccabe6f4.
/hardware/ti/omap4xxx/camera/inc/CameraHal.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
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
ee6bb64f60c228d711dc1d6875d8f4b0ed88b6cf 01-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Initial support for video snapshot

Adds support for capturing an image while
recording in video mode. Sets up Ducati to
return a YUV422I buffer and encode is performed
in AppCallbackNotifier with Encoder_libjpeg class.

Change-Id: Ia351fc99dab63a12add8c6c960b186bbe5be275a
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
3a1541be51a8cc8dcc92a4ea1f0fa4a1c80990ce 29-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes related to CTS #testPreviewPictureSizesCombination

- This test depends on the following camera functionality.
After image capture is done, the camera client should be
able to switch the preview resolution without first
calling 'stopPreview()'. The patch adds the neccessary
logic for recognizing this particular case and accordingly
restarts the preview internally.

Change-Id: I3648ba9259d3a4720a12c7a1242d62b670e5dfdc
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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
c7a945e0434f1b99021d46fddf88bf776da6ad37 29-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: Adds ION support to MemoryManager

MemoryManager has been updated to allocate from
ION carveout instead of 1D TILER via MemMgr.

Note:
2D TILER allocation is not supported as it is
not needed currently. We may have to add support for
it in the future.

Change-Id: I3507da9a26ef4cadfda26ee21c8e12bbce515656
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
816f63fd6a78b45e18819d9967d409c212c88eae 26-Aug-2011 Sundar Raman <sunds@ti.com> Camera HAL: Do not call cancelBuffer when destroying the display adapter

When a NULL window is passed in setPreviewDisplay, we try to do cancelBuffer
to return the buffers to the ANativeWindow if there is a valid reference
to DisplayAdapter. However, the CameraService already sets the ANativeWindow
reference to NULL before calling setPreviewWindow method of the Camera HAL
so the cancel_buffer crashes. So, we do not call cancel_buffer as the
preview window is destroyed anyway by Camera Service.

Change-Id: Ie07f5fd3ca5bb5a31cb25a174ee1acc2988628af
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
9d3e3bc3209fbfbec33be46040f83c2360edd15d 25-Aug-2011 Sundar Raman <sunds@ti.com> CameraHAL: Fix a memory leak in Face detection

In some cases mFaceData is NOT null and mFaceData->faces is NULL.
In such cases we end up not freeing mFaceData. This patch takes
care of this case and frees mFaceData in such cases.

Change-Id: Ia73161064bec6f30f947f3ab596e09354e9d4b6d
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
1521831b2b2db93a1c90dd960ca4ee56b65de03d 17-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes related to CTS test #testPreviewFpsRange

- Framerate ranges were not ordered as per CTS requirement:
( maxFps1 < maxFps2 ) || (maxFps1 == maxFps2 && minFps1 < minFps2)
- This modification also gives higher priority to framerate
ranges over the deprecated constant fps.

Change-Id: Idee8b7ae9c1a3ce1d947bc5067c2c787f30e4d39
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>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
b4a28dec029ecbd35aa27984f8681ae98286eca0 13-Aug-2011 Kalpesh Patil <kalpeshpatil@ti.com> Camera Hal : Handle Recording Hint set by Camcorder Application

Recoding Hint is set now by Camcorder App, in order to allow CameraHal
to start preview is Recording specific mode (i.e. Video-Mode).
This patch adds support to handle Recoding Hint in order to set/reset
Recording specific parameters.

This patch also takes care of following contraints set by
Recording Hint support in framework.
1) Camera App can set/reset Recording Hint while preview is active.
2) Camera App can start recording even when the Recording Hint is false.

Change-Id: I6332c316ddc3ddda7f8c9c5739f81e6317c7deb0
Signed-Off-By: Kalpesh Patil <kalpeshpatil@ti.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h
c322989ae6ff6769490828de1b5eda12b749cce9 08-Aug-2011 Iliyan Malchev <malchev@google.com> initial commit

Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/inc/CameraHal.h