Revert "Camera: Avoid corruption in recorded clip for 720P resolution"

This reverts commit ad9bf02d4070e958faa5e3a41ed3b3035f932217.
Camera: Restart preview if video resolution changes in application

- Check for previous and current video size to restart the preview.

Change-Id: I875421487051f48f3ec9e9132c5813b13a11479e
Camera: Fix touch_AF and FD concurrency issue

Fixed the logic for stopFacedetection when touch event occurs.
Do not cancel the touch focus after 3 sec. So the touched area
remains in focus until snap is taken.

(cherry picked from commit 9137d58c48d5b7e97bc23a323c53d157dc372d4f)

Change-Id: I02b1b661f1a557b3b01fc90356d6155fb2a3fe87
Camera: Select Picture size for livesnapshot.

- Restart the preview when picture size is selected in camcorder

Change-Id: If40e49d688171e7756cfc8b76cb4a2b65d86d34f
(cherry picked from commit 8afafe852e8d0533431f23287ee1db2caa593133)
Camera: Avoid certain error conditions in live snapshot usecase.

- If the live snapshot resolution selected is smaller than video
  resolution, show a message on the screen and cap the snapshot
  resolution to video size.
- Correct the dimensions of 1080P resolution. This is to allow
  1080P resolution live snapshots with front sensor.
- Add support for taking live snapshots when user presses the
  RIGHT arrow key on the keypad. This is to help in executing
  stability tests.

Change-Id: If74de98cccbdda95b25be6c7ff3433b9cf96deef
CRs-Fixed: 339009, 338759, 338964, 338923
(cherry picked from commit d7b7f7c0a2d8b1d3884718fdf5910be69a493210)
Camera: Restart preview if video resolution changes in application

- Check for previous and current video size to restart the preview.

Change-Id: I875421487051f48f3ec9e9132c5813b13a11479e
Camera: Fix touch_AF and FD concurrency issue

Fixed the logic for stopFacedetection when touch event occurs.
Do not cancel the touch focus after 3 sec. So the touched area
remains in focus until snap is taken.

CRs-Fixed: 333327
(cherry picked from commit 9137d58c48d5b7e97bc23a323c53d157dc372d4f)

Change-Id: Ibafcbb7de400b168f1a20b2fdda206ff255542ba
Merge "Camera: Fix touch_AF and FD concurrency issue" into ics_chocolate
Camera: Enable time lapse feature.

(cherry picked from commit 2cfa773398a6f4cff31cbc6059c92c39d5f59cb2)

Change-Id: Ibba67c6642d90496994f638443e82a80b5f7c1a5
Camera: Improve preview size for camcorder.

This reverts commit 228a067aceff2c7d25955fb3449c01516813123f.
This change is needed to reduce preview size in 1080P camcorder mode.
Power could go high if we revert this.
Merge branch 'ics_chocolate_rb2' into ics_chocolate
Merge branch 'ics_chocolate_rb1.1' into ics_chocolate
Merge "Camera: Enable time lapse feature." into ics_chocolate
Camera: Add the bitrate adjustment for HFR

CRs-fixed: 339380

(cherry picked from commit c2867950df5aa93bb059ffbf08b98a3a3236622b)

Change-Id: I72c3dd01692ab7c7348b8780385ddb6e1c1a245f
camera: Handle error callback

Add function to handle error callback from HAL
The error callback is triggered by daemon crash,
which will send error msg to HAL and call back to app
Application will stop camera/camcorder gracefully

Change-Id: If0f501d88ac06b06c6d051cffcb91800c3feda38
Camera: Application changes to switch between low power and normal power mode.

Change-Id: Ie780d466578719853dfbbb92be3fe7c7dfb7db49
Camera: Fix face rectangle isssue

Change-Id: I1657cc43372a9eed143ec2aa3a7c27ec1c138d28
CRs-fixed: 340562
Add null pointer checks for Size object.

(cherry picked from commit cf4ce9e76036b3027c76502af8279ebca5928ee9)

Change-Id: Ib1292c7b556e19a4be63c7b8552fa2366038dd26
Revert "Camera: Application changes to switch between low power and normal power mode."

This reverts commit ee4713fbba1c494ff0e37b25de466535722a7537.
Camera: Improve preview size for camcorder.

This reverts commit 228a067aceff2c7d25955fb3449c01516813123f.
This change is needed to reduce preview size in 1080P camcorder mode.
Power could go high if we revert this.