camera: Add parameter debugging support

Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
camera: Cleanup and compatibility fixes

 * Don't crash for unavailable integer parameters
 * Kill logspam

Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
camera: Remove the luma-adaptation seekbar

 * Not useful for any hardware I have encountered.

Change-Id: I93cca2b3bf907cc01946a55111de9eb883475d24
camera: Add all resolutions, focus modes, scene modes, and color effects.

Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3
Camera: Add red-eye flash mode support

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I3db982732d15fb4eb83d5e37bff1a123225d4e8e
camera: Forward-porting CM features

 * ASD, slow shutter, beautify, focus time, etc
 * New menu structure

 * Includes work from Steve Kondik, Ethan Chen, jt1134, Michael Bestas

Change-Id: I73cf1e685ab2d55579d4b85f39916b59435e6569
Camera: Fix CameraRootView layout size on tablets

Use all available space when onscreen are not sync with camera controls (tablets)

Ported from: http://review.cyanogenmod.org/#/c/52464

Change-Id: I0e6a23d49213a69d93875f370ea0177e1011acdf
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
camera: Remove ICS hack to stop preview after takePicture

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

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

Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
Camera : TH translations

Change-Id: Ib1a8ab57d5fbab7f518dc801ffac1236c57fc4b6
Revert "Camera: Propagate power mode selection from UI to lower layers."

This reverts commit 5302d2e099de0ae1c3cb4a9cda993fe28b0e8c46, runtime
power-mode changes are causing stability issues in camcorder
camera: Disable wavelet denoise by default

 * Many devices (such as M7) just crash in frameproc if you turn this
   on. Devices that want it can overlay it in.

Change-Id: I4ff6645578178a8d3ee7871613343be0deef46a4
camera: Check if video sizes are available

 * Some drivers don't report video sizes and we should avoid using fine
   resolution lookup, otherwise a crash results.

Change-Id: I8010e66d1a3a5e6f8a505ff3b50146cd24fc2b9c
camera: Support for HTC's HDR mode

 * HDR was never actually working on CM because we did not instruct the
   camera to take all exposures. The HAL tells us that we'll get one
   JPEG, but we should snap 3 times. We handle this behavior in the
   framework now, but we should honor the num-jpegs-per-shutter value in
   the JPEG callback.

Change-Id: I7124bf08985ae23b21ac4e294fb889ac4106946b
camera: Proper fix for the missing video-sizes issue

 * Just honor the defined camcorder profiles.

Change-Id: I83e8fe2ca9bb489332f37767906bc7c56389f949
Camera2: LT translations

Change-Id: I24208bbcc6251b963a0103f6c4e47bebbcae67f5
Camera2: ES translations

Change-Id: I1bc1ff87e2f3707b738b3ffffbe9e15eea238beb
Camera: fix panorama preview on older devices

When PREVIEW_FBO_WIDTH_SCALE is set to 4, the preview FBO becomes
larger than older GPUs can handle. Detect it and reduce the value
to 2 like on pre-KitKat releases.

Change-Id: I20785d157bed48816820476d066ef9d4a9f73672
Camera2: enable antibanding by default

The default for antibanding should be "auto", otherwise there will
be banding effect when taking photos in certain lighting.

Normally, the default on most devices is "auto" (depends on Camera
HAL). But the code from CAF changed it so that the Camera app
explicitly change it to "off".

Change-Id: Id0c2ef6e17bac74d22e12213ab2ed26c1c73783d
camera: ZSL and focus fixes

 * Drop the use of the touchaf-aec parameter entirely. No camera needs
   this anymore.
 * Only autofocus before a snap if we are actually in "auto" mode.
 * Change ZSL from a preference to an overlay boolean.

Change-Id: Ia94b6f7b7b6283facd7bb22db80e3eb389d136da