camera: Add support for high frame rate video

 * If the camera supports HFR for the WVGA profile, use it.

Change-Id: I3ba03239b66482af36010b75f6827ad9a5b28d30
camera: Enable face detection parameter if required

Change-Id: Iecb982a7634390b486cc51ab05937e5928891745
camera: Video HDR mode

 * Add option for video HDR mode.
 * Some cameras claim to support it, but spontaneously combust when
   enabled, so we'll disable it by default.

Change-Id: Ib17ff4cbb0007440ddc994889b8c2242d4d07e43
camera: Touch focus support for camcorder

 * Available when video snapshots are not supported.
 * Original from CodeAurora Forum.

Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
camera: Depurpleator

 * One particular camera has a filter which must be enabled to reduce
   purple artifacting in certain lighting conditions.

Change-Id: I6fe8e0878c0e52459a15cea8802614f76148ba98
Camera: Fix for the AF brackets issues in Face Detetcion.

Also disable the FD start flag from stopPreview.

CRs-Fixed:  453944
	modified:   src/com/android/camera/PhotoModule.java

Change-Id: I7ab17154f461d90db2744dbae7aeff518ccd7cc8
(cherry picked from commit e1b82c95910d783cb531c81b5f23552bf26e6cc6)
Camera: change to fix camera preview stretched issue

When change camera preview size between 16:9 and 4:3, we need update
the CamereScreenNail size, but this size will never update the size
of mRenderWidth and mRenderHeight, this cause the function getWidth
and getHeight get a wrong size, and cause the camera preview stretched
change the method to fix this issue.

CRs-Fixed: 507577

Change-Id: I00744851e0ecc393b13e907423ac6ec27230ff49
Camera: Add facial processing features

Add smile, gaze and blink detection features

CRs-fixed: 531927
Change-Id: I7e710e6d9038b14d00d77ea87f9b4c65baa74fc0
Camera: Avoid the crash if fail to find value

If fail to find value, set index to 0,
which can Avoid camera crash.

Crs-fixed: 540594
Change-Id: Iedad101b8f065dbacac4b1203a378cad9c4bc62c
camera: fix VideoModule memory leak

Layout change listener should be removed when module onpause,
otherwise the VideoModule will not be able to release.

Change-Id: I929526cae01b549044fef305d5af247b41420b0a
CRs-Fixed: 549757
Camera: Add camcorder pause feature

Add Camcorder pause/resume feature, recording can pause,
then resume to go on recording.

Change-Id: I64840a982535f481655723bc7e03302d8b765132
Camera: Fix for stretched preview in camera and camcorder.

Stretched preview is observed due to camera sensor's mount angle.
So resize the preview frame using aspect ratios to avoid this.

Change-Id: Ie8a9e062782aa6caaa80ddab705c937da6b0761e
CRs-fixed: 510295
Camera: Do not create start preview thread if one thread is alive

It will have exception if two same threads tried to manipulate
same UI component, check the thread status before create a new
one.

Change-Id: I6f9a5c03f46360d15fdcebcd52c48b924f5b42ad
CRs-fixed: 545574
Camera: Fix swiping disabled after unsupported video prompt

Before recording starts, some parameters will be checked.
If failed, the recording will not run. So the swiping disable
should be done after this check.

Change-Id: I3e6b0bf1f5d5eb8eef333dac79e56e01bd51b43d
CRs-Fixed: 523885
Camera: Fix camera crash when post picture taken in message app

When post the picture taken in message, the gestures should be
disabled, that's to say, you can not touch screen to AF or show
the preference menu.
1. Disable gestures.
2. Disable keyevent.

Change-Id: I70d478979b0738334886dc3ca6534ca428159339
CRs-Fixed: 520918
Camera: fix panorama rotation issues on 8226.

preview and snapshot are rotated unexpectedly
on 8226 but is fine on 8974. Need to change
rotation angles in panorama based on
sensor mount angle.

Change-Id: I0eff35e574b57b787683722bb16762b7b9b0ee2a
CRs-Fixed: 495787
(cherry picked from commit 7c0e1e546ac903268a16df6a1823743711e396e4)
Camera: Fix panorama preview/snapshot rotation issue

Remove earlier hardcode and use unified solution to solve Panorama
preview and snapshot rotation issue by using sensor mount angle and
angle compensation in panorama postprocessing.

Change-Id: If68c6500c41c7cb3c461352826f1fec45db0a5b0
Camera App: FaceView: Fix for no smile drawing

In case of 'no smile' indicator,
center the line without any offsets.

Change-Id: I3992b6be2cf20d19bdb7c9cee85691cff3ce2feb
Camera: Draw smile indicator based on display orientation

Without this, smile indicator is always drawn horizontally
which is a vertical line in 90 and 270 degree cases

CRs-Fixed: 539887

Change-Id: I320b90a7a8981075565171e69b64e7d3dc832a6f
Camera: Prevent callling of resize  before camera is initialized

Prevent callling of resizeForPreviewAspectRatio
before camera is initialized

Change-Id: If8595cd26f4b0e131aa97f6f1f14b2c98e7a21ad